com.caucho.ejb.cfg
Class EjbMessageBean<X>

java.lang.Object
  extended by com.caucho.config.types.DescriptionGroupConfig
      extended by com.caucho.ejb.cfg.EjbBean<X>
          extended by com.caucho.ejb.cfg.EjbMessageBean<X>
All Implemented Interfaces:
DependencyBean, EnvironmentBean

@Module
public class EjbMessageBean<X>
extends EjbBean<X>

Configuration for an ejb entity bean.


Nested Class Summary
 class EjbMessageBean.ActivationConfig
           
static class EjbMessageBean.ActivationConfigPropertyConfig
           
 class EjbMessageBean.MessageDrivenDestination
           
 
Nested classes/interfaces inherited from class com.caucho.config.types.DescriptionGroupConfig
DescriptionGroupConfig.Icon
 
Field Summary
 
Fields inherited from class com.caucho.ejb.cfg.EjbBean
_beanMethodList, _isContainerTransaction, _jClassLoader, _localList, _methodList, _remoteList
 
Constructor Summary
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.
 
Method Summary
 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.
 
Methods inherited from class com.caucho.ejb.cfg.EjbBean
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
 
Methods inherited from class com.caucho.config.types.DescriptionGroupConfig
createIcon, getDisplayName, setDescription, setDisplayName, setId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EjbMessageBean

public EjbMessageBean(EjbConfig config,
                      java.lang.String ejbModuleName)
Creates a new message bean configuration.


EjbMessageBean

public EjbMessageBean(EjbConfig ejbConfig,
                      AnnotatedType<X> rawAnnType,
                      AnnotatedType<X> annType,
                      MessageDriven messageDriven)
Creates a new session bean configuration.


EjbMessageBean

public EjbMessageBean(EjbConfig ejbConfig,
                      AnnotatedType<X> rawAnnType,
                      AnnotatedType<X> annType,
                      java.lang.String ejbName)
Creates a new session bean configuration.

Method Detail

getEJBKind

public java.lang.String getEJBKind()
Returns the kind of bean.

Overrides:
getEJBKind in class EjbBean<X>

setEJBClass

public void setEJBClass(java.lang.Class<X> ejbClass)
                 throws ConfigException
Sets the ejb implementation class.

Overrides:
setEJBClass in class EjbBean<X>
Throws:
ConfigException

createMessageDrivenDestination

public EjbMessageBean.MessageDrivenDestination createMessageDrivenDestination()
Creates the old EJB 2.0 message-driven-destination


setActivationSpec

public void setActivationSpec(ActivationSpec activationSpec)
Sets the JCA activation spec.


setDestination

public void setDestination(java.lang.String destinationName)
                    throws ConfigException
Sets the JMS destination.

Throws:
ConfigException

setDestinationValue

public void setDestinationValue(Destination destination)
Sets the JMS destination.


setMessagingType

public void setMessagingType(java.lang.Class<?> messagingType)

getDestination

public Destination getDestination()
Returns the destination.


setMappedName

public void setMappedName(java.lang.String mappedName)
                   throws ConfigException
Deprecated. for compat with TCK

Description copied from class: EjbBean
The mapped-name is the remote published name used by IIOP, Hessian, and jndi-remote-prefix, jndi-local-prefix. The default is the EJBName.

Overrides:
setMappedName in class EjbBean<X>
Throws:
ConfigException

setMessageDestinationType

public void setMessageDestinationType(java.lang.String type)
                               throws ConfigException,
                                      javax.naming.NamingException
Sets the JMS destination type.

Throws:
ConfigException
javax.naming.NamingException

setMessageDestinationLink

public void setMessageDestinationLink(java.lang.String messageDestinationLink)
                               throws ConfigException,
                                      javax.naming.NamingException
Sets the JMS destination link

Throws:
ConfigException
javax.naming.NamingException

setConnectionFactory

public void setConnectionFactory(JndiBuilder factory)
                          throws ConfigException,
                                 javax.naming.NamingException
Sets the connection factory.

Throws:
ConfigException
javax.naming.NamingException

setConnectionFactoryValue

public void setConnectionFactoryValue(ConnectionFactory factory)
Sets the connection factory.


getConnectionFactory

public ConnectionFactory getConnectionFactory()
Returns the destination.


getAcknowledgeMode

public int getAcknowledgeMode()
Returns the acknowledge mode.


setAcknowledgeMode

public void setAcknowledgeMode(int acknowledgeMode)
Set the acknowledge mode.


getSelector

public java.lang.String getSelector()
Returns the message selector


setSelector

public void setSelector(java.lang.String selector)
Set the message selector.


getSubscriptionName

public java.lang.String getSubscriptionName()
Returns the durable subscription name


setSubscriptionName

public void setSubscriptionName(java.lang.String subscriptionName)
Set the message selector.


setTransactionType

public void setTransactionType(java.lang.String type)
                        throws ConfigException
Set true if the container handles transactions.

Throws:
ConfigException

setSecurityIdentity

public void setSecurityIdentity(SecurityIdentity identity)

createActivationConfig

public EjbMessageBean.ActivationConfig createActivationConfig()
Adds the activation config.


setResourceAdapter

public void setResourceAdapter(java.lang.String name)

setMessageConsumerMax

public void setMessageConsumerMax(int consumerMax)
                           throws ConfigException
Sets the number of message consumers.

Throws:
ConfigException

init

@PostConstruct
public void init()
          throws ConfigException
Initialize

Overrides:
init in class EjbBean<X>
Throws:
ConfigException

introspect

protected void introspect()
Overrides:
introspect in class EjbBean<X>

initIntrospect

public void initIntrospect()
                    throws ConfigException
Obtain and apply initialization from annotations.

Overrides:
initIntrospect in class EjbBean<X>
Throws:
ConfigException

createBeanGenerator

protected BeanGenerator<X> createBeanGenerator()
Creates the bean generator for the session bean.

Overrides:
createBeanGenerator in class EjbBean<X>

deployServer

public AbstractEjbBeanManager<X> deployServer(EjbManager ejbManager,
                                              EjbLazyGenerator<X> lazyGenerator)
                                       throws java.lang.ClassNotFoundException
Deploys the bean.

Overrides:
deployServer in class EjbBean<X>
Throws:
java.lang.ClassNotFoundException

deployActivationSpecServer

public AbstractEjbBeanManager<X> deployActivationSpecServer(EjbManager ejbManager,
                                                            EjbLazyGenerator<X> lazyGenerator)
                                                     throws java.lang.ClassNotFoundException
Deploys the bean.

Throws:
java.lang.ClassNotFoundException

deployMessageServer

public AbstractEjbBeanManager<X> deployMessageServer(EjbManager ejbManager,
                                                     java.lang.String moduleName,
                                                     EjbLazyGenerator<X> lazyGenerator,
                                                     ResourceAdapter ra,
                                                     ActivationSpec spec)
                                              throws java.lang.ClassNotFoundException
Deploys the bean.

Throws:
java.lang.ClassNotFoundException