Configure message listener resources for message-driven beans

 

+

Search Tips   |   Advanced Search

 

 

Use the following tasks to configure resources needed by the message listener service to support message-driven beans for use with a JMS provider that does not have a JCA 1.5 resource adapter.

 

Overview

For JMS messaging, message-driven beans can use a JMS provider that has a JCA 1.5 resource adapter, such as the default messaging provider that is part of WAS V6. With a JCA 1.5 resource adapter, you deploy EJB 2.1 message-driven beans as JCA resources to use a J2C activation specification. If the JMS provider does not have a JCA 1.5 resource adapter, such as the V5 Default Messaging and WebSphere MQ, configure JMS message-driven beans against a listener port (as in WebSphere Application Server V5). Here are some guidelines on which scenarios use listener ports or activation specifications:

If you are using J2EE 1.2 and EJB 1.1 with WAS v4, MDBs are not used, so you do not used listener ports or activation specifications because WAS v4 uses message beans, but these are not MDbs or EJBs.

If you are using J2EE 1.3 and EJB 2.0 with WAS v5, use listener ports. The MDBs are JMS MDBs that implement MessageListener, and there is no JCA support. WAS v5 uses listener ;ports to associate MDB classes with their JMS destinations.

If you are using J2EE 1.4 and EJB 2.1 with WAS v6, use activation specifications. A connector MDB uses JCA to access its resources, so the connector must therefore be configured with an activation specification. This is for new bean development, and does not affect the conversion of MDBs from EJB 2.0 to EJB 2.1.

If you are using J2EE 1.4 and EJB 2.1 with WAS v6, the decision depends on whether your JMS provider API is implemented with JCA. In J2EE 1.4, the JMS 1.1 API can now be implemented with the JCA 1.5 API. If so, your MDB is a JMS MDB that is implemented as a connector MDB, and must therefore be configured with an activation specification. If not, this is the same JMS situation as for J2EE 1.3, and configure this EJB 2.1 MDB in the same way as you would configure an EJB 2.0 MDB, which in WAS is to use a listener port.

To deploy an enterprise application to use JMS message-driven beans with a JMS provider that does not have a JCA 1.5 resource adapter, refer to the following subtopics:

 

Procedure



Configure the message listener service

Creating a new listener port

Configure a listener port

Deleting a listener port

tmb_sec00.html

Administering listener ports

Message-driven beans - listener port components