@Module public class EjbMessageBean<X> extends EjbBean<X>
Modifier and Type | Class and Description |
---|---|
class |
EjbMessageBean.ActivationConfig |
static class |
EjbMessageBean.ActivationConfigPropertyConfig |
class |
EjbMessageBean.MessageDrivenDestination |
DescriptionGroupConfig.Icon
_isContainerTransaction, _jClassLoader, _localList, _remoteList
Constructor and Description |
---|
EjbMessageBean(EjbConfig ejbConfig,
AnnotatedType<X> rawAnnType,
AnnotatedType<X> annType,
MessageDriven messageDriven)
Creates a new session bean configuration.
|
EjbMessageBean(EjbConfig ejbConfig,
AnnotatedType<X> rawAnnType,
AnnotatedType<X> annType,
java.lang.String ejbName)
Creates a new session bean configuration.
|
EjbMessageBean(EjbConfig config,
java.lang.String ejbModuleName)
Creates a new message bean configuration.
|
Modifier and Type | Method and Description |
---|---|
EjbMessageBean.ActivationConfig |
createActivationConfig()
Adds the activation config.
|
protected BeanGenerator<X> |
createBeanGenerator()
Creates the bean generator for the session bean.
|
EjbMessageBean.MessageDrivenDestination |
createMessageDrivenDestination()
Creates the old EJB 2.0 message-driven-destination
|
AbstractEjbBeanManager<X> |
deployActivationSpecServer(EjbManager ejbManager,
EjbLazyGenerator<X> lazyGenerator)
Deploys the bean.
|
AbstractEjbBeanManager<X> |
deployMessageServer(EjbManager ejbManager,
java.lang.String moduleName,
EjbLazyGenerator<X> lazyGenerator,
ResourceAdapter ra,
ActivationSpec spec)
Deploys the bean.
|
AbstractEjbBeanManager<X> |
deployServer(EjbManager ejbManager,
EjbLazyGenerator<X> lazyGenerator)
Deploys the bean.
|
int |
getAcknowledgeMode()
Returns the acknowledge mode.
|
ConnectionFactory |
getConnectionFactory()
Returns the destination.
|
Destination |
getDestination()
Returns the destination.
|
java.lang.String |
getEJBKind()
Returns the kind of bean.
|
java.lang.String |
getSelector()
Returns the message selector
|
java.lang.String |
getSubscriptionName()
Returns the durable subscription name
|
void |
init()
Initialize
|
void |
initIntrospect()
Obtain and apply initialization from annotations.
|
protected void |
introspect() |
void |
setAcknowledgeMode(int acknowledgeMode)
Set the acknowledge mode.
|
void |
setActivationSpec(ActivationSpec activationSpec)
Sets the JCA activation spec.
|
void |
setConnectionFactory(JndiBuilder factory)
Sets the connection factory.
|
void |
setConnectionFactoryValue(ConnectionFactory factory)
Sets the connection factory.
|
void |
setDestination(java.lang.String destinationName)
Sets the JMS destination.
|
void |
setDestinationValue(Destination destination)
Sets the JMS destination.
|
void |
setEJBClass(java.lang.Class<X> ejbClass)
Sets the ejb implementation class.
|
void |
setMappedName(java.lang.String mappedName)
Deprecated.
for compat with TCK
|
void |
setMessageConsumerMax(int consumerMax)
Sets the number of message consumers.
|
void |
setMessageDestinationLink(java.lang.String messageDestinationLink)
Sets the JMS destination link
|
void |
setMessageDestinationType(java.lang.String type)
Sets the JMS destination type.
|
void |
setMessagingType(java.lang.Class<?> messagingType) |
void |
setResourceAdapter(java.lang.String name) |
void |
setSecurityIdentity(SecurityIdentity identity) |
void |
setSelector(java.lang.String selector)
Set the message selector.
|
void |
setSubscriptionName(java.lang.String subscriptionName)
Set the message selector.
|
void |
setTransactionType(java.lang.String type)
Set true if the container handles transactions.
|
addAfterBeginMethod, addAsyncMethod, addBeanDependency, addBeforeCompletionMethod, addBuilderProgram, addBusinessLocal, addBusinessRemote, addConcurrentMethod, addDepend, addDependency, addDependency, addDependencyList, addInitProgram, addInterceptor, addLocal, addLocalType, addLocalWrapper, addMethod, addPostConstruct, addRemote, addRemoteType, addRemoteWrapper, addRemoveMethod, classHasMethod, createDataSource, createEjbLocalRef, createEjbRef, createEnvEntry, createMessageDestinationRef, createMethod, createResourceEnvRef, createResourceRef, error, error, findFirstCreateMethod, findMethod, getAnnotatedType, getBeanDependList, getBeanType, getCdiManager, getClassLoader, getClassName, getConfig, getDependList, getEJBClass, getEJBClassName, getEjbContainer, getEJBFullClassName, getEJBModuleName, getEJBName, getFilename, getFullImplName, getFullMethodName, getFullMethodName, getInitProgram, getInjectionTarget, getJar, getLine, getLocalBean, getLocalList, getLocation, getMappedName, getMethod, getMethod, getMethod, getMethodList, getMethodPattern, getModuleName, getRawAnnotatedType, getRemoteList, getResourceList, getServerProgram, getShortClassName, getSkeletonName, getTimeoutMethodName, getTransactionTimeout, introspectBean, isAllowPOJO, isCMP, isCMP1, isContainerTransaction, isMatch, loadClass, setAllowPOJO, setAroundInvoke, setConcurrencyManagementType, setConfigLocation, setContainerTransaction, setEJBClassWrapper, setEJBName, setInit, setInjectionTarget, setJar, setLocalBean, setLocation, setSecurityIdentity, setStatefulTimeout, setTransactionTimeout, toString, validateException, validateExceptions, validateExceptions, validateLocal, validateRemote
createIcon, getDisplayName, setDescription, setDisplayName, setId
public EjbMessageBean(EjbConfig config, java.lang.String ejbModuleName)
public EjbMessageBean(EjbConfig ejbConfig, AnnotatedType<X> rawAnnType, AnnotatedType<X> annType, MessageDriven messageDriven)
public EjbMessageBean(EjbConfig ejbConfig, AnnotatedType<X> rawAnnType, AnnotatedType<X> annType, java.lang.String ejbName)
public java.lang.String getEJBKind()
getEJBKind
in class EjbBean<X>
public void setEJBClass(java.lang.Class<X> ejbClass) throws ConfigException
setEJBClass
in class EjbBean<X>
ConfigException
public EjbMessageBean.MessageDrivenDestination createMessageDrivenDestination()
public void setActivationSpec(ActivationSpec activationSpec)
public void setDestination(java.lang.String destinationName) throws ConfigException
ConfigException
public void setDestinationValue(Destination destination)
public void setMessagingType(java.lang.Class<?> messagingType)
public Destination getDestination()
public void setMappedName(java.lang.String mappedName) throws ConfigException
EjbBean
setMappedName
in class EjbBean<X>
ConfigException
public void setMessageDestinationType(java.lang.String type) throws ConfigException, javax.naming.NamingException
ConfigException
javax.naming.NamingException
public void setMessageDestinationLink(java.lang.String messageDestinationLink) throws ConfigException, javax.naming.NamingException
ConfigException
javax.naming.NamingException
public void setConnectionFactory(JndiBuilder factory) throws ConfigException, javax.naming.NamingException
ConfigException
javax.naming.NamingException
public void setConnectionFactoryValue(ConnectionFactory factory)
public ConnectionFactory getConnectionFactory()
public int getAcknowledgeMode()
public void setAcknowledgeMode(int acknowledgeMode)
public java.lang.String getSelector()
public void setSelector(java.lang.String selector)
public java.lang.String getSubscriptionName()
public void setSubscriptionName(java.lang.String subscriptionName)
public void setTransactionType(java.lang.String type) throws ConfigException
ConfigException
public void setSecurityIdentity(SecurityIdentity identity)
public EjbMessageBean.ActivationConfig createActivationConfig()
public void setResourceAdapter(java.lang.String name)
public void setMessageConsumerMax(int consumerMax) throws ConfigException
ConfigException
@PostConstruct public void init() throws ConfigException
init
in class EjbBean<X>
ConfigException
protected void introspect()
introspect
in class EjbBean<X>
public void initIntrospect() throws ConfigException
initIntrospect
in class EjbBean<X>
ConfigException
protected BeanGenerator<X> createBeanGenerator()
createBeanGenerator
in class EjbBean<X>
public AbstractEjbBeanManager<X> deployServer(EjbManager ejbManager, EjbLazyGenerator<X> lazyGenerator) throws java.lang.ClassNotFoundException
deployServer
in class EjbBean<X>
java.lang.ClassNotFoundException
public AbstractEjbBeanManager<X> deployActivationSpecServer(EjbManager ejbManager, EjbLazyGenerator<X> lazyGenerator) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
public AbstractEjbBeanManager<X> deployMessageServer(EjbManager ejbManager, java.lang.String moduleName, EjbLazyGenerator<X> lazyGenerator, ResourceAdapter ra, ActivationSpec spec) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException