To create a JMS web service from an MDB, you must have a project
containing a message-driven bean, and the onMessage()
method of the implementation class should contain some Java code that
runs whenever the bean receives a message.
In configuring the MDB, you have to edit the orion-ejb-jar.xml
file, select the MDB from the list of beans displayed and supply the JNDI
locations of the JMS destination, and a JMS connection factory. These
are JMS artifacts that live in the JNDI namespace, and they are added to
the JNDI namespace by modifying one or more of the OC4J configuration
files.
To edit the orion-ejb-jar.xml file:
orion-ejb-jar.xml
is not listed in the navigator, add
it to the project.
orion-ejb-jar.xml
, and choose
Open. The XML file opens in JDeveloper's code window, and you can
make the changes you need.
Once the MDB has been deployed to the application server, you can use JDeveloper's JMS Web Service wizard to define a web service that can be used to access the MDB. See Creating a JMS Web Service.
For more information about MDBs, refer to the Oracle Application
Server Containers for J2EE Enterprise JavaBeans Developer's Guide:
Part Number B10324-01, which is available as part of the Oracle
Application Server documentation set, or at the Oracle Technology
Network at
http://www.oracle.com/technology/documentation/appserver10g.html
.
Copyright © 1997, 2004, Oracle. All rights reserved.