7.12 Definitions in the DD

This section describes the items defined in the DD of the Message-driven Beans.

With the DD of the Message-driven Beans, you set up the items listed in the following table using the attributes specified beneath the <activation-config> tag.

Table 7-10 Items specified with the attributes beneath the <activation-config> tag

AttributeData typeSpecifiable valueDefault valueExplanation
destinationString----Specifies the name of the destination that sends the message to the Message-driven Bean. Specify the name set in Name of the Administered object for the CJMSP resource adapter in this attribute.
destinationTypeString
  • javax.jms.Queue
  • javax.jms.Topic
--Specifies the queue (javax.jms.Queue) or topic (javax.jms.Topic) as the destination type.
messageSelectorString----Specifies Message Selector to select the messages to be received.
subscriptionNameString----Specifies the name of the persistence subscriber.
Make sure you specify this attribute when Durable is specified in the subscriptionDurability attribute.
subscriptionDurabilityString
  • Durable
  • NonDurable
NonDurableSpecifies whether to set the persistence subscriber.
If you want to set a persistence subscriber, specify Durable, and if you do not want to set a persistence subscriber, specify NonDurable.
This attribute is only valid when javax.jms.Topic is specified in the destinationType attribute.
Also, make sure you specify the following attributes when you specify Durable:
  • subscriptionName
  • clientId
clientIdString----Specifies the identifier of the persistence subscriber for connecting to CJMSP Broker.
Make sure you specify this attribute when you specify Durable in the subscriptionDurability attribute.
acknowledgeModeString
  • Auto-acknowledge
  • Dups-ok-acknowledge
Auto-acknowledgeSpecifies the acknowledgement mode. For details on the modes to be specified, see the JMS specifications.
endpointExceptionRedeliveryAttemptsInteger1 to 2147483647​6Specifies the number of re-delivery attempts if an exception occurs during message delivery.
sendUndeliverableMsgsToDMQBoolean
  • true
  • false
trueSpecifies whether to register the un-delivered messages in the dead message queue when a Message-driven Bean throws a runtime exception and when the re-delivery attempts exceed the count specified in the endpointExceptionRedeliveryAttempts attribute.
If you want to register the un-delivered messages in the dead message queue, specify true, and if you do not want to register the un-delivered messages in the dead message queue, specify false.
If you specify false, the applicable messages are re-delivered to the valid consumers by CJMSP Broker (might even be delivered to the same Message-driven Bean again).
endpointPoolMaxSizeInteger1 to 2147483647​1Specifies the maximum endpoint pool value.
endpointPoolSteadySizeInteger0 to 2147483647​1Specifies the minimum endpoint pool value.
endpointExceptionRedeliveryIntervalInteger1 to 2147483647​500Specifies the interval for re-delivering a message to the endpoint, when an exception occurs, in milliseconds.
Legend:
--: No restrictions on the specifiable value or default value