How to Configure a Message-Driven Bean (Activation Properties, Durable Subscriptions)
The message-driven bean (MDB) example above shows only the two required properties, destination and destinationType. Here is a complete list of all properties that are specified by the JCA 1.5 specification (some implementations support additional properties):
Name | Description | Default |
---|---|---|
destination | Destination to listen to (required) | - |
destinationType | Destination type, "javax.jms.Queue" or "javax.jms.Topic" (required) | - |
messageSelector | A message selector | - |
acknowledgeMode | "Auto-acknowledge" for reliable messaging or "Dups-ok-acknowledge" for faster messaging with possible duplicates | "Auto-acknowledge" |
subscriptionDurability | "Durable" for durable subscriptions, or "NonDurable" for non-durable; Durable requires the clientId and subscriptionName properties | "NonDurable" |
clientId | The client id for durable subscriptions (required if durable) | - |
subscriptionName | The name of the durable subscription (required if durable) | - |