+

Search Tips   |   Advanced Search

Message-driven beans - JCA components

There are several administrative components that we configure for message-driven beans as listeners on a Java EE Connector Architecture (JCA) 1.5 resource adapter.


Components for a JCA resource adapter

When a resource adapter is installed, it provides definitions and classes for administered objects such as activation specifications. The administrator creates and configures activation specifications with JNDI names that are then available for applications to use.

The JCA resource adapter uses an activation specification to configure a particular endpoint. Each application that configures one or more endpoints must specify the resource adapter that sends messages to the endpoint. The application uses the activation specification to provide configuration properties for the processing of inbound messages.


JMS components used with a JCA messaging provider

Message-driven beans that implement the javax.jms.MessageListener interface can be used with JMS messaging.

An application that uses JMS messaging needs access at runtime to configured objects such as connection factories and destinations:

If the application contains one or more message-driven beans, the administrator must configure either a JMS activation specification or a message listener port. For JCA-compliant messaging providers, the administrator usually configures an activation specification. But for the IBM MQ messaging provider there is a choice; the administrator can configure an activation specification or, for compatibility with previous versions of WAS, the administrator can configure a message listener port.

The JMS activation specification provides the deployer with information about the configuration properties of a message-driven bean related to the processing of the inbound messages. For example, a JMS activation specification specifies the name of the service integration bus to connect to, information about the message acknowledgement modes, message selectors, destination types, and whether durable subscriptions are shared across connections with members of a server cluster.

The activation specification identifies a JMS destination by specifying its JNDI name. The message-driven bean acts as a listener on a specific JMS destination.

The JMS destination refers to a service integration bus destination (or IBM MQ destination) that the administrator must also configure. For more information about JMS resources and service integration, see Default messaging.


Related:

  • J2C activation specification configuration and use
  • Types of messaging providers
  • Message-driven beans - listener port components
  • Default messaging
  • Configure JMS resources for the IBM messaging provider
  • Create an activation specification for the IBM MQ messaging provider
  • Configure an activation specification for the IBM MQ messaging provider
  • Activation specification collection
  • JMS activation specification [Settings]