Class EjbMessageBeanDescriptor
- java.lang.Object
-
- java.util.Observable
-
- org.glassfish.deployment.common.DynamicAttributesDescriptor
-
- org.glassfish.deployment.common.Descriptor
-
- com.sun.enterprise.deployment.CommonResourceDescriptor
-
- org.glassfish.ejb.deployment.descriptor.EjbDescriptor
-
- org.glassfish.ejb.deployment.descriptor.EjbMessageBeanDescriptor
-
- All Implemented Interfaces:
EjbDescriptor,EjbMessageBeanDescriptor,JndiNameEnvironment,NamedDescriptor,EjbReferenceContainer,MessageDestinationReferenceContainer,MessageDestinationReferencer,ResourceEnvReferenceContainer,ResourceReferenceContainer,ServiceReferenceContainer,WritableJndiNameEnvironment,Serializable
public final class EjbMessageBeanDescriptor extends EjbDescriptor implements MessageDestinationReferencer, EjbMessageBeanDescriptor
Objects of this kind represent the deployment information describing a single message driven Ejb.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.glassfish.ejb.deployment.descriptor.EjbDescriptor
DISTRIBUTED_TRANSACTION_SCOPE, isDistributedTxScope, LOCAL_TRANSACTION_SCOPE, runAsIdentity, securityIdentityDescription, transactionType, usesCallerIdentity, usesDefaultTransaction
-
Fields inherited from class org.glassfish.deployment.common.Descriptor
DESCRIPTION_CHANGED, DESCRIPTOR_CHANGED, docType, LARGE_ICON_CHANGED, NAME_CHANGED, SMALL_ICON_CHANGED
-
Fields inherited from interface com.sun.enterprise.deployment.EjbDescriptor
BEAN_TRANSACTION_TYPE, CONTAINER_TRANSACTION_TYPE
-
Fields inherited from interface com.sun.enterprise.deployment.EjbMessageBeanDescriptor
TYPE
-
-
Constructor Summary
Constructors Constructor Description EjbMessageBeanDescriptor()Default constructor.EjbMessageBeanDescriptor(EjbMessageBeanDescriptor other)The copy constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActivationConfigDescriptorgetActivationConfigDescriptor()Set<EnvironmentProperty>getActivationConfigProperties()Returns a set of the activation config properties that have been set for the MDBStringgetActivationConfigValue(String name)Gets the value of a specificActivationConfigPropertyStringgetConnectionFactoryName()StringgetContainerFactoryQualifier()StringgetDestinationType()Gets the type of the destination setStringgetDurableSubscriptionName()StringgetEjbTypeForDisplay()intgetJmsAcknowledgeMode()Gets how JMS messages should be acknowledged.StringgetJmsAcknowledgeModeAsString()Returns how JMS messages should be acknowledged.StringgetJmsMessageSelector()StringgetMdbConnectionFactoryJndiName()Returns the JNDI name of the connection factory used to create the Message-Driven Bean.EjbMessageBeanDescriptorgetMessageBeanOwner()Get the descriptor for the message-driven bean owner.MessageDestinationDescriptorgetMessageDestination()StringgetMessageDestinationLinkName()Gets the link name of the reference.MessageDestinationReferenceDescriptorgetMessageDestinationRefOwner()Get the descriptor for the message destination reference owner.Method[]getMessageListenerInterfaceMethods(ClassLoader classLoader)This returns the message listener onMessage method from the *message listener interface* itself, as opposed to the method from the ejb class that implements it.StringgetMessageListenerType()VectorgetMethods(ClassLoader classLoader)Return the ejb method objects, i.e.VectorgetPossibleTransactionAttributes()Returns the set of transaction attributes that can be assigned to methods of this ejb when in CMT mode.StringgetResourceAdapterMid()Gets the module id of the resource adapter set with the MDBActivationConfigDescriptorgetRuntimeActivationConfigDescriptor()Set<EnvironmentProperty>getRuntimeActivationConfigProperties()StringgetRuntimeActivationConfigValue(String name)SetgetSecurityBusinessMethodDescriptors()Returns the full set of security business method descriptors.protected CollectiongetTransactionMethods(ClassLoader classLoader)SetgetTxBusinessMethodDescriptors()Returns the full set of transactional business method descriptors I have.StringgetType()Returns the type of this bean - always "Message-driven".booleanhasConnectionFactory()Returns true if a connection factory has been setbooleanhasDestinationType()Returns true if the destination type has been setbooleanhasDurableSubscription()booleanhasJmsMessageSelector()booleanhasMessageDestinationLinkName()Returns true if a link name has been setbooleanhasQueueDest()Returns true if the destination type is of QueuebooleanhasResourceAdapterMid()Returns true if a resource adapter has been set for usage with this MDBbooleanhasTopicDest()Returns true if the destination type is of jakarta.jms.topicbooleanisLinkedToMessageDestination()booleanownedByMessageBean()True if the owner is a message-driven bean.booleanownedByMessageDestinationRef()True if the owner is a message destination reference.voidprint(StringBuilder toStringBuilder)Returns a formatted String of the attributes of this object.voidputActivationConfigProperty(EnvironmentProperty prop)voidputRuntimeActivationConfigProperty(EnvironmentProperty prop)voidremoveActivationConfigProperty(EnvironmentProperty prop)voidremoveActivationConfigPropertyByName(String name)voidremoveRuntimeActivationConfigProperty(EnvironmentProperty prop)voidremoveRuntimeActivationConfigPropertyByName(String name)MessageDestinationDescriptorresolveLinkName()Try to resolve the current link name value to a MessageDestination object.voidsetActivationConfigDescriptor(ActivationConfigDescriptor desc)voidsetConnectionFactoryName(String connectionFactory)Connection factory is optional.voidsetContainerTransactionFor(MethodDescriptor methodDescriptor, ContainerTransaction containerTransaction)Sets the container transaction for the given method descriptor.voidsetDestinationType(String destType)Sets the destination type.voidsetDurableSubscriptionName(String durableSubscriptionName)voidsetHasDurableSubscription(boolean durable)voidsetHasQueueDest()Sets the destination type to be QueuevoidsetHasTopicDest()Sets the destination type to be TopicvoidsetJmsAcknowledgeMode(int acknowledgeMode)Sets how JMS messages should be acknowledged.voidsetJmsAcknowledgeMode(String acknowledgeMode)Sets how JMS messages should be acknowledged.voidsetJmsMessageSelector(String selector)voidsetMessageDestination(MessageDestinationDescriptor newMsgDest)voidsetMessageDestinationLinkName(String linkName)Sets the name of the message destination to which I refer.MessageDestinationDescriptorsetMessageDestinationLinkName(String linkName, boolean resolveLink)Sets the name of the message destination to which I refer.voidsetMessageListenerType(String messagingType)voidsetResourceAdapterMid(String resourceAdapterMid)resource-adapter-mid is optional.voidsetRuntimeActivationConfigDescriptor(ActivationConfigDescriptor desc)voidsetSubscriptionDurability(String subscription)voidsetTransactionType(String transactionType)Sets the transaction type for this bean.voidsetType(String type)Sets my type-
Methods inherited from class org.glassfish.ejb.deployment.descriptor.EjbDescriptor
addAllInterfaceMethodsIn, addAroundInvokeDescriptor, addAroundTimeoutDescriptor, addEjbDescriptor, addEjbReferenceDescriptor, addEjbReferencer, addEntityManagerFactoryReferenceDescriptor, addEntityManagerReferenceDescriptor, addEnvironmentProperty, addFrameworkInterceptor, addInterceptorClass, addIORConfigurationDescriptor, addLocalBusinessClassName, addMessageDestinationReferenceDescriptor, addMethodLevelChain, addNoInterfaceLocalBeanClass, addPermissionedMethod, addPostConstructDescriptor, addPreDestroyDescriptor, addRemoteBusinessClassName, addResourceDescriptor, addResourceEnvReferenceDescriptor, addResourceReferenceDescriptor, addRoleReference, addScheduledTimerDescriptor, addScheduledTimerDescriptorFromDD, addServiceReferenceDescriptor, allMechanismsRequireSSL, appendToInterceptorChain, applyDefaultClassToLifecycleMethods, applyInterceptors, getAllEjbReferencers, getAllResourcesDescriptors, getAllResourcesDescriptors, getApplication, getAroundInvokeDescriptorByClass, getAroundInvokeDescriptors, getAroundInvokeInterceptors, getAroundTimeoutDescriptorByClass, getAroundTimeoutDescriptors, getAroundTimeoutInterceptors, getBusinessMethodDescriptorFor, getCallbackInterceptors, getClientBusinessMethodDescriptors, getContainerTransaction, getContainerTransactionFor, getEjbBundleDescriptor, getEjbClassName, getEjbImplClassName, getEJBLocalObjectImplClassName, getEJBObjectImplClassName, getEjbReference, getEjbReferenceDescriptors, getEjbTimeoutMethod, getEntityManagerFactoryReferenceByName, getEntityManagerFactoryReferenceDescriptors, getEntityManagerReferenceByName, getEntityManagerReferenceDescriptors, getEnvironmentProperties, getEnvironmentPropertyByName, getExcludedMethodDescriptors, getFieldDescriptors, getFields, getFrameworkInterceptors, getHomeClassName, getIASEjbExtraDescriptors, getInjectableResourcesByClass, getInjectionInfoByClass, getInterceptorChain, getInterceptorClasses, getInterceptorClassNames, getIORConfigurationDescriptors, getJndiName, getLifecycleCallbackDescriptors, getLocalBusinessClassNames, getLocalClassName, getLocalHomeClassName, getLocalHomeImplClassName, getMappedName, getMessageDestinationReferenceByName, getMessageDestinationReferenceDescriptors, getMethodContainerTransactions, getMethodDescriptors, getMethodInterceptorsMap, getMethodPermissionsFor, getMethodPermissionsFromDD, getMethods, getNoInterfaceLocalBeanClasses, getOptionalLocalBusinessMethods, getPermissionedMethodsByPermission, getPermissionedRoles, getPostConstructDescriptorByClass, getPostConstructDescriptors, getPreDestroyDescriptorByClass, getPreDestroyDescriptors, getRemoteBusinessClassNames, getRemoteClassName, getRemoteHomeImplClassName, getResourceDescriptors, getResourceEnvReferenceByName, getResourceEnvReferenceDescriptors, getResourceReferenceByName, getResourceReferenceDescriptors, getResourceReferenceDescriptors, getRoleReferenceByName, getRoleReferences, getRunAsIdentity, getScheduledTimerDescriptors, getSecurityIdentityDescription, getServiceReferenceByName, getServiceReferenceDescriptors, getStyledPermissionedMethodsByPermission, getTransactionMethodDescriptors, getTransactionType, getUncheckedMethodDescriptors, getUniqueId, getUsesCallerIdentity, getWebServiceEndpointInterfaceName, hasAroundInvokeMethod, hasAroundTimeoutMethod, hasInterceptorClass, hasPostConstructMethod, hasPreDestroyMethod, hasResolvedResourceReferences, hasScheduledTimerMethodFromDD, hasWebServiceEndpointInterface, isDistributedTransactionScope, isLocalBean, isLocalBusinessInterfacesSupported, isLocalInterfacesSupported, isRemoteBusinessInterfacesSupported, isRemoteInterfacesSupported, isTimedObject, isUsesDefaultTransaction, notifyNewModule, removeEjbReferenceDescriptor, removeEjbReferencer, removeEnvironmentProperty, removeMessageDestinationReferenceDescriptor, removePermissionedMethod, removeResourceDescriptor, removeResourceEnvReferenceDescriptor, removeResourceReferenceDescriptor, removeRoleReference, removeServiceReferenceDescriptor, setDistributedTransactionScope, setEjbBundleDescriptor, setEjbClassName, setEJBLocalObjectImplClassName, setEJBObjectImplClassName, setEjbTimeoutMethod, setHomeClassName, setJndiName, setLocalBean, setLocalClassName, setLocalHomeClassName, setLocalHomeImplClassName, setMappedName, setMethodContainerTransactions, setRemoteClassName, setRemoteHomeImplClassName, setRunAsIdentity, setSecurityIdentityDescription, setUniqueId, setUsesCallerIdentity, setUsesDefaultTransaction, setWebServiceEndpointInterfaceName, visit, visit
-
Methods inherited from class com.sun.enterprise.deployment.CommonResourceDescriptor
getResourceDescriptor
-
Methods inherited from class org.glassfish.deployment.common.Descriptor
addDescriptorExtension, addPrefixMapping, createUniqueFilenameAmongst, createUniqueNameAmongst, createUniqueNameAmongstNamedDescriptors, fillDocType, getDeploymentExtensions, getDescription, getDescriptorExtension, getDescriptorExtensions, getDisplayName, getDocType, getLargeIconUri, getLocalizedDescription, getLocalizedDescriptions, getLocalizedDisplayName, getLocalizedDisplayNames, getLocalizedLargeIconUri, getLocalizedLargeIconUris, getLocalizedSmallIconUri, getLocalizedSmallIconUris, getName, getPrefixMapping, getSmallIconUri, isBoundsChecking, setBoundsChecking, setDescription, setDisplayName, setLargeIconUri, setLocalizedDescription, setLocalizedDisplayName, setLocalizedLargeIconUri, setLocalizedSmallIconUri, setName, setSmallIconUri
-
Methods inherited from class org.glassfish.deployment.common.DynamicAttributesDescriptor
addExtraAttribute, getExtraAttribute, getExtraAttributes, removeExtraAttribute, toString
-
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.sun.enterprise.deployment.EjbDescriptor
addEjbReferencer, addFrameworkInterceptor, addInterceptorClass, addMethodLevelChain, addPermissionedMethod, addRoleReference, allMechanismsRequireSSL, appendToInterceptorChain, getApplication, getEjbBundleDescriptor, getEjbClassName, getEjbImplClassName, getHomeClassName, getIORConfigurationDescriptors, getLocalBusinessClassNames, getLocalClassName, getLocalHomeClassName, getMethodDescriptors, getMethodPermissionsFor, getMethodPermissionsFromDD, getPermissionedRoles, getRemoteBusinessClassNames, getRemoteClassName, getRoleReferenceByName, getRoleReferences, getRunAsIdentity, getTransactionType, getUniqueId, getUsesCallerIdentity, getWebServiceEndpointInterfaceName, hasInterceptorClass, hasWebServiceEndpointInterface, isLocalBean, isLocalBusinessInterfacesSupported, isLocalInterfacesSupported, isRemoteBusinessInterfacesSupported, isRemoteInterfacesSupported, notifyNewModule, removeEjbReferencer, setRunAsIdentity, setUniqueId, setUsesCallerIdentity, setWebServiceEndpointInterfaceName
-
Methods inherited from interface com.sun.enterprise.deployment.types.EjbReferenceContainer
addEjbReferenceDescriptor, getEjbReference, getEjbReferenceDescriptors
-
Methods inherited from interface com.sun.enterprise.deployment.JndiNameEnvironment
getAllResourcesDescriptors, getAllResourcesDescriptors, getEjbReferenceDescriptors, getEntityManagerFactoryReferenceByName, getEntityManagerFactoryReferenceDescriptors, getEntityManagerReferenceByName, getEntityManagerReferenceDescriptors, getEnvironmentProperties, getEnvironmentPropertyByName, getInjectableResourcesByClass, getInjectionInfoByClass, getMessageDestinationReferenceByName, getMessageDestinationReferenceDescriptors, getPostConstructDescriptorByClass, getPostConstructDescriptors, getPreDestroyDescriptorByClass, getPreDestroyDescriptors, getResourceDescriptors, getResourceEnvReferenceByName, getResourceEnvReferenceDescriptors, getResourceReferenceDescriptors, getServiceReferenceByName, getServiceReferenceDescriptors
-
Methods inherited from interface com.sun.enterprise.deployment.types.MessageDestinationReferenceContainer
addMessageDestinationReferenceDescriptor, getMessageDestinationReferenceByName, getMessageDestinationReferenceDescriptors, removeMessageDestinationReferenceDescriptor
-
Methods inherited from interface com.sun.enterprise.deployment.NamedDescriptor
getJndiName, getName, setJndiName
-
Methods inherited from interface com.sun.enterprise.deployment.types.ResourceEnvReferenceContainer
addResourceEnvReferenceDescriptor, getResourceEnvReferenceByName, getResourceEnvReferenceDescriptors
-
Methods inherited from interface com.sun.enterprise.deployment.types.ResourceReferenceContainer
addResourceReferenceDescriptor, getResourceReferenceByName, getResourceReferenceDescriptors
-
Methods inherited from interface com.sun.enterprise.deployment.types.ServiceReferenceContainer
addServiceReferenceDescriptor, getServiceReferenceByName, getServiceReferenceDescriptors, removeServiceReferenceDescriptor
-
Methods inherited from interface com.sun.enterprise.deployment.WritableJndiNameEnvironment
addEjbReferenceDescriptor, addEntityManagerFactoryReferenceDescriptor, addEntityManagerReferenceDescriptor, addEnvironmentProperty, addMessageDestinationReferenceDescriptor, addPostConstructDescriptor, addPreDestroyDescriptor, addResourceDescriptor, addResourceEnvReferenceDescriptor, addResourceReferenceDescriptor, addServiceReferenceDescriptor, removeEjbReferenceDescriptor, removeEnvironmentProperty, removeMessageDestinationReferenceDescriptor, removeResourceDescriptor, removeResourceEnvReferenceDescriptor, removeResourceReferenceDescriptor, removeServiceReferenceDescriptor
-
-
-
-
Constructor Detail
-
EjbMessageBeanDescriptor
public EjbMessageBeanDescriptor()
Default constructor.
-
EjbMessageBeanDescriptor
public EjbMessageBeanDescriptor(EjbMessageBeanDescriptor other)
The copy constructor.- Parameters:
other- Another EjbMessageBeanDescriptor to copy the values of
-
-
Method Detail
-
getEjbTypeForDisplay
public String getEjbTypeForDisplay()
- Specified by:
getEjbTypeForDisplayin interfaceEjbDescriptor- Specified by:
getEjbTypeForDisplayin classEjbDescriptor
-
getType
public String getType()
Returns the type of this bean - always "Message-driven".- Specified by:
getTypein interfaceEjbDescriptor- Returns:
-
setContainerTransactionFor
public void setContainerTransactionFor(MethodDescriptor methodDescriptor, ContainerTransaction containerTransaction)
Description copied from class:EjbDescriptorSets the container transaction for the given method descriptor. Throws an Illegal argument if this ejb has transaction type BEAN_TRANSACTION_TYPE.- Overrides:
setContainerTransactionForin classEjbDescriptor
-
setType
public void setType(String type)
Sets my type- Specified by:
setTypein classEjbDescriptor- Parameters:
type-
-
setMessageListenerType
public void setMessageListenerType(String messagingType)
-
getMessageListenerType
public String getMessageListenerType()
- Specified by:
getMessageListenerTypein interfaceEjbMessageBeanDescriptor- Returns:
- "MessageListener" if not set
-
getTxBusinessMethodDescriptors
public Set getTxBusinessMethodDescriptors()
Description copied from class:EjbDescriptorReturns the full set of transactional business method descriptors I have.- Overrides:
getTxBusinessMethodDescriptorsin classEjbDescriptor- Returns:
-
getSecurityBusinessMethodDescriptors
public Set getSecurityBusinessMethodDescriptors()
Returns the full set of security business method descriptors.For a Message-Driven Bean this will always throw an
IllegalArgumentExceptionas it cannot have security business methods- Specified by:
getSecurityBusinessMethodDescriptorsin interfaceEjbDescriptor- Overrides:
getSecurityBusinessMethodDescriptorsin classEjbDescriptor- Returns:
-
getMessageListenerInterfaceMethods
public Method[] getMessageListenerInterfaceMethods(ClassLoader classLoader) throws NoSuchMethodException
This returns the message listener onMessage method from the *message listener interface* itself, as opposed to the method from the ejb class that implements it.- Parameters:
classLoader-- Returns:
- Throws:
NoSuchMethodException
-
getPossibleTransactionAttributes
public Vector getPossibleTransactionAttributes()
Description copied from class:EjbDescriptorReturns the set of transaction attributes that can be assigned to methods of this ejb when in CMT mode. Elements are of type ContainerTransaction- Overrides:
getPossibleTransactionAttributesin classEjbDescriptor
-
hasMessageDestinationLinkName
public boolean hasMessageDestinationLinkName()
Returns true if a link name has been set- Returns:
- See Also:
MessageDestinationReferencerImpl.getMessageDestinationLinkName()
-
isLinkedToMessageDestination
public boolean isLinkedToMessageDestination()
- Specified by:
isLinkedToMessageDestinationin interfaceMessageDestinationReferencer- Returns:
- true if this referencer is linked to a message destination and false otherwise.
-
getMessageDestinationLinkName
public String getMessageDestinationLinkName()
Description copied from interface:MessageDestinationReferencerGets the link name of the reference. Points to the associated message destination within the J2EE application. Can be NULL if link is not set.- Specified by:
getMessageDestinationLinkNamein interfaceMessageDestinationReferencer- Returns:
- the name of the message destination to which I refer
-
setMessageDestinationLinkName
public void setMessageDestinationLinkName(String linkName)
Sets the name of the message destination to which I refer.- Specified by:
setMessageDestinationLinkNamein interfaceMessageDestinationReferencer- Parameters:
linkName-
-
setMessageDestinationLinkName
public MessageDestinationDescriptor setMessageDestinationLinkName(String linkName, boolean resolveLink)
Description copied from interface:MessageDestinationReferencerSets the name of the message destination to which I refer.- Specified by:
setMessageDestinationLinkNamein interfaceMessageDestinationReferencerresolveLink- if true, *try* to resolve link to the target message destination.- Returns:
- MessageDestination to which link was resolved, or null if link name resolution failed.
-
resolveLinkName
public MessageDestinationDescriptor resolveLinkName()
Description copied from interface:MessageDestinationReferencerTry to resolve the current link name value to a MessageDestination object.- Specified by:
resolveLinkNamein interfaceMessageDestinationReferencer- Returns:
- MessageDestination to which link was resolved, or null if link name resolution failed.
-
ownedByMessageDestinationRef
public boolean ownedByMessageDestinationRef()
Description copied from interface:MessageDestinationReferencerTrue if the owner is a message destination reference.- Specified by:
ownedByMessageDestinationRefin interfaceMessageDestinationReferencer
-
getMessageDestinationRefOwner
public MessageDestinationReferenceDescriptor getMessageDestinationRefOwner()
Description copied from interface:MessageDestinationReferencerGet the descriptor for the message destination reference owner.- Specified by:
getMessageDestinationRefOwnerin interfaceMessageDestinationReferencer
-
ownedByMessageBean
public boolean ownedByMessageBean()
True if the owner is a message-driven bean.- Specified by:
ownedByMessageBeanin interfaceMessageDestinationReferencer- Returns:
- true
-
getMessageBeanOwner
public EjbMessageBeanDescriptor getMessageBeanOwner()
Get the descriptor for the message-driven bean owner.- Specified by:
getMessageBeanOwnerin interfaceMessageDestinationReferencer- Returns:
-
getMessageDestination
public MessageDestinationDescriptor getMessageDestination()
- Specified by:
getMessageDestinationin interfaceMessageDestinationReferencer- Returns:
- the message destination to which I refer. Can be NULL.
-
setMessageDestination
public void setMessageDestination(MessageDestinationDescriptor newMsgDest)
- Specified by:
setMessageDestinationin interfaceMessageDestinationReferencer- Parameters:
newMsgDest- the message destination to which I refer.
-
getActivationConfigProperties
public Set<EnvironmentProperty> getActivationConfigProperties()
Description copied from interface:EjbMessageBeanDescriptorReturns a set of the activation config properties that have been set for the MDB- Specified by:
getActivationConfigPropertiesin interfaceEjbMessageBeanDescriptor- Returns:
- Set of EnvironmentProperty elements.
- See Also:
ActivationConfigProperty
-
getActivationConfigValue
public String getActivationConfigValue(String name)
Description copied from interface:EjbMessageBeanDescriptorGets the value of a specificActivationConfigProperty- Specified by:
getActivationConfigValuein interfaceEjbMessageBeanDescriptor- Parameters:
name- the name of the property- Returns:
- the actual value of the property
-
putActivationConfigProperty
public void putActivationConfigProperty(EnvironmentProperty prop)
-
removeActivationConfigProperty
public void removeActivationConfigProperty(EnvironmentProperty prop)
-
removeActivationConfigPropertyByName
public void removeActivationConfigPropertyByName(String name)
-
getRuntimeActivationConfigProperties
public Set<EnvironmentProperty> getRuntimeActivationConfigProperties()
- Specified by:
getRuntimeActivationConfigPropertiesin interfaceEjbMessageBeanDescriptor- Returns:
- Set of EnvironmentProperty elements.
-
putRuntimeActivationConfigProperty
public void putRuntimeActivationConfigProperty(EnvironmentProperty prop)
- Specified by:
putRuntimeActivationConfigPropertyin interfaceEjbMessageBeanDescriptor
-
removeRuntimeActivationConfigProperty
public void removeRuntimeActivationConfigProperty(EnvironmentProperty prop)
-
removeRuntimeActivationConfigPropertyByName
public void removeRuntimeActivationConfigPropertyByName(String name)
-
hasQueueDest
public boolean hasQueueDest()
Description copied from interface:EjbMessageBeanDescriptorReturns true if the destination type is of Queue- Specified by:
hasQueueDestin interfaceEjbMessageBeanDescriptor- Returns:
- See Also:
hasTopicDest()
-
hasTopicDest
public boolean hasTopicDest()
Returns true if the destination type is of jakarta.jms.topic- Returns:
-
hasDestinationType
public boolean hasDestinationType()
Returns true if the destination type has been set- Returns:
-
getDestinationType
public String getDestinationType()
Description copied from interface:EjbMessageBeanDescriptorGets the type of the destination set- Specified by:
getDestinationTypein interfaceEjbMessageBeanDescriptor- Returns:
- Either "Queue" or "Topic"
-
setDestinationType
public void setDestinationType(String destType)
Sets the destination type. This should be either "java.jms.Queue" or "Topic"- Parameters:
destType-
-
hasDurableSubscription
public boolean hasDurableSubscription()
-
setHasDurableSubscription
public void setHasDurableSubscription(boolean durable)
-
setHasQueueDest
public void setHasQueueDest()
Sets the destination type to be Queue
-
setHasTopicDest
public void setHasTopicDest()
Sets the destination type to be Topic
-
setSubscriptionDurability
public void setSubscriptionDurability(String subscription)
-
hasJmsMessageSelector
public boolean hasJmsMessageSelector()
-
setJmsMessageSelector
public void setJmsMessageSelector(String selector)
-
getJmsMessageSelector
public String getJmsMessageSelector()
-
getJmsAcknowledgeMode
public int getJmsAcknowledgeMode()
Gets how JMS messages should be acknowledged.1 is for auto-acknowledge mode
3 is for dups-OK-acknowledge mode- Returns:
- 1 or 3
- See Also:
- Acknowledgment Modes
-
getJmsAcknowledgeModeAsString
public String getJmsAcknowledgeModeAsString()
Returns how JMS messages should be acknowledged.- Returns:
- "Dups-ok-acknowledge" or "Auto-acknowledge"
-
setJmsAcknowledgeMode
public void setJmsAcknowledgeMode(int acknowledgeMode)
Sets how JMS messages should be acknowledged.If the parameter is not 1 then it will be set to use dups-ok-acknowledge mode as there is no checking for this.
- Parameters:
acknowledgeMode- 1 for auto-acknowledgement, 3 for dups-ok-acknowledge
-
setJmsAcknowledgeMode
public void setJmsAcknowledgeMode(String acknowledgeMode)
Sets how JMS messages should be acknowledged.- Parameters:
acknowledgeMode- Must be either "Auto-acknowledge" or "Dups-ok-acknowledge" otherwise aIllegalArgumentExceptionwill be thrown
-
getDurableSubscriptionName
public String getDurableSubscriptionName()
- Specified by:
getDurableSubscriptionNamein interfaceEjbMessageBeanDescriptor
-
setDurableSubscriptionName
public void setDurableSubscriptionName(String durableSubscriptionName)
-
getConnectionFactoryName
public String getConnectionFactoryName()
-
setConnectionFactoryName
public void setConnectionFactoryName(String connectionFactory)
Connection factory is optional. If set to null, hasConnectionFactory will return false.- Parameters:
connectionFactory-
-
hasConnectionFactory
public boolean hasConnectionFactory()
Returns true if a connection factory has been set- Returns:
-
getResourceAdapterMid
public String getResourceAdapterMid()
Description copied from interface:EjbMessageBeanDescriptorGets the module id of the resource adapter set with the MDB- Specified by:
getResourceAdapterMidin interfaceEjbMessageBeanDescriptor- Returns:
nullif not set
-
getMdbConnectionFactoryJndiName
public String getMdbConnectionFactoryJndiName()
Description copied from interface:EjbMessageBeanDescriptorReturns the JNDI name of the connection factory used to create the Message-Driven Bean.- Specified by:
getMdbConnectionFactoryJndiNamein interfaceEjbMessageBeanDescriptor- Returns:
-
setResourceAdapterMid
public void setResourceAdapterMid(String resourceAdapterMid)
resource-adapter-mid is optional. It is set when a resource adapter is responsible for delivering messages to the message-driven bean. If not set, hasResourceAdapterMid will return false.- Specified by:
setResourceAdapterMidin interfaceEjbMessageBeanDescriptor- Parameters:
resourceAdapterMid-
-
hasResourceAdapterMid
public boolean hasResourceAdapterMid()
Returns true if a resource adapter has been set for usage with this MDB- Returns:
-
getMethods
public Vector getMethods(ClassLoader classLoader)
Return the ejb method objects, i.e. the methods on the home and remote interfaces.For a Message-Driven Bean this will always return an empty vector
- Overrides:
getMethodsin classEjbDescriptor- Returns:
-
getTransactionMethods
protected Collection getTransactionMethods(ClassLoader classLoader)
- Overrides:
getTransactionMethodsin classEjbDescriptor- Parameters:
classLoader-- Returns:
- a collection of MethodDescriptor for methods which may have a assigned security attribute.
-
getContainerFactoryQualifier
public String getContainerFactoryQualifier()
- Specified by:
getContainerFactoryQualifierin classEjbDescriptor
-
setTransactionType
public void setTransactionType(String transactionType)
Sets the transaction type for this bean. Must be either BEAN_TRANSACTION_TYPE or CONTAINER_TRANSACTION_TYPE.- Specified by:
setTransactionTypein classEjbDescriptor- Parameters:
transactionType-
-
setActivationConfigDescriptor
public void setActivationConfigDescriptor(ActivationConfigDescriptor desc)
-
getActivationConfigDescriptor
public ActivationConfigDescriptor getActivationConfigDescriptor()
-
setRuntimeActivationConfigDescriptor
public void setRuntimeActivationConfigDescriptor(ActivationConfigDescriptor desc)
-
getRuntimeActivationConfigDescriptor
public ActivationConfigDescriptor getRuntimeActivationConfigDescriptor()
-
print
public void print(StringBuilder toStringBuilder)
Returns a formatted String of the attributes of this object.- Overrides:
printin classEjbDescriptor- Parameters:
toStringBuilder-
-
-