站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 3.2.7 server API Documentation 英文版文档

MessageDrivenMetaData (JBoss Server API) - JBoss 3.2.7 server API Documentation 英文版文档


org.jboss.metadata
Class MessageDrivenMetaData

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

public class MessageDrivenMetaData
extends BeanMetaData

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

Have to add changes ApplicationMetaData and ConfigurationMetaData.

Version:
$Revision: 1.22.2.1 $
Author:
Sebastien Alborini, Peter Antman, Andreas Schaefer

Revisions:

20011031: Andy

  • Ensured that the value in the descriptor does not be compromised by leading and trailing spaces as well as line-breaks


Field Summary
static int AUTO_ACKNOWLEDGE_MODE
           
static int CLIENT_ACKNOWLEDGE_MODE
           
static String DEFAULT_MESSAGE_DRIVEN_BEAN_INVOKER_PROXY_BINDING
           
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
beanType, callByValue, clustered, configurationName, containerManagedTx, ENTITY_TYPE, invokerBindings, LOCAL_INVOKER_PROXY_BINDING, MDB_TYPE, SESSION_TYPE
 
Fields inherited from class org.jboss.metadata.MetaData
log, TX_MANDATORY, TX_NEVER, TX_NOT_SUPPORTED, TX_REQUIRED, TX_REQUIRES_NEW, TX_SUPPORTS, TX_UNKNOWN
 
Constructor Summary
MessageDrivenMetaData(ApplicationMetaData app)
           
 
Method Summary
 void defaultInvokerBindings()
           
 int getAcknowledgeMode()
          Get the message acknowledgement mode.
 String getClientId()
           
 String getDefaultConfigurationName()
           
 String getDestinationJndiName()
           
 String getDestinationType()
           
 String getMessageSelector()
           
 byte getMethodTransactionType()
          Check MDB methods TX type, is cached here
 byte getMethodTransactionType(String methodName, Class[] params, InvocationType iface)
          Overide here, since a message driven bean only ever have one method, which we might cache.
 String getPasswd()
           
 byte getSubscriptionDurability()
          Get the subscription durability mode.
 String getSubscriptionId()
           
 String getUser()
           
 void importEjbJarXml(Element element)
          Non-operation.
 void importJbossXml(Element element)
          Non-operation.
 
Methods inherited from class org.jboss.metadata.BeanMetaData
addExcludedMethod, addPermissionMethod, addTransactionMethod, getApplicationMetaData, getClusterConfigMetaData, getConfigurationName, getContainerConfiguration, getContainerObjectNameJndiName, getDepends, getEjbClass, getEjbLocalRefByName, getEjbLocalReferences, getEjbName, getEjbRefByName, getEjbReferences, getEnvironmentEntries, getExcludedMethods, getHome, getInvokerBinding, getInvokerBindings, getJndiName, getLocal, getLocalHome, getLocalJndiName, getMethodPermissions, getPermissionMethods, getRemote, getResourceEnvReferences, getResourceReferences, getSecurityIdentityMetaData, getSecurityProxy, getSecurityRoleReferences, getTransactionMethod, getTransactionMethods, getTransactionTimeout, getTransactionTimeout, isBeanManagedTx, isCallByValue, isClustered, isContainerManagedTx, isEntity, isMessageDriven, isMethodReadOnly, isMethodReadOnly, isSession
 
Methods inherited from class org.jboss.metadata.MetaData
clone, getChildrenByTagName, getElementAttribute, getElementContent, getElementContent, getFirstElementContent, getOptionalChild, getOptionalChild, getOptionalChildBooleanContent, 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

DUPS_OK_ACKNOWLEDGE_MODE

public static final int DUPS_OK_ACKNOWLEDGE_MODE
See Also:
Constant Field Values

CLIENT_ACKNOWLEDGE_MODE

public static final int CLIENT_ACKNOWLEDGE_MODE
See Also:
Constant Field Values

DURABLE_SUBSCRIPTION

public static final byte DURABLE_SUBSCRIPTION
See Also:
Constant Field Values

NON_DURABLE_SUBSCRIPTION

public static final byte NON_DURABLE_SUBSCRIPTION
See Also:
Constant Field Values

TX_UNSET

public static final byte TX_UNSET
See Also:
Constant Field Values

DEFAULT_MESSAGE_DRIVEN_BEAN_INVOKER_PROXY_BINDING

public static final String DEFAULT_MESSAGE_DRIVEN_BEAN_INVOKER_PROXY_BINDING
See Also:
Constant Field Values
Constructor Detail

MessageDrivenMetaData

public MessageDrivenMetaData(ApplicationMetaData 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

getDestinationType

public String getDestinationType()

getMessageSelector

public String getMessageSelector()

getDestinationJndiName

public String getDestinationJndiName()

getUser

public String getUser()

getPasswd

public String getPasswd()

getClientId

public String getClientId()

getSubscriptionId

public String getSubscriptionId()

getMethodTransactionType

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


getMethodTransactionType

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

Overrides:
getMethodTransactionType in class BeanMetaData

getSubscriptionDurability

public byte getSubscriptionDurability()
Get the subscription durability mode.

Returns:
MessageDrivenMetaData.DURABLE_SUBSCRIPTION or MessageDrivenMetaData.NON_DURABLE_SUBSCRIPTION

getDefaultConfigurationName

public String getDefaultConfigurationName()
Specified by:
getDefaultConfigurationName in class BeanMetaData

importEjbJarXml

public void importEjbJarXml(Element element)
                     throws org.jboss.deployment.DeploymentException
Description copied from class: MetaData
Non-operation.

Overrides:
importEjbJarXml in class BeanMetaData
Throws:
org.jboss.deployment.DeploymentException

importJbossXml

public void importJbossXml(Element element)
                    throws org.jboss.deployment.DeploymentException
Description copied from class: MetaData
Non-operation.

Overrides:
importJbossXml in class BeanMetaData
Throws:
org.jboss.deployment.DeploymentException

defaultInvokerBindings

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


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.