@Module public class MessageManager<X> extends AbstractEjbBeanManager<X> implements MessageEndpointFactory
| Modifier and Type | Field and Description |
|---|---|
protected static java.util.logging.Logger |
log |
_ejbClass, _ejbManager, _filename, _line, _location, _mappedName, _ut| Constructor and Description |
|---|
MessageManager(EjbManager ejbContainer,
java.lang.String ejbName,
java.lang.String moduleName,
AnnotatedType<X> rawAnnType,
AnnotatedType<X> annotatedType,
EjbLazyGenerator<X> lazyGenerator) |
| Modifier and Type | Method and Description |
|---|---|
void |
bind() |
protected void |
bindContext() |
protected BeanGenerator<X> |
createBeanGenerator()
Creates the bean generator for the session bean.
|
MessageEndpoint |
createEndpoint(XAResource xaResource)
Creates an endpoint with the associated XA resource.
|
MessageEndpoint |
createEndpoint(XAResource xaResource,
long timeout)
Creates an endpoint with the associated XA resource.
|
void |
destroy()
Cleans up the entity server nicely.
|
AbstractContext |
getContext(java.lang.Object obj,
boolean foo)
Returns the context with the given key
|
java.util.ArrayList<AnnotatedType<? super X>> |
getLocalApi() |
<T> java.lang.Object |
getLocalJndiProxy(java.lang.Class<T> api)
Returns the local jndi proxy for the given API
|
<T> T |
getLocalProxy(java.lang.Class<T> api)
Returns the a new local stub for the given API
|
MessageDrivenContext |
getMessageContext()
Returns the message driven context
|
<T> T |
getRemoteObject(java.lang.Class<T> api,
java.lang.String protocol)
Returns the remote skeleton for the given API
|
protected java.lang.String |
getType() |
void |
init()
Initialize the server
|
boolean |
isDeliveryTransacted(java.lang.reflect.Method method)
Returns true to find out whether message deliveries to the
message endpoint will be transacted.
|
void |
setActivationSpec(ActivationSpec activationSpec)
Sets the activation spec
|
void |
setResourceAdapter(ResourceAdapter ra)
Sets the resource adapter
|
boolean |
start()
Starts the server.
|
bindInjection, createInjectionTarget, destroy, destroyInstance, encodeId, error, getAnnotatedType, getClassLoader, getContext, getContext, getDeployBean, getEjbClass, getEjbContainer, getEJBName, getId, getInjectManager, getLocalBean, getMappedName, getModuleInjectManager, getModuleName, getProtocolId, getProtocolId, getRawAnnotatedType, getRemoteApi, getRemoteApiList, getServerProgram, getTimerService, getTransactionTimeout, getUserTransaction, hasRemoteObject, invalidateCache, isContainerTransaction, isDead, isDependValid, lookup, newInstance, postStart, registerInjection, setAroundInvoke, setBusinessLocal, setConfigLocation, setContainerTransaction, setEjbClass, setId, setLocation, setMappedName, setRemoteApiList, setResourceList, setServerProgram, setTransactionTimeout, timeout, toStringpublic MessageManager(EjbManager ejbContainer, java.lang.String ejbName, java.lang.String moduleName, AnnotatedType<X> rawAnnType, AnnotatedType<X> annotatedType, EjbLazyGenerator<X> lazyGenerator)
protected java.lang.String getType()
getType in class AbstractEjbBeanManager<X>public void setActivationSpec(ActivationSpec activationSpec)
public void setResourceAdapter(ResourceAdapter ra)
public java.util.ArrayList<AnnotatedType<? super X>> getLocalApi()
getLocalApi in class AbstractEjbBeanManager<X>public void init()
throws java.lang.Exception
init in class AbstractEjbBeanManager<X>java.lang.Exceptionpublic void bind()
bind in class AbstractEjbBeanManager<X>protected BeanGenerator<X> createBeanGenerator()
protected void bindContext()
bindContext in class AbstractEjbBeanManager<X>public boolean start()
throws java.lang.Exception
start in class AbstractEjbBeanManager<X>java.lang.Exceptionpublic MessageDrivenContext getMessageContext()
public AbstractContext getContext(java.lang.Object obj, boolean foo)
AbstractEjbBeanManagergetContext in class AbstractEjbBeanManager<X>public MessageEndpoint createEndpoint(XAResource xaResource) throws UnavailableException
createEndpoint in interface MessageEndpointFactoryUnavailableExceptionpublic MessageEndpoint createEndpoint(XAResource xaResource, long timeout) throws UnavailableException
createEndpoint in interface MessageEndpointFactoryUnavailableExceptionpublic boolean isDeliveryTransacted(java.lang.reflect.Method method)
throws java.lang.NoSuchMethodException
isDeliveryTransacted in interface MessageEndpointFactoryjava.lang.NoSuchMethodExceptionpublic void destroy()
destroy in class AbstractEjbBeanManager<X>public <T> java.lang.Object getLocalJndiProxy(java.lang.Class<T> api)
AbstractEjbBeanManagergetLocalJndiProxy in class AbstractEjbBeanManager<X>api - the bean's api to return a value forpublic <T> T getLocalProxy(java.lang.Class<T> api)
AbstractEjbBeanManagergetLocalProxy in class AbstractEjbBeanManager<X>api - the bean's api to return a value forpublic <T> T getRemoteObject(java.lang.Class<T> api,
java.lang.String protocol)
AbstractEjbBeanManagergetRemoteObject in class AbstractEjbBeanManager<X>api - the bean's api to return a value forprotocol - the remote protocol