org.jboss.metadata
Class MessageDrivenMetaData

java.lang.Object
  extended byorg.jboss.metadata.MetaData (src) 
      extended byorg.jboss.metadata.BeanMetaData (src) 
          extended byorg.jboss.metadata.MessageDrivenMetaData
All Implemented Interfaces:
java.lang.Cloneable, XmlLoadable (src)

public class MessageDrivenMetaData
extends BeanMetaData (src)

Provides a container and parser for the metadata of a message driven bean.

Have to add changes ApplicationMetaData and ConfigurationMetaData.


Field Summary
static int AUTO_ACKNOWLEDGE_MODE
           
static int CLIENT_ACKNOWLEDGE_MODE
           
static java.lang.String DEFAULT_MESSAGE_DRIVEN_BEAN_INVOKER_PROXY_BINDING
           
static java.lang.String DEFAULT_MESSAGING_TYPE
           
static int DUPS_OK_ACKNOWLEDGE_MODE
           
static byte DURABLE_SUBSCRIPTION
           
static byte NON_DURABLE_SUBSCRIPTION
           
static byte TX_UNSET
           
 
Fields inherited from class org.jboss.metadata.BeanMetaData (src)
beanType, callByValue, clustered, configurationName, containerManagedTx, ENTITY_TYPE, invokerBindings, LOCAL_INVOKER_PROXY_BINDING, MDB_TYPE, portComponent, serviceEndpointClass, SESSION_TYPE
 
Fields inherited from class org.jboss.metadata.MetaData (src)
log, TX_MANDATORY, TX_NEVER, TX_NOT_SUPPORTED, TX_REQUIRED, TX_REQUIRES_NEW, TX_SUPPORTS, TX_UNKNOWN
 
Constructor Summary
MessageDrivenMetaData(ApplicationMetaData (src)  app)
           
 
Method Summary
 void defaultInvokerBindings()
           
 int getAcknowledgeMode()
          Get the message acknowledgement mode.
 java.util.HashMap getActivationConfigProperties()
          Get all the activation config properties
 ActivationConfigPropertyMetaData (src) getActivationConfigProperty(java.lang.String name)
          Get a particular activation config property
 java.lang.String getClientId()
           
 java.lang.String getDefaultConfigurationName()
           
 java.lang.String getDestinationJndiName()
           
 java.lang.String getDestinationLink()
           
 java.lang.String getDestinationType()
           
 java.lang.String getMessageSelector()
           
 java.lang.String getMessagingType()
           
 byte getMethodTransactionType()
          Check MDB methods TX type, is cached here
 byte getMethodTransactionType(java.lang.String methodName, java.lang.Class[] signature)
          Check MDB methods TX type, is cached here
 byte getMethodTransactionType(java.lang.String methodName, java.lang.Class[] params, InvocationType (src)  iface)
          Overide here, since a message driven bean only ever have one method, which we might cache.
 java.lang.String getPasswd()
           
 java.lang.String getResourceAdapterName()
          Get the resource adapter name
 byte getSubscriptionDurability()
          Get the subscription durability mode.
 java.lang.String getSubscriptionId()
           
 java.lang.String getUser()
           
 void importEjbJarXml(org.w3c.dom.Element element)
          Called to parse the ejb-jar.xml enterprise-beans child ejb elements
 void importJbossXml(org.w3c.dom.Element element)
          Called to parse the jboss.xml enterprise-beans child ejb elements
 boolean isJMSMessagingType()
           
 
Methods inherited from class org.jboss.metadata.BeanMetaData (src)
addExcludedMethod, addPermissionMethod, addTransactionMethod, getApplicationMetaData, getClusterConfigMetaData, getConfigurationName, getContainerConfiguration, getContainerObjectNameJndiName, getDepends, getEjbClass, getEjbLocalRefByName, getEjbLocalReferences, getEjbName, getEjbRefByName, getEjbReferences, getEnvironmentEntries, getExceptionRollback, getExcludedMethods, getHome, getInvokerBinding, getInvokerBindings, getIorSecurityConfigMetaData, getJndiName, getLocal, getLocalHome, getLocalJndiName, getMessageDestinationReferences, getMethodPermissions, getPermissionMethods, getPortComponent, getRemote, getResourceEnvReferences, getResourceReferences, getSecurityIdentityMetaData, getSecurityProxy, getSecurityRoleReferences, getServiceEndpoint, getServiceReferences, getTransactionMethod, getTransactionMethods, getTransactionTimeout, getTransactionTimeout, hasMethodPermission, isBeanManagedTx, isCallByValue, isClustered, isContainerManagedTx, isEntity, isExcludeMissingMethods, isMessageDriven, isMethodReadOnly, isMethodReadOnly, isSession
 
Methods inherited from class org.jboss.metadata.MetaData (src)
clone, getChildrenByTagName, getElementAttribute, getElementContent, getElementContent, getFirstElementContent, getOptionalChild, getOptionalChild, getOptionalChildBooleanContent, getOptionalChildBooleanContent, getOptionalChildContent, getOptionalChildContent, getUniqueChild, getUniqueChildContent, importXml, jdk13Enabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AUTO_ACKNOWLEDGE_MODE

public static final int AUTO_ACKNOWLEDGE_MODE
See Also:
Constant Field Values (src)

DUPS_OK_ACKNOWLEDGE_MODE

public static final int DUPS_OK_ACKNOWLEDGE_MODE
See Also:
Constant Field Values (src)

CLIENT_ACKNOWLEDGE_MODE

public static final int CLIENT_ACKNOWLEDGE_MODE
See Also:
Constant Field Values (src)

DURABLE_SUBSCRIPTION

public static final byte DURABLE_SUBSCRIPTION
See Also:
Constant Field Values (src)

NON_DURABLE_SUBSCRIPTION

public static final byte NON_DURABLE_SUBSCRIPTION
See Also:
Constant Field Values (src)

TX_UNSET

public static final byte TX_UNSET
See Also:
Constant Field Values (src)

DEFAULT_MESSAGE_DRIVEN_BEAN_INVOKER_PROXY_BINDING

public static final java.lang.String DEFAULT_MESSAGE_DRIVEN_BEAN_INVOKER_PROXY_BINDING
See Also:
Constant Field Values (src)

DEFAULT_MESSAGING_TYPE

public static final java.lang.String DEFAULT_MESSAGING_TYPE
See Also:
Constant Field Values (src)
Constructor Detail

MessageDrivenMetaData

public MessageDrivenMetaData(ApplicationMetaData (src)  app)
Method Detail

getAcknowledgeMode

public int getAcknowledgeMode()
Get the message acknowledgement mode.

Returns:
MessageDrivenMetaData.AUTO_ACKNOWLADGE_MODE or MessageDrivenMetaData.DUPS_OK_AKNOWLEDGE_MODE or MessageDrivenMetaData.CLIENT_ACKNOWLEDGE_MODE

getMessagingType

public java.lang.String getMessagingType()

isJMSMessagingType

public boolean isJMSMessagingType()

getDestinationType

public java.lang.String getDestinationType()

getDestinationLink

public java.lang.String getDestinationLink()

getMessageSelector

public java.lang.String getMessageSelector()

getDestinationJndiName

public java.lang.String getDestinationJndiName()

getUser

public java.lang.String getUser()

getPasswd

public java.lang.String getPasswd()

getClientId

public java.lang.String getClientId()

getSubscriptionId

public java.lang.String getSubscriptionId()

getMethodTransactionType

public byte getMethodTransactionType()
Check MDB methods TX type, is cached here


getMethodTransactionType

public byte getMethodTransactionType(java.lang.String methodName,
                                     java.lang.Class[] signature)
Check MDB methods TX type, is cached here


getMethodTransactionType

public byte getMethodTransactionType(java.lang.String methodName,
                                     java.lang.Class[] params,
                                     InvocationType (src)  iface)
Overide here, since a message driven bean only ever have one method, which we might cache.

Overrides:
getMethodTransactionType in class BeanMetaData (src)

getSubscriptionDurability

public byte getSubscriptionDurability()
Get the subscription durability mode.

Returns:
MessageDrivenMetaData.DURABLE_SUBSCRIPTION or MessageDrivenMetaData.NON_DURABLE_SUBSCRIPTION

getDefaultConfigurationName

public java.lang.String getDefaultConfigurationName()
Specified by:
getDefaultConfigurationName in class BeanMetaData (src)

getActivationConfigProperties

public java.util.HashMap getActivationConfigProperties()
Get all the activation config properties

Returns:
a collection of ActivationConfigPropertyMetaData elements

getActivationConfigProperty

public ActivationConfigPropertyMetaData (src)  getActivationConfigProperty(java.lang.String name)
Get a particular activation config property

Parameters:
name - the name of the property
Returns:
the ActivationConfigPropertyMetaData or null if not found

getResourceAdapterName

public java.lang.String getResourceAdapterName()
Get the resource adapter name

Returns:
the resource adapter name or null if none specified

importEjbJarXml

public void importEjbJarXml(org.w3c.dom.Element element)
                     throws DeploymentException (src) 
Description copied from class: BeanMetaData (src)
Called to parse the ejb-jar.xml enterprise-beans child ejb elements

Overrides:
importEjbJarXml in class BeanMetaData (src)
Parameters:
element - one of session/entity/message-driven
Throws:
DeploymentException (src)

importJbossXml

public void importJbossXml(org.w3c.dom.Element element)
                    throws DeploymentException (src) 
Description copied from class: BeanMetaData (src)
Called to parse the jboss.xml enterprise-beans child ejb elements

Overrides:
importJbossXml in class BeanMetaData (src)
Parameters:
element - one of session/entity/message-driven
Throws:
DeploymentException (src)

defaultInvokerBindings

public void defaultInvokerBindings()
Specified by:
defaultInvokerBindings in class BeanMetaData (src)