public final class EjbMessageBeanDescriptor extends EjbDescriptor implements MessageDestinationReferencer, EjbMessageBeanDescriptor
DISTRIBUTED_TRANSACTION_SCOPE, isDistributedTxScope, LOCAL_TRANSACTION_SCOPE, runAsIdentity, securityIdentityDescription, transactionType, usesCallerIdentity, usesDefaultTransactionDESCRIPTION_CHANGED, DESCRIPTOR_CHANGED, docType, LARGE_ICON_CHANGED, NAME_CHANGED, SMALL_ICON_CHANGEDTYPEBEAN_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, visitgetResourceDescriptoraddDescriptorExtension, 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, setSmallIconUriaddExtraAttribute, getExtraAttribute, getExtraAttributes, removeExtraAttribute, toStringaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddEjbReferencer, 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, setWebServiceEndpointInterfaceNamegetJndiName, getName, setJndiNameaddEjbReferenceDescriptor, addEntityManagerFactoryReferenceDescriptor, addEntityManagerReferenceDescriptor, addEnvironmentProperty, addMessageDestinationReferenceDescriptor, addPostConstructDescriptor, addPreDestroyDescriptor, addResourceDescriptor, addResourceEnvReferenceDescriptor, addResourceReferenceDescriptor, addServiceReferenceDescriptor, removeEjbReferenceDescriptor, removeEnvironmentProperty, removeMessageDestinationReferenceDescriptor, removeResourceDescriptor, removeResourceEnvReferenceDescriptor, removeResourceReferenceDescriptor, removeServiceReferenceDescriptorgetAllResourcesDescriptors, getAllResourcesDescriptors, getEjbReferenceDescriptors, getEntityManagerFactoryReferenceByName, getEntityManagerFactoryReferenceDescriptors, getEntityManagerReferenceByName, getEntityManagerReferenceDescriptors, getEnvironmentProperties, getEnvironmentPropertyByName, getInjectableResourcesByClass, getInjectionInfoByClass, getMessageDestinationReferenceByName, getMessageDestinationReferenceDescriptors, getPostConstructDescriptorByClass, getPostConstructDescriptors, getPreDestroyDescriptorByClass, getPreDestroyDescriptors, getResourceDescriptors, getResourceEnvReferenceByName, getResourceEnvReferenceDescriptors, getResourceReferenceDescriptors, getServiceReferenceByName, getServiceReferenceDescriptorsaddEjbReferenceDescriptor, getEjbReference, getEjbReferenceDescriptorsaddResourceEnvReferenceDescriptor, getResourceEnvReferenceByName, getResourceEnvReferenceDescriptorsaddResourceReferenceDescriptor, getResourceReferenceByName, getResourceReferenceDescriptorsaddServiceReferenceDescriptor, getServiceReferenceByName, getServiceReferenceDescriptors, removeServiceReferenceDescriptoraddMessageDestinationReferenceDescriptor, getMessageDestinationReferenceByName, getMessageDestinationReferenceDescriptors, removeMessageDestinationReferenceDescriptorpublic EjbMessageBeanDescriptor()
public EjbMessageBeanDescriptor(EjbMessageBeanDescriptor other)
other - Another EjbMessageBeanDescriptor to copy the values ofpublic String getEjbTypeForDisplay()
getEjbTypeForDisplay in interface EjbDescriptorgetEjbTypeForDisplay in class EjbDescriptorpublic String getType()
getType in interface EjbDescriptorpublic void setContainerTransactionFor(MethodDescriptor methodDescriptor, ContainerTransaction containerTransaction)
EjbDescriptorsetContainerTransactionFor in class EjbDescriptorpublic void setType(String type)
setType in class EjbDescriptortype - public void setMessageListenerType(String messagingType)
public String getMessageListenerType()
getMessageListenerType in interface EjbMessageBeanDescriptorpublic Set getTxBusinessMethodDescriptors()
EjbDescriptorgetTxBusinessMethodDescriptors in class EjbDescriptorpublic Set getSecurityBusinessMethodDescriptors()
For a Message-Driven Bean this will always throw an IllegalArgumentException
as it cannot have security business methods
getSecurityBusinessMethodDescriptors in interface EjbDescriptorgetSecurityBusinessMethodDescriptors in class EjbDescriptorpublic Method[] getMessageListenerInterfaceMethods(ClassLoader classLoader) throws NoSuchMethodException
classLoader - NoSuchMethodExceptionpublic Vector getPossibleTransactionAttributes()
EjbDescriptorgetPossibleTransactionAttributes in class EjbDescriptorpublic boolean hasMessageDestinationLinkName()
MessageDestinationReferencerImpl.getMessageDestinationLinkName()public boolean isLinkedToMessageDestination()
isLinkedToMessageDestination in interface MessageDestinationReferencerpublic String getMessageDestinationLinkName()
MessageDestinationReferencergetMessageDestinationLinkName in interface MessageDestinationReferencerpublic void setMessageDestinationLinkName(String linkName)
setMessageDestinationLinkName in interface MessageDestinationReferencerlinkName - public MessageDestinationDescriptor setMessageDestinationLinkName(String linkName, boolean resolveLink)
MessageDestinationReferencersetMessageDestinationLinkName in interface MessageDestinationReferencerresolveLink - if true, *try* to resolve link to the target message
destination.public MessageDestinationDescriptor resolveLinkName()
MessageDestinationReferencerresolveLinkName in interface MessageDestinationReferencerpublic boolean ownedByMessageDestinationRef()
MessageDestinationReferencerownedByMessageDestinationRef in interface MessageDestinationReferencerpublic MessageDestinationReferenceDescriptor getMessageDestinationRefOwner()
MessageDestinationReferencergetMessageDestinationRefOwner in interface MessageDestinationReferencerpublic boolean ownedByMessageBean()
ownedByMessageBean in interface MessageDestinationReferencerpublic EjbMessageBeanDescriptor getMessageBeanOwner()
getMessageBeanOwner in interface MessageDestinationReferencerpublic MessageDestinationDescriptor getMessageDestination()
getMessageDestination in interface MessageDestinationReferencerpublic void setMessageDestination(MessageDestinationDescriptor newMsgDest)
setMessageDestination in interface MessageDestinationReferencernewMsgDest - the message destination to which I refer.public Set<EnvironmentProperty> getActivationConfigProperties()
EjbMessageBeanDescriptorgetActivationConfigProperties in interface EjbMessageBeanDescriptorActivationConfigPropertypublic String getActivationConfigValue(String name)
EjbMessageBeanDescriptorActivationConfigPropertygetActivationConfigValue in interface EjbMessageBeanDescriptorname - 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 EjbMessageBeanDescriptorpublic void putRuntimeActivationConfigProperty(EnvironmentProperty prop)
putRuntimeActivationConfigProperty in interface EjbMessageBeanDescriptorpublic void removeRuntimeActivationConfigProperty(EnvironmentProperty prop)
public void removeRuntimeActivationConfigPropertyByName(String name)
public boolean hasQueueDest()
EjbMessageBeanDescriptorhasQueueDest in interface EjbMessageBeanDescriptorhasTopicDest()public boolean hasTopicDest()
public boolean hasDestinationType()
public String getDestinationType()
EjbMessageBeanDescriptorgetDestinationType in interface EjbMessageBeanDescriptorpublic 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 EjbMessageBeanDescriptorpublic void setDurableSubscriptionName(String durableSubscriptionName)
public String getConnectionFactoryName()
public void setConnectionFactoryName(String connectionFactory)
connectionFactory - public boolean hasConnectionFactory()
public String getResourceAdapterMid()
EjbMessageBeanDescriptorgetResourceAdapterMid in interface EjbMessageBeanDescriptornull if not setpublic String getMdbConnectionFactoryJndiName()
EjbMessageBeanDescriptorgetMdbConnectionFactoryJndiName in interface EjbMessageBeanDescriptorpublic void setResourceAdapterMid(String resourceAdapterMid)
setResourceAdapterMid in interface EjbMessageBeanDescriptorresourceAdapterMid - public boolean hasResourceAdapterMid()
public Vector getMethods(ClassLoader classLoader)
For a Message-Driven Bean this will always return an empty vector
getMethods in class EjbDescriptorprotected Collection getTransactionMethods(ClassLoader classLoader)
getTransactionMethods in class EjbDescriptorclassLoader - public String getContainerFactoryQualifier()
getContainerFactoryQualifier in class EjbDescriptorpublic void setTransactionType(String transactionType)
setTransactionType in class EjbDescriptortransactionType - public void setActivationConfigDescriptor(ActivationConfigDescriptor desc)
public ActivationConfigDescriptor getActivationConfigDescriptor()
public void setRuntimeActivationConfigDescriptor(ActivationConfigDescriptor desc)
public ActivationConfigDescriptor getRuntimeActivationConfigDescriptor()
public void print(StringBuilder toStringBuilder)
print in class EjbDescriptortoStringBuilder - Copyright © 2019. All rights reserved.