Set up the Message-driven Bean operations as the attributes of the Message-driven Beans. You can specify the information such as the destination information, the message acknowledgement mode, and Message Selector. Specify the attributes in the <activation-config> tag of the DD or MessageDrivenBean property file. For details, see 7.12 Definitions in the DD and 3.6 MessageDrivenBean property file in the uCosminexus Application Server Application and Resource Definition Reference Guide.
This subsection describes the main settings.
Specify either queue (javax.jms.Queue) or topic (javax.jms.Topic) as the type of destination associated with the Message-driven Beans. If you specify the type as topic, you further specify whether the persistence subscriber will be used.
If you use a queue as the destination, or specify the settings to use the persistence subscriber, the destination stores the messages in the cases such as when the J2EE application that operates the Message-driven Bean is not running.
If you use a topic as the destination, and specify settings so that the persistence subscriber is not used, the sent messages are not delivered to the Message-driven Beans when the J2EE application that operates the Message-driven Bean is not running.
For details on the destination types and the persistence subscribers, see 7.4 Types of messaging models.
Set up either AUTO_ACKNOWLEDGE or DUPS_OK_ACKNOWLEDGE as the message acknowledgement mode. For details on each mode, see the JMS specifications.
The container executes message acknowledgement. For a CMT-managed transaction, acknowledgement is executed as a part of the transaction-commit processing. For a BMT-managed transaction, the container executes the authorization processing separate from the transaction. Make sure you do not execute acknowledgement using APIs.
Specify the selection criteria for the messages to be received by the Message-driven Beans as Message Selector. Due to this, you can operate the Message-driven Beans by receiving only the messages with a specific value set in the message properties.
For details on Message Selector, see 7.6 Selecting the received messages using Message Selector.