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>
-
-
Field Summary
Fields Modifier and Type Field Description protected AcknowledgeModeEnumacknowledgeModeprotected List<ActivationConfig>activationConfigsprotected List<MessageDrivenDestination>destinationsprotected Stringlinkprotected StringmessageDestinationprotected List<JavaClass>messageDestinationsprotected StringmessageSelectorprotected StringmessagingTypeprotected List<JavaClass>messagingTypesprotected TransactionEnumtransactionType-
Fields inherited from class org.apache.openejb.jee.was.v6.ejb.EnterpriseBean
ejbClass, ejbClasses, homeInterface, homeInterfaces, localHomeInterface, localHomeInterfaces, localInterface, localInterfaces, name, remoteInterface, remoteInterfaces, securityIdentities, securityRoleRefs
-
Fields inherited from class org.apache.openejb.jee.was.v6.common.JNDIEnvRefsGroup
ejbLocalRefs, ejbRefs, environmentProperties, messageDestinationRefs, resourceEnvRefs, resourceRefs, serviceRefs
-
Fields inherited from class org.apache.openejb.jee.was.v6.common.CompatibilityDescriptionGroup
description, displayName, largeIcon, smallIcon
-
Fields inherited from class org.apache.openejb.jee.was.v6.common.DescriptionGroup
descriptions, displayNames, extensions, href, icons, id, idref, label, type, uuid, version
-
-
Constructor Summary
Constructors Constructor Description MessageDriven()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AcknowledgeModeEnumgetAcknowledgeMode()Gets the value of the acknowledgeMode property.List<ActivationConfig>getActivationConfigs()Gets the value of the activationConfigs property.List<MessageDrivenDestination>getDestinations()Gets the value of the destinations property.StringgetLink()Gets the value of the link property.StringgetMessageDestination()Gets the value of the messageDestination property.List<JavaClass>getMessageDestinations()Gets the value of the messageDestinations property.StringgetMessageSelector()Gets the value of the messageSelector property.StringgetMessagingType()Gets the value of the messagingType property.List<JavaClass>getMessagingTypes()Gets the value of the messagingTypes property.TransactionEnumgetTransactionType()Gets the value of the transactionType property.voidsetAcknowledgeMode(AcknowledgeModeEnum value)Sets the value of the acknowledgeMode property.voidsetLink(String value)Sets the value of the link property.voidsetMessageDestination(String value)Sets the value of the messageDestination property.voidsetMessageSelector(String value)Sets the value of the messageSelector property.voidsetMessagingType(String value)Sets the value of the messagingType property.voidsetTransactionType(TransactionEnum value)Sets the value of the transactionType property.-
Methods inherited from class org.apache.openejb.jee.was.v6.ejb.EnterpriseBean
getEjbClass, getEjbClasses, getHomeInterface, getHomeInterfaces, getLocalHomeInterface, getLocalHomeInterfaces, getLocalInterface, getLocalInterfaces, getName, getRemoteInterface, getRemoteInterfaces, getSecurityIdentities, getSecurityRoleRefs, setEjbClass, setHomeInterface, setLocalHomeInterface, setLocalInterface, setName, setRemoteInterface
-
Methods inherited from class org.apache.openejb.jee.was.v6.common.JNDIEnvRefsGroup
getEjbLocalRefs, getEjbRefs, getEnvironmentProperties, getMessageDestinationRefs, getResourceEnvRefs, getResourceRefs, getServiceRefs
-
Methods inherited from class org.apache.openejb.jee.was.v6.common.CompatibilityDescriptionGroup
getDescription, getDisplayName, getLargeIcon, getSmallIcon, setDescription, setDisplayName, setLargeIcon, setSmallIcon
-
Methods inherited from class org.apache.openejb.jee.was.v6.common.DescriptionGroup
getDescriptions, getDisplayNames, getExtensions, getHref, getIcons, getId, getIdref, getLabel, getType, getUuid, getVersion, setHref, setId, setIdref, setLabel, setType, setUuid, setVersion
-
-
-
-
Field Detail
-
destinations
protected List<MessageDrivenDestination> destinations
-
activationConfigs
protected List<ActivationConfig> activationConfigs
-
acknowledgeMode
protected AcknowledgeModeEnum acknowledgeMode
-
link
protected String link
-
messageDestination
protected String messageDestination
-
messageSelector
protected String messageSelector
-
messagingType
protected String messagingType
-
transactionType
protected TransactionEnum transactionType
-
-
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 asetmethod 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 listMessageDrivenDestination
-
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 asetmethod 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 listActivationConfig
-
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 asetmethod 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 listJavaClass
-
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 asetmethod 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 listJavaClass
-
getAcknowledgeMode
public AcknowledgeModeEnum getAcknowledgeMode()
Gets the value of the acknowledgeMode property.- Returns:
- possible object is
AcknowledgeModeEnum
-
setAcknowledgeMode
public void setAcknowledgeMode(AcknowledgeModeEnum value)
Sets the value of the acknowledgeMode property.- Parameters:
value- allowed object isAcknowledgeModeEnum
-
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 isString
-
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 isString
-
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 isString
-
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 isString
-
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 isTransactionEnum
-
-