FileDocCategorySizeDatePackage
MessageDrivenBean.javaAPI DocJBoss 4.2.15667Fri Jul 13 20:53:56 BST 2007org.jboss.ejb3.metamodel

MessageDrivenBean

public class MessageDrivenBean extends EnterpriseBean
Represents a message-driven element of the ejb-jar.xml deployment descriptor for the 1.4 schema
author
William DeCoste
version
$Revision: 60233 $

Fields Summary
private static final Logger
log
public static final String
BEAN
public static final String
CONTAINER
private String
acknowledgeMode
private String
transactionType
private String
messagingType
private String
resourceAdaptorName
private MessageDrivenDestination
messageDrivenDestination
private ActivationConfig
activationConfig
private ActivationConfig
defaultActivationConfig
private String
destinationJndiName
private String
mdbUser
private String
mdbPassword
private String
mdbSubscriptionId
private Method
aroundInvoke
private Method
postConstruct
private Method
postActivate
private Method
preDestroy
private Method
prePassivate
Constructors Summary
Methods Summary
public java.lang.StringgetAcknowledgeMode()

      return acknowledgeMode;
   
public ActivationConfiggetActivationConfig()

      return activationConfig;
   
public MethodgetAroundInvoke()

      return aroundInvoke;
   
public ActivationConfiggetDefaultActivationConfig()

   
     
   
      return defaultActivationConfig;
   
public java.lang.StringgetDestinationJndiName()

      return destinationJndiName;
   
public java.lang.StringgetMdbPassword()

      return mdbPassword;
   
public java.lang.StringgetMdbSubscriptionId()

      return mdbSubscriptionId;
   
public java.lang.StringgetMdbUser()

      return mdbUser;
   
public MessageDrivenDestinationgetMessageDrivenDestination()

      return messageDrivenDestination;
   
public java.lang.StringgetMessagingType()

      return messagingType;
   
public MethodgetPostConstruct()

      return postConstruct;
   
public MethodgetPreDestroy()

      return preDestroy;
   
public java.lang.StringgetResourceAdaptorName()

      return resourceAdaptorName;
   
public java.lang.StringgetTransactionType()

      return transactionType;
   
public voidsetAcknowledgeMode(java.lang.String acknowledgeMode)

      this.acknowledgeMode = acknowledgeMode;
   
public voidsetActivationConfig(ActivationConfig activationConfig)

      this.activationConfig = activationConfig;
   
public voidsetAroundInvoke(Method aroundInvoke)

      this.aroundInvoke = aroundInvoke;
   
public voidsetDefaultActivationConfig(ActivationConfig defaultActivationConfig)

      this.defaultActivationConfig = defaultActivationConfig;
   
public voidsetDestinationJndiName(java.lang.String name)

      destinationJndiName = name;
   
public voidsetMdbPassword(java.lang.String mdbPassword)

      this.mdbPassword = mdbPassword;
   
public voidsetMdbSubscriptionId(java.lang.String mdbSubscriptionId)

      this.mdbSubscriptionId = mdbSubscriptionId;
   
public voidsetMdbUser(java.lang.String mdbUser)

      this.mdbUser = mdbUser;
   
public voidsetMessageDrivenDestination(MessageDrivenDestination messageDrivenDestination)

      this.messageDrivenDestination = messageDrivenDestination;
   
public voidsetMessagingType(java.lang.String messagingType)

      this.messagingType = messagingType;
   
public voidsetPostConstruct(Method postConstruct)

      this.postConstruct = postConstruct;
   
public voidsetPreDestroy(Method preDestroy)

      this.preDestroy = preDestroy;
   
public voidsetResourceAdaptorName(java.lang.String resourceAdaptorName)

      this.resourceAdaptorName = resourceAdaptorName;
   
public voidsetTransactionType(java.lang.String transactionType)

      if (transactionType.equals(BEAN))
         tmType = TransactionManagementType.BEAN;
      else if (transactionType.equals(CONTAINER))
         tmType = TransactionManagementType.CONTAINER;
      this.transactionType = transactionType;
   
public java.lang.StringtoString()

      StringBuffer sb = new StringBuffer(100);
      sb.append("[MessageDrivenBean:");
      sb.append(super.toString());
      sb.append(",");
      sb.append("acknowledgeMode=").append(acknowledgeMode);
      sb.append("destination=").append(messageDrivenDestination);
      sb.append("messagingType=").append(messagingType);
      sb.append(']");
      return sb.toString();