Class MessageDriven


  • public class MessageDriven
    extends EnterpriseBean
    The message-driven element declares a message-driven bean. 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 Java class for MessageDriven complex type. The following schema fragment specifies the expected content contained within this class.
     <complexType name="MessageDriven">
       <complexContent>
         <extension base="{ejb.xmi}EnterpriseBean">
           <choice>
             <choice maxOccurs="unbounded" minOccurs="0">
               <element name="destination" type="{ejb.xmi}MessageDrivenDestination"/>
             </choice>
             <choice maxOccurs="unbounded" minOccurs="0">
               <element name="activationConfig" type="{ejb.xmi}ActivationConfig"/>
             </choice>
             <choice maxOccurs="unbounded" minOccurs="0">
               <element name="messageDestination" type="{java.xmi}JavaClass"/>
             </choice>
             <choice maxOccurs="unbounded" minOccurs="0">
               <element name="messagingType" type="{java.xmi}JavaClass"/>
             </choice>
           </choice>
           <attribute name="acknowledgeMode" type="{ejb.xmi}AcknowledgeMode" />
           <attribute name="link" type="{http://www.w3.org/2001/XMLSchema}string" />
           <attribute name="messageDestination" type="{http://www.w3.org/2001/XMLSchema}string" />
           <attribute name="messageSelector" type="{http://www.w3.org/2001/XMLSchema}string" />
           <attribute name="messagingType" type="{http://www.w3.org/2001/XMLSchema}string" />
           <attribute name="transactionType" type="{ejb.xmi}TransactionType" />
         </extension>
       </complexContent>
     </complexType>
     
    • Constructor Detail

      • MessageDriven

        public MessageDriven()
    • Method Detail

      • getDestinations

        public List<MessageDrivenDestination> getDestinations()
        Gets the value of the destinations property. This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the destinations property. For example, to add a new item, do as follows:
         getDestinations().add(newItem);
         
        Objects of the following type(s) are allowed in the list MessageDrivenDestination
      • getActivationConfigs

        public List<ActivationConfig> getActivationConfigs()
        Gets the value of the activationConfigs property. This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the activationConfigs property. For example, to add a new item, do as follows:
         getActivationConfigs().add(newItem);
         
        Objects of the following type(s) are allowed in the list ActivationConfig
      • getMessageDestinations

        public List<JavaClass> getMessageDestinations()
        Gets the value of the messageDestinations property. This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the messageDestinations property. For example, to add a new item, do as follows:
         getMessageDestinations().add(newItem);
         
        Objects of the following type(s) are allowed in the list JavaClass
      • getMessagingTypes

        public List<JavaClass> getMessagingTypes()
        Gets the value of the messagingTypes property. This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the messagingTypes property. For example, to add a new item, do as follows:
         getMessagingTypes().add(newItem);
         
        Objects of the following type(s) are allowed in the list JavaClass
      • setAcknowledgeMode

        public void setAcknowledgeMode​(AcknowledgeModeEnum value)
        Sets the value of the acknowledgeMode property.
        Parameters:
        value - allowed object is AcknowledgeModeEnum
      • getLink

        public String getLink()
        Gets the value of the link property.
        Returns:
        possible object is String
      • setLink

        public void setLink​(String value)
        Sets the value of the link property.
        Parameters:
        value - allowed object is String
      • getMessageDestination

        public String getMessageDestination()
        Gets the value of the messageDestination property.
        Returns:
        possible object is String
      • setMessageDestination

        public void setMessageDestination​(String value)
        Sets the value of the messageDestination property.
        Parameters:
        value - allowed object is String
      • getMessageSelector

        public String getMessageSelector()
        Gets the value of the messageSelector property.
        Returns:
        possible object is String
      • setMessageSelector

        public void setMessageSelector​(String value)
        Sets the value of the messageSelector property.
        Parameters:
        value - allowed object is String
      • getMessagingType

        public String getMessagingType()
        Gets the value of the messagingType property.
        Returns:
        possible object is String
      • setMessagingType

        public void setMessagingType​(String value)
        Sets the value of the messagingType property.
        Parameters:
        value - allowed object is String
      • getTransactionType

        public TransactionEnum getTransactionType()
        Gets the value of the transactionType property.
        Returns:
        possible object is TransactionEnum
      • setTransactionType

        public void setTransactionType​(TransactionEnum value)
        Sets the value of the transactionType property.
        Parameters:
        value - allowed object is TransactionEnum