|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.ejb.server.AbstractEjbBeanManager<X>
com.caucho.ejb.message.MessageManager<X>
@Module public class MessageManager<X>
JCA activation-spec server container for a message bean.
| Field Summary | |
|---|---|
protected static java.util.logging.Logger |
log
|
| Fields inherited from class com.caucho.ejb.server.AbstractEjbBeanManager |
|---|
_ejbClass, _ejbManager, _filename, _line, _location, _mappedName, _ut |
| Constructor Summary | |
|---|---|
MessageManager(EjbManager ejbContainer,
java.lang.String ejbName,
java.lang.String moduleName,
AnnotatedType<X> rawAnnType,
AnnotatedType<X> annotatedType,
EjbLazyGenerator<X> lazyGenerator)
|
|
| Method Summary | ||
|---|---|---|
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()
|
|
|
getLocalJndiProxy(java.lang.Class<T> api)
Returns the local jndi proxy for the given API |
|
|
getLocalProxy(java.lang.Class<T> api)
Returns the a new local stub for the given API |
|
MessageDrivenContext |
getMessageContext()
Returns the message driven context |
|
|
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. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final java.util.logging.Logger log
| Constructor Detail |
|---|
public MessageManager(EjbManager ejbContainer,
java.lang.String ejbName,
java.lang.String moduleName,
AnnotatedType<X> rawAnnType,
AnnotatedType<X> annotatedType,
EjbLazyGenerator<X> lazyGenerator)
| Method Detail |
|---|
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)
AbstractEjbBeanManager
getContext in class AbstractEjbBeanManager<X>
public MessageEndpoint createEndpoint(XAResource xaResource)
throws UnavailableException
createEndpoint in interface MessageEndpointFactoryUnavailableException
public MessageEndpoint createEndpoint(XAResource xaResource,
long timeout)
throws UnavailableException
createEndpoint in interface MessageEndpointFactoryUnavailableException
public 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)
AbstractEjbBeanManager
getLocalJndiProxy in class AbstractEjbBeanManager<X>api - the bean's api to return a value forpublic <T> T getLocalProxy(java.lang.Class<T> api)
AbstractEjbBeanManager
getLocalProxy in class AbstractEjbBeanManager<X>api - the bean's api to return a value for
public <T> T getRemoteObject(java.lang.Class<T> api,
java.lang.String protocol)
AbstractEjbBeanManager
getRemoteObject in class AbstractEjbBeanManager<X>api - the bean's api to return a value forprotocol - the remote protocol
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||