public final class EjbMessageBeanDescriptor extends EjbDescriptor implements MessageDestinationReferencer, EjbMessageBeanDescriptor
DISTRIBUTED_TRANSACTION_SCOPE, isDistributedTxScope, LOCAL_TRANSACTION_SCOPE, runAsIdentity, securityIdentityDescription, transactionType, usesCallerIdentity, usesDefaultTransaction
DESCRIPTION_CHANGED, DESCRIPTOR_CHANGED, docType, LARGE_ICON_CHANGED, NAME_CHANGED, SMALL_ICON_CHANGED
TYPE
BEAN_TRANSACTION_TYPE, CONTAINER_TRANSACTION_TYPE
Constructor and Description |
---|
EjbMessageBeanDescriptor()
Default constructor.
|
EjbMessageBeanDescriptor(EjbMessageBeanDescriptor other)
The copy constructor.
|
Modifier and Type | Method and Description |
---|---|
ActivationConfigDescriptor |
getActivationConfigDescriptor() |
Set<EnvironmentProperty> |
getActivationConfigProperties()
Returns a set of the activation config properties that have been set for the MDB
|
String |
getActivationConfigValue(String name)
Gets the value of a specific
ActivationConfigProperty |
String |
getConnectionFactoryName() |
String |
getContainerFactoryQualifier() |
String |
getDestinationType()
Gets the type of the destination set
|
String |
getDurableSubscriptionName() |
String |
getEjbTypeForDisplay() |
int |
getJmsAcknowledgeMode()
Gets how JMS messages should be acknowledged.
|
String |
getJmsAcknowledgeModeAsString()
Returns how JMS messages should be acknowledged.
|
String |
getJmsMessageSelector() |
String |
getMdbConnectionFactoryJndiName()
Returns the JNDI name of the connection factory used to create the
Message-Driven Bean.
|
EjbMessageBeanDescriptor |
getMessageBeanOwner()
Get the descriptor for the message-driven bean owner.
|
MessageDestinationDescriptor |
getMessageDestination() |
String |
getMessageDestinationLinkName()
Gets the link name of the reference.
|
MessageDestinationReferenceDescriptor |
getMessageDestinationRefOwner()
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.
|
String |
getMessageListenerType() |
Vector |
getMethods(ClassLoader classLoader)
Return the ejb method objects, i.e.
|
Vector |
getPossibleTransactionAttributes()
Returns the set of transaction attributes that can be assigned to methods of this ejb when in CMT mode.
|
String |
getResourceAdapterMid()
Gets the module id of the resource adapter set with the MDB
|
ActivationConfigDescriptor |
getRuntimeActivationConfigDescriptor() |
Set<EnvironmentProperty> |
getRuntimeActivationConfigProperties() |
String |
getRuntimeActivationConfigValue(String name) |
Set |
getSecurityBusinessMethodDescriptors()
Returns the full set of security business method descriptors.
|
protected Collection |
getTransactionMethods(ClassLoader classLoader) |
Set |
getTxBusinessMethodDescriptors()
Returns the full set of transactional business method descriptors I have.
|
String |
getType()
Returns the type of this bean - always "Message-driven".
|
boolean |
hasConnectionFactory()
Returns true if a connection factory has been set
|
boolean |
hasDestinationType()
Returns true if the destination type has been set
|
boolean |
hasDurableSubscription() |
boolean |
hasJmsMessageSelector() |
boolean |
hasMessageDestinationLinkName()
Returns true if a link name has been set
|
boolean |
hasQueueDest()
Returns true if the destination type is of Queue
|
boolean |
hasResourceAdapterMid()
Returns true if a resource adapter has been set for
usage with this MDB
|
boolean |
hasTopicDest()
Returns true if the destination type is of javax.jms.topic
|
boolean |
isLinkedToMessageDestination() |
boolean |
ownedByMessageBean()
True if the owner is a message-driven bean.
|
boolean |
ownedByMessageDestinationRef()
True if the owner is a message destination reference.
|
void |
print(StringBuilder toStringBuilder)
Returns a formatted String of the attributes of this object.
|
void |
putActivationConfigProperty(EnvironmentProperty prop) |
void |
putRuntimeActivationConfigProperty(EnvironmentProperty prop) |
void |
removeActivationConfigProperty(EnvironmentProperty prop) |
void |
removeActivationConfigPropertyByName(String name) |
void |
removeRuntimeActivationConfigProperty(EnvironmentProperty prop) |
void |
removeRuntimeActivationConfigPropertyByName(String name) |
MessageDestinationDescriptor |
resolveLinkName()
Try to resolve the current link name value to a MessageDestination
object.
|
void |
setActivationConfigDescriptor(ActivationConfigDescriptor desc) |
void |
setConnectionFactoryName(String connectionFactory)
Connection factory is optional.
|
void |
setContainerTransactionFor(MethodDescriptor methodDescriptor,
ContainerTransaction containerTransaction)
Sets the container transaction for the given method descriptor.
|
void |
setDestinationType(String destType)
Sets the destination type.
|
void |
setDurableSubscriptionName(String durableSubscriptionName) |
void |
setHasDurableSubscription(boolean durable) |
void |
setHasQueueDest()
Sets the destination type to be Queue
|
void |
setHasTopicDest()
Sets the destination type to be Topic
|
void |
setJmsAcknowledgeMode(int acknowledgeMode)
Sets how JMS messages should be acknowledged.
|
void |
setJmsAcknowledgeMode(String acknowledgeMode)
Sets how JMS messages should be acknowledged.
|
void |
setJmsMessageSelector(String selector) |
void |
setMessageDestination(MessageDestinationDescriptor newMsgDest) |
void |
setMessageDestinationLinkName(String linkName)
Sets the name of the message destination to which I refer.
|
MessageDestinationDescriptor |
setMessageDestinationLinkName(String linkName,
boolean resolveLink)
Sets the name of the message destination to which I refer.
|
void |
setMessageListenerType(String messagingType) |
void |
setResourceAdapterMid(String resourceAdapterMid)
resource-adapter-mid is optional.
|
void |
setRuntimeActivationConfigDescriptor(ActivationConfigDescriptor desc) |
void |
setSubscriptionDurability(String subscription) |
void |
setTransactionType(String transactionType)
Sets the transaction type for this bean.
|
void |
setType(String type)
Sets my type
|
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
getResourceDescriptor
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
addExtraAttribute, getExtraAttribute, getExtraAttributes, removeExtraAttribute, toString
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
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
getJndiName, getName, setJndiName
addEjbReferenceDescriptor, addEntityManagerFactoryReferenceDescriptor, addEntityManagerReferenceDescriptor, addEnvironmentProperty, addMessageDestinationReferenceDescriptor, addPostConstructDescriptor, addPreDestroyDescriptor, addResourceDescriptor, addResourceEnvReferenceDescriptor, addResourceReferenceDescriptor, addServiceReferenceDescriptor, removeEjbReferenceDescriptor, removeEnvironmentProperty, removeMessageDestinationReferenceDescriptor, removeResourceDescriptor, removeResourceEnvReferenceDescriptor, removeResourceReferenceDescriptor, removeServiceReferenceDescriptor
getAllResourcesDescriptors, getAllResourcesDescriptors, getEjbReferenceDescriptors, getEntityManagerFactoryReferenceByName, getEntityManagerFactoryReferenceDescriptors, getEntityManagerReferenceByName, getEntityManagerReferenceDescriptors, getEnvironmentProperties, getEnvironmentPropertyByName, getInjectableResourcesByClass, getInjectionInfoByClass, getMessageDestinationReferenceByName, getMessageDestinationReferenceDescriptors, getPostConstructDescriptorByClass, getPostConstructDescriptors, getPreDestroyDescriptorByClass, getPreDestroyDescriptors, getResourceDescriptors, getResourceEnvReferenceByName, getResourceEnvReferenceDescriptors, getResourceReferenceDescriptors, getServiceReferenceByName, getServiceReferenceDescriptors
addEjbReferenceDescriptor, getEjbReference, getEjbReferenceDescriptors
addResourceEnvReferenceDescriptor, getResourceEnvReferenceByName, getResourceEnvReferenceDescriptors
addResourceReferenceDescriptor, getResourceReferenceByName, getResourceReferenceDescriptors
addServiceReferenceDescriptor, getServiceReferenceByName, getServiceReferenceDescriptors, removeServiceReferenceDescriptor
addMessageDestinationReferenceDescriptor, getMessageDestinationReferenceByName, getMessageDestinationReferenceDescriptors, removeMessageDestinationReferenceDescriptor
public EjbMessageBeanDescriptor()
public EjbMessageBeanDescriptor(EjbMessageBeanDescriptor other)
other
- Another EjbMessageBeanDescriptor to copy the values ofpublic String getEjbTypeForDisplay()
getEjbTypeForDisplay
in interface EjbDescriptor
getEjbTypeForDisplay
in class EjbDescriptor
public String getType()
getType
in interface EjbDescriptor
public void setContainerTransactionFor(MethodDescriptor methodDescriptor, ContainerTransaction containerTransaction)
EjbDescriptor
setContainerTransactionFor
in class EjbDescriptor
public void setType(String type)
setType
in class EjbDescriptor
type
- public void setMessageListenerType(String messagingType)
public String getMessageListenerType()
getMessageListenerType
in interface EjbMessageBeanDescriptor
public Set getTxBusinessMethodDescriptors()
EjbDescriptor
getTxBusinessMethodDescriptors
in class EjbDescriptor
public Set getSecurityBusinessMethodDescriptors()
For a Message-Driven Bean this will always throw an IllegalArgumentException
as it cannot have security business methods
getSecurityBusinessMethodDescriptors
in interface EjbDescriptor
getSecurityBusinessMethodDescriptors
in class EjbDescriptor
public Method[] getMessageListenerInterfaceMethods(ClassLoader classLoader) throws NoSuchMethodException
classLoader
- NoSuchMethodException
public Vector getPossibleTransactionAttributes()
EjbDescriptor
getPossibleTransactionAttributes
in class EjbDescriptor
public boolean hasMessageDestinationLinkName()
MessageDestinationReferencerImpl.getMessageDestinationLinkName()
public boolean isLinkedToMessageDestination()
isLinkedToMessageDestination
in interface MessageDestinationReferencer
public String getMessageDestinationLinkName()
MessageDestinationReferencer
getMessageDestinationLinkName
in interface MessageDestinationReferencer
public void setMessageDestinationLinkName(String linkName)
setMessageDestinationLinkName
in interface MessageDestinationReferencer
linkName
- public MessageDestinationDescriptor setMessageDestinationLinkName(String linkName, boolean resolveLink)
MessageDestinationReferencer
setMessageDestinationLinkName
in interface MessageDestinationReferencer
resolveLink
- if true, *try* to resolve link to the target message
destination.public MessageDestinationDescriptor resolveLinkName()
MessageDestinationReferencer
resolveLinkName
in interface MessageDestinationReferencer
public boolean ownedByMessageDestinationRef()
MessageDestinationReferencer
ownedByMessageDestinationRef
in interface MessageDestinationReferencer
public MessageDestinationReferenceDescriptor getMessageDestinationRefOwner()
MessageDestinationReferencer
getMessageDestinationRefOwner
in interface MessageDestinationReferencer
public boolean ownedByMessageBean()
ownedByMessageBean
in interface MessageDestinationReferencer
public EjbMessageBeanDescriptor getMessageBeanOwner()
getMessageBeanOwner
in interface MessageDestinationReferencer
public MessageDestinationDescriptor getMessageDestination()
getMessageDestination
in interface MessageDestinationReferencer
public void setMessageDestination(MessageDestinationDescriptor newMsgDest)
setMessageDestination
in interface MessageDestinationReferencer
newMsgDest
- the message destination to which I refer.public Set<EnvironmentProperty> getActivationConfigProperties()
EjbMessageBeanDescriptor
getActivationConfigProperties
in interface EjbMessageBeanDescriptor
ActivationConfigProperty
public String getActivationConfigValue(String name)
EjbMessageBeanDescriptor
ActivationConfigProperty
getActivationConfigValue
in interface EjbMessageBeanDescriptor
name
- the name of the propertypublic void putActivationConfigProperty(EnvironmentProperty prop)
public void removeActivationConfigProperty(EnvironmentProperty prop)
public void removeActivationConfigPropertyByName(String name)
public Set<EnvironmentProperty> getRuntimeActivationConfigProperties()
getRuntimeActivationConfigProperties
in interface EjbMessageBeanDescriptor
public void putRuntimeActivationConfigProperty(EnvironmentProperty prop)
putRuntimeActivationConfigProperty
in interface EjbMessageBeanDescriptor
public void removeRuntimeActivationConfigProperty(EnvironmentProperty prop)
public void removeRuntimeActivationConfigPropertyByName(String name)
public boolean hasQueueDest()
EjbMessageBeanDescriptor
hasQueueDest
in interface EjbMessageBeanDescriptor
hasTopicDest()
public boolean hasTopicDest()
public boolean hasDestinationType()
public String getDestinationType()
EjbMessageBeanDescriptor
getDestinationType
in interface EjbMessageBeanDescriptor
public void setDestinationType(String destType)
destType
- public boolean hasDurableSubscription()
public void setHasDurableSubscription(boolean durable)
public void setHasQueueDest()
public void setHasTopicDest()
public void setSubscriptionDurability(String subscription)
public boolean hasJmsMessageSelector()
public void setJmsMessageSelector(String selector)
public String getJmsMessageSelector()
public int getJmsAcknowledgeMode()
1 is for auto-acknowledge mode
3 is for dups-OK-acknowledge mode
public String getJmsAcknowledgeModeAsString()
public void setJmsAcknowledgeMode(int acknowledgeMode)
If the parameter is not 1 then it will be set to use dups-ok-acknowledge mode as there is no checking for this.
acknowledgeMode
- 1 for auto-acknowledgement, 3 for dups-ok-acknowledgepublic void setJmsAcknowledgeMode(String acknowledgeMode)
acknowledgeMode
- Must be either "Auto-acknowledge" or "Dups-ok-acknowledge"
otherwise a IllegalArgumentException
will be thrownpublic String getDurableSubscriptionName()
getDurableSubscriptionName
in interface EjbMessageBeanDescriptor
public void setDurableSubscriptionName(String durableSubscriptionName)
public String getConnectionFactoryName()
public void setConnectionFactoryName(String connectionFactory)
connectionFactory
- public boolean hasConnectionFactory()
public String getResourceAdapterMid()
EjbMessageBeanDescriptor
getResourceAdapterMid
in interface EjbMessageBeanDescriptor
null
if not setpublic String getMdbConnectionFactoryJndiName()
EjbMessageBeanDescriptor
getMdbConnectionFactoryJndiName
in interface EjbMessageBeanDescriptor
public void setResourceAdapterMid(String resourceAdapterMid)
setResourceAdapterMid
in interface EjbMessageBeanDescriptor
resourceAdapterMid
- public boolean hasResourceAdapterMid()
public Vector getMethods(ClassLoader classLoader)
For a Message-Driven Bean this will always return an empty vector
getMethods
in class EjbDescriptor
protected Collection getTransactionMethods(ClassLoader classLoader)
getTransactionMethods
in class EjbDescriptor
classLoader
- public String getContainerFactoryQualifier()
getContainerFactoryQualifier
in class EjbDescriptor
public void setTransactionType(String transactionType)
setTransactionType
in class EjbDescriptor
transactionType
- public void setActivationConfigDescriptor(ActivationConfigDescriptor desc)
public ActivationConfigDescriptor getActivationConfigDescriptor()
public void setRuntimeActivationConfigDescriptor(ActivationConfigDescriptor desc)
public ActivationConfigDescriptor getRuntimeActivationConfigDescriptor()
public void print(StringBuilder toStringBuilder)
print
in class EjbDescriptor
toStringBuilder
- Copyright © 2021. All rights reserved.