MessageDriven

The message-driven element declares a message-drivenbean. The declaration consists of: - an optional description - an optional display name - an optional icon element that contains a small and a large icon file name. - a name assigned to the enterprise bean in the deployment descriptor - the message-driven bean's implementation class - an optional declaration of the bean's messaging type - the message-driven bean's transaction management type - an optional declaration of the bean's message-destination-type - an optional declaration of the bean's message-destination-link - an optional declaration of the message-driven bean's activation configuration properties - an optional declaration of the bean's environment entries - an optional declaration of the bean's EJB references - an optional declaration of the bean's local EJB references - an optional declaration of the bean's web service references - an optional declaration of the security identity to be used for the execution of the bean's methods - an optional declaration of the bean's resource manager connection factory references - an optional declaration of the bean's resource environment references. - an optional declaration of the bean's message destination references

Inherits from type EnterpriseBean and adds the following.

Attributes Summary
transactionType : TransactionTypeThe transaction-type element specifies an enterprise bean's transaction management type.
messageSelector : StringThe message-selector element is used to specify the JMS messageselector to be used in determining which messages a message-drivenbean is to receive.
acknowledgeMode : AcknowledgeModean optional declaration of the acknowledgment mode for the message-driven bean if bean-managed transaction demarcation is used (ie.
link : String - an optional declaration of the bean's message-destination-link
destination : MessageDrivenDestination@since J2EE1.
activationConfig : ActivationConfig@since J2EE1.
messageDestination : @since J2EE1.
messagingType : @since J2EE1.

Attribute Details

transactionType    -    The transaction-type element specifies an enterprise bean's transaction management type.The transaction-type element must be one of the two following: Bean, Container
     data type: TransactionType
     default Value:   unspecified
     Allowed Values:  Bean   Container  



messageSelector    -    The message-selector element is used to specify the JMS messageselector to be used in determining which messages a message-drivenbean is to receive.Example value: JMSType = `car' AND color = `blue' AND weight > 2500
     data type:  String
     default Value:   unspecified



acknowledgeMode    -    an optional declaration of the acknowledgment mode for the message-driven bean if bean-managed transaction demarcation is used (ie. self.transactionType = Bean)The acknowledge-mode specifies whether JMS AUTO_ACKNOWLEDGE or DUPS_OK_ACKNOWLEDGE message acknowledgment semantics should be used for the onMessage message of a message-driven bean that uses bean managed transaction demarcation.The acknowledge-mode must be one of the two following: Auto-acknowledge, Dups-ok-acknowledge
     data type: AcknowledgeMode
     default Value:   unspecified
     Allowed Values:  AutoAcknowledge   DupsOkAcknowledge  



link    -    - an optional declaration of the bean's message-destination-link
     data type:  String
     default Value:   unspecified



destination    -    @since J2EE1.4 deprecated, becomes activationConfigAn optional declaration of the intended destination type of the message-driven bean
     data type: MessageDrivenDestination



activationConfig    -    @since J2EE1.4
     data type: ActivationConfig



messageDestination    -    @since J2EE1.4
     data type: 



messagingType    -    @since J2EE1.4The messaging-type element specifies the message listener interface of the message-driven bean. If the messaging-type element is not specified, it is assumed to be javax.jms.MessageListener.
     data type: 


Copyright IBM Corp. 1997-2004