org.apache.openejb.jee
Class MessageDrivenBean
java.lang.Object
org.apache.openejb.jee.MessageDrivenBean
- All Implemented Interfaces:
- EnterpriseBean, JndiConsumer, Lifecycle, TimerConsumer
public class MessageDrivenBean
- extends java.lang.Object
- implements EnterpriseBean, TimerConsumer
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
- an optional mapped-name element that can be used to provide
vendor-specific deployment information such as the physical
jndi-name of destination from which this message-driven bean
should consume. This element is not required to be supported
by all implementations. Any use of this element is non-portable.
- the message-driven bean's implementation class
- an optional declaration of the bean's messaging
type
- an optional declaration of the bean's timeout method.
- the optional message-driven bean's transaction management
type. If it is not defined, it is defaulted to Container.
- 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 list of the message-driven bean class and/or
superclass around-invoke methods.
- 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
Method Summary |
void |
addAroundInvoke(java.lang.String method)
|
void |
addPostConstruct(java.lang.String method)
|
void |
addPreDestroy(java.lang.String method)
|
java.lang.String |
getAcknowledgeMode()
|
ActivationConfig |
getActivationConfig()
|
java.util.List<AroundInvoke> |
getAroundInvoke()
|
java.lang.String |
getDescription()
|
Text[] |
getDescriptions()
|
java.lang.String |
getDisplayName()
|
Text[] |
getDisplayNames()
|
java.lang.String |
getEjbClass()
|
java.util.Collection<EjbLocalRef> |
getEjbLocalRef()
|
java.util.Map<java.lang.String,EjbLocalRef> |
getEjbLocalRefMap()
|
java.lang.String |
getEjbName()
|
java.util.Collection<EjbRef> |
getEjbRef()
|
java.util.Map<java.lang.String,EjbRef> |
getEjbRefMap()
|
java.util.Collection<EnvEntry> |
getEnvEntry()
|
java.util.Map<java.lang.String,EnvEntry> |
getEnvEntryMap()
|
Icon |
getIcon()
|
java.util.Map<java.lang.String,Icon> |
getIconMap()
|
java.util.Collection<Icon> |
getIcons()
|
java.lang.String |
getId()
|
java.lang.String |
getJndiConsumerName()
|
java.lang.String |
getMappedName()
|
java.lang.String |
getMessageDestinationLink()
The Assembler sets the value to reflect the flow of messages
between producers and consumers in the application. |
java.util.Collection<MessageDestinationRef> |
getMessageDestinationRef()
|
java.util.Map<java.lang.String,MessageDestinationRef> |
getMessageDestinationRefMap()
|
java.lang.String |
getMessageDestinationType()
|
MessageDrivenDestination |
getMessageDrivenDestination()
|
java.lang.String |
getMessageSelector()
|
java.lang.String |
getMessagingType()
|
java.util.Collection<PersistenceContextRef> |
getPersistenceContextRef()
|
java.util.Map<java.lang.String,PersistenceContextRef> |
getPersistenceContextRefMap()
|
java.util.Collection<PersistenceUnitRef> |
getPersistenceUnitRef()
|
java.util.Map<java.lang.String,PersistenceUnitRef> |
getPersistenceUnitRefMap()
|
java.util.List<LifecycleCallback> |
getPostConstruct()
|
java.util.List<LifecycleCallback> |
getPreDestroy()
|
java.util.Collection<ResourceEnvRef> |
getResourceEnvRef()
|
java.util.Map<java.lang.String,ResourceEnvRef> |
getResourceEnvRefMap()
|
java.util.Collection<ResourceRef> |
getResourceRef()
|
java.util.Map<java.lang.String,ResourceRef> |
getResourceRefMap()
|
SecurityIdentity |
getSecurityIdentity()
|
java.util.List<SecurityRoleRef> |
getSecurityRoleRef()
|
java.util.Collection<ServiceRef> |
getServiceRef()
|
java.util.Map<java.lang.String,ServiceRef> |
getServiceRefMap()
|
NamedMethod |
getTimeoutMethod()
|
TransactionType |
getTransactionType()
|
void |
setAcknowledgeMode(java.lang.String acknowledgeMode)
|
void |
setActivationConfig(ActivationConfig value)
|
void |
setDescriptions(Text[] text)
|
void |
setDisplayNames(Text[] text)
|
void |
setEjbClass(java.lang.Class value)
|
void |
setEjbClass(java.lang.String value)
|
void |
setEjbName(java.lang.String value)
The ejb-nameType specifies an enterprise bean's name. |
void |
setId(java.lang.String value)
|
void |
setMappedName(java.lang.String value)
|
void |
setMessageDestinationLink(java.lang.String value)
|
void |
setMessageDestinationType(java.lang.String value)
|
void |
setMessageDrivenDestination(MessageDrivenDestination value)
|
void |
setMessageSelector(java.lang.String messageSelector)
|
void |
setMessagingType(java.lang.String value)
|
void |
setSecurityIdentity(SecurityIdentity value)
|
void |
setTimeoutMethod(NamedMethod value)
|
void |
setTransactionType(TransactionType value)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
description
protected TextMap description
displayName
protected TextMap displayName
icon
protected LocalCollection<Icon> icon
ejbName
protected java.lang.String ejbName
mappedName
protected java.lang.String mappedName
ejbClass
protected java.lang.String ejbClass
messagingType
protected java.lang.String messagingType
timeoutMethod
protected NamedMethod timeoutMethod
transactionType
protected TransactionType transactionType
messageDestinationType
protected java.lang.String messageDestinationType
messageDestinationLink
protected java.lang.String messageDestinationLink
activationConfig
protected ActivationConfig activationConfig
aroundInvoke
protected java.util.List<AroundInvoke> aroundInvoke
envEntry
protected KeyedCollection<java.lang.String,EnvEntry> envEntry
ejbRef
protected KeyedCollection<java.lang.String,EjbRef> ejbRef
ejbLocalRef
protected KeyedCollection<java.lang.String,EjbLocalRef> ejbLocalRef
serviceRef
protected KeyedCollection<java.lang.String,ServiceRef> serviceRef
resourceRef
protected KeyedCollection<java.lang.String,ResourceRef> resourceRef
resourceEnvRef
protected KeyedCollection<java.lang.String,ResourceEnvRef> resourceEnvRef
messageDestinationRef
protected KeyedCollection<java.lang.String,MessageDestinationRef> messageDestinationRef
persistenceContextRef
protected KeyedCollection<java.lang.String,PersistenceContextRef> persistenceContextRef
persistenceUnitRef
protected KeyedCollection<java.lang.String,PersistenceUnitRef> persistenceUnitRef
postConstruct
protected java.util.List<LifecycleCallback> postConstruct
preDestroy
protected java.util.List<LifecycleCallback> preDestroy
securityRoleRef
protected java.util.List<SecurityRoleRef> securityRoleRef
securityIdentity
protected SecurityIdentity securityIdentity
id
protected java.lang.String id
MessageDrivenBean
public MessageDrivenBean()
MessageDrivenBean
public MessageDrivenBean(java.lang.String ejbName)
MessageDrivenBean
public MessageDrivenBean(java.lang.String ejbName,
java.lang.String ejbClass)
MessageDrivenBean
public MessageDrivenBean(java.lang.Class ejbClass)
MessageDrivenBean
public MessageDrivenBean(java.lang.String ejbName,
java.lang.Class ejbClass)
getJndiConsumerName
public java.lang.String getJndiConsumerName()
- Specified by:
getJndiConsumerName
in interface JndiConsumer
getDescriptions
public Text[] getDescriptions()
setDescriptions
public void setDescriptions(Text[] text)
getDescription
public java.lang.String getDescription()
getDisplayNames
public Text[] getDisplayNames()
setDisplayNames
public void setDisplayNames(Text[] text)
getDisplayName
public java.lang.String getDisplayName()
getIcons
public java.util.Collection<Icon> getIcons()
getIconMap
public java.util.Map<java.lang.String,Icon> getIconMap()
getIcon
public Icon getIcon()
getEjbName
public java.lang.String getEjbName()
- Specified by:
getEjbName
in interface EnterpriseBean
setEjbName
public void setEjbName(java.lang.String value)
- The ejb-nameType specifies an enterprise bean's name. It is
used by ejb-name elements. This name is assigned by the
ejb-jar file producer to name the enterprise bean in the
ejb-jar file's deployment descriptor. The name must be
unique among the names of the enterprise beans in the same
ejb-jar file.
There is no architected relationship between the used
ejb-name in the deployment descriptor and the JNDI name that
the Deployer will assign to the enterprise bean's home.
The name for an entity bean must conform to the lexical
rules for an NMTOKEN.
Example:
EmployeeService
- Specified by:
setEjbName
in interface EnterpriseBean
getMappedName
public java.lang.String getMappedName()
- Specified by:
getMappedName
in interface EnterpriseBean
setMappedName
public void setMappedName(java.lang.String value)
- Specified by:
setMappedName
in interface EnterpriseBean
getEjbClass
public java.lang.String getEjbClass()
- Specified by:
getEjbClass
in interface EnterpriseBean
setEjbClass
public void setEjbClass(java.lang.String value)
- Specified by:
setEjbClass
in interface EnterpriseBean
setEjbClass
public void setEjbClass(java.lang.Class value)
- Specified by:
setEjbClass
in interface EnterpriseBean
getMessagingType
public java.lang.String getMessagingType()
setMessagingType
public void setMessagingType(java.lang.String value)
getTimeoutMethod
public NamedMethod getTimeoutMethod()
- Specified by:
getTimeoutMethod
in interface TimerConsumer
setTimeoutMethod
public void setTimeoutMethod(NamedMethod value)
- Specified by:
setTimeoutMethod
in interface TimerConsumer
getMessageDrivenDestination
public MessageDrivenDestination getMessageDrivenDestination()
setMessageDrivenDestination
public void setMessageDrivenDestination(MessageDrivenDestination value)
getMessageSelector
public java.lang.String getMessageSelector()
setMessageSelector
public void setMessageSelector(java.lang.String messageSelector)
getAcknowledgeMode
public java.lang.String getAcknowledgeMode()
setAcknowledgeMode
public void setAcknowledgeMode(java.lang.String acknowledgeMode)
getTransactionType
public TransactionType getTransactionType()
- Specified by:
getTransactionType
in interface EnterpriseBean
setTransactionType
public void setTransactionType(TransactionType value)
- Specified by:
setTransactionType
in interface EnterpriseBean
getMessageDestinationType
public java.lang.String getMessageDestinationType()
setMessageDestinationType
public void setMessageDestinationType(java.lang.String value)
getMessageDestinationLink
public java.lang.String getMessageDestinationLink()
- The Assembler sets the value to reflect the flow of messages
between producers and consumers in the application.
The value must be the message-destination-name of a message
destination in the same Deployment File or in another
Deployment File in the same Java EE application unit.
Alternatively, the value may be composed of a path name
specifying a Deployment File containing the referenced
message destination with the message-destination-name of the
destination appended and separated from the path name by
"#". The path name is relative to the Deployment File
containing Deployment Component that is referencing the
message destination. This allows multiple message
destinations with the same name to be uniquely identified.
setMessageDestinationLink
public void setMessageDestinationLink(java.lang.String value)
getActivationConfig
public ActivationConfig getActivationConfig()
setActivationConfig
public void setActivationConfig(ActivationConfig value)
getAroundInvoke
public java.util.List<AroundInvoke> getAroundInvoke()
- Specified by:
getAroundInvoke
in interface Lifecycle
addAroundInvoke
public void addAroundInvoke(java.lang.String method)
- Specified by:
addAroundInvoke
in interface Lifecycle
getEnvEntry
public java.util.Collection<EnvEntry> getEnvEntry()
- Specified by:
getEnvEntry
in interface JndiConsumer
getEnvEntryMap
public java.util.Map<java.lang.String,EnvEntry> getEnvEntryMap()
- Specified by:
getEnvEntryMap
in interface JndiConsumer
getEjbRef
public java.util.Collection<EjbRef> getEjbRef()
- Specified by:
getEjbRef
in interface JndiConsumer
getEjbRefMap
public java.util.Map<java.lang.String,EjbRef> getEjbRefMap()
- Specified by:
getEjbRefMap
in interface JndiConsumer
getEjbLocalRef
public java.util.Collection<EjbLocalRef> getEjbLocalRef()
- Specified by:
getEjbLocalRef
in interface JndiConsumer
getEjbLocalRefMap
public java.util.Map<java.lang.String,EjbLocalRef> getEjbLocalRefMap()
- Specified by:
getEjbLocalRefMap
in interface JndiConsumer
getServiceRef
public java.util.Collection<ServiceRef> getServiceRef()
- Specified by:
getServiceRef
in interface JndiConsumer
getServiceRefMap
public java.util.Map<java.lang.String,ServiceRef> getServiceRefMap()
- Specified by:
getServiceRefMap
in interface JndiConsumer
getResourceRef
public java.util.Collection<ResourceRef> getResourceRef()
- Specified by:
getResourceRef
in interface JndiConsumer
getResourceRefMap
public java.util.Map<java.lang.String,ResourceRef> getResourceRefMap()
- Specified by:
getResourceRefMap
in interface JndiConsumer
getResourceEnvRef
public java.util.Collection<ResourceEnvRef> getResourceEnvRef()
- Specified by:
getResourceEnvRef
in interface JndiConsumer
getResourceEnvRefMap
public java.util.Map<java.lang.String,ResourceEnvRef> getResourceEnvRefMap()
- Specified by:
getResourceEnvRefMap
in interface JndiConsumer
getMessageDestinationRef
public java.util.Collection<MessageDestinationRef> getMessageDestinationRef()
- Specified by:
getMessageDestinationRef
in interface JndiConsumer
getMessageDestinationRefMap
public java.util.Map<java.lang.String,MessageDestinationRef> getMessageDestinationRefMap()
- Specified by:
getMessageDestinationRefMap
in interface JndiConsumer
getPersistenceContextRef
public java.util.Collection<PersistenceContextRef> getPersistenceContextRef()
- Specified by:
getPersistenceContextRef
in interface JndiConsumer
getPersistenceContextRefMap
public java.util.Map<java.lang.String,PersistenceContextRef> getPersistenceContextRefMap()
- Specified by:
getPersistenceContextRefMap
in interface JndiConsumer
getPersistenceUnitRef
public java.util.Collection<PersistenceUnitRef> getPersistenceUnitRef()
- Specified by:
getPersistenceUnitRef
in interface JndiConsumer
getPersistenceUnitRefMap
public java.util.Map<java.lang.String,PersistenceUnitRef> getPersistenceUnitRefMap()
- Specified by:
getPersistenceUnitRefMap
in interface JndiConsumer
getPostConstruct
public java.util.List<LifecycleCallback> getPostConstruct()
- Specified by:
getPostConstruct
in interface Lifecycle
addPostConstruct
public void addPostConstruct(java.lang.String method)
- Specified by:
addPostConstruct
in interface Lifecycle
getPreDestroy
public java.util.List<LifecycleCallback> getPreDestroy()
- Specified by:
getPreDestroy
in interface Lifecycle
addPreDestroy
public void addPreDestroy(java.lang.String method)
- Specified by:
addPreDestroy
in interface Lifecycle
getSecurityRoleRef
public java.util.List<SecurityRoleRef> getSecurityRoleRef()
- Specified by:
getSecurityRoleRef
in interface EnterpriseBean
getSecurityIdentity
public SecurityIdentity getSecurityIdentity()
- Specified by:
getSecurityIdentity
in interface EnterpriseBean
setSecurityIdentity
public void setSecurityIdentity(SecurityIdentity value)
- Specified by:
setSecurityIdentity
in interface EnterpriseBean
getId
public java.lang.String getId()
- Specified by:
getId
in interface EnterpriseBean
setId
public void setId(java.lang.String value)
- Specified by:
setId
in interface EnterpriseBean
Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.