Skip Headers
Oracle® Containers for J2EE Enterprise JavaBeans Developer's Guide
10g Release 3 (10.1.3)
B14428-01
  Go To Documentation Library
Home
Go To Product List
Solution Area
Go To Table Of Contents
Contents
Go To Index
Index

Previous
Previous
Next
Next
 

Configuring a Message Service Provider Using J2CA

To configure the J2CA message service provider, you must:

  1. Install and configure the J2CA adapter (see "Installing and Configuring a J2CA Adapter").

  2. Choose appropriate JNDI names for your connection factory (see "J2CA Message Service Provider Connection Factory Names").

  3. Configure the appropriate deployment XML files (see "Configuring OC4J Deployment XML Files").

  4. Associate the J2CA message service provider with the message-driven beans that will use it.

    For more information, see:

For more information, see "J2EE Connector Architecture (J2CA) Adapter Message Provider".


Note:

For a complete code example of configuring a J2CA message service provider resource adapter and MDB application, see http://www.oracle.com/technology/tech/java/oc4j/1013/how_to/how-to-gjra-with-oracleasjms/doc/how-to-gjra-with-oracleasjms.html.

J2CA Message Service Provider Connection Factory Names

The actual JNDI names for the destination and connection factory depend on your J2CA installation as defined in your oc4j-connectors.xml file (see "Configuring OC4J Deployment XML Files").

Typically, it will be composed of java:<Prefix>/<FactoryName> where <Prefix> is an optional JNDI location like comp/env/eis and <FactoryName> is the name of the javax.cci.ConnectionFactory for your adapter.

Installing and Configuring a J2CA Adapter

OC4J includes the Oracle JMS Connector: a generic JMS J2CA resource adapter that integrates OC4J with OracleAS JMS and OJMS message service providers, as well as non-Oracle JMS providers such as WebSphereMQ, Tibco, and SonicMQ.

For more information, see "Overview: Administering Resource Adapters" in the Oracle Containers for J2EE Resource Adapter Administrator's Guide.

Configuring OC4J Deployment XML Files

To configure a J2CA message service provider, you must configure the following deployment XML files:

  • ra.xml

  • oc4j-ra.xml

  • oc4j-connectors.xml

For more information, see: