Message-Driven Bean

Enterprise Bean Message tabbed pane

Use the Message-Driven Bean tabbed pane to identify the message listener interface that the bean implements and provide the activation configuration properties which define how the bean should be configured when it is deployed. If this bean is receiving messages from a message destination such as a JMS destination, you must also identify the type of the destination and its name.

Select the Message Service

If this bean is receiving messages from a , such as a JMS destination, you must also identify the type of the destination and its name.

Message Service - JMS

  1. Choose Message Destination Type from the drop-down list. The choices are and .

    A queue uses the point-to-point messaging domain and may have at most one consumer. A topic uses the publish/subscribe messaging domain; it can have zero, one, or many consumers.

  2. In the Target Message Destination field, type the name of the physical destination that you created administratively. The destination is either a queue or a topic object; it represents the source of incoming messages and the target of outgoing messages.
  3. If your bean will be a durable subscriber to a topic, select the Durable Subscription checkbox and enter a subscription name. If it uses a message selector, enter the value in the Message Selector text area. You normally leave the Acknowledgment Mode set to Auto-Acknowledge.
  4. In the Connection Factory JNDI Name (Sun-specific Setting) field, type the JNDI name of the connection factory the bean will use.

Message Service - Non-JMS

Set the Activation Configuration Properties:

Add the name of the property and the value of the property to use to define how the bean will be configured when it is deployed. You can also import the properties from a resource adapter for use in a message-driven bean. To import the properties, click Import.

Click the Sun-specific Settings button to bring up the Sun-specific Settings dialog and make specific deployment choices for this bean. Access the help on the deployment settings dialog for more information.

See also

Import Activation Configuration Properties

Sun-specific Deployment Settings



Legal Notices