|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.ejb.AbstractServer
com.caucho.ejb.message.MessageServer
public class MessageServer
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.AbstractServer |
|---|
_component, _contextImplClass, _dataSource, _destroyInject, _ejbClass, _ejbContainer, _ejbName, _filename, _handleEncoder, _handleServerId, _homeHandle, _homeStubClass, _id, _initInject, _initProgram, _line, _loader, _local21, _localApiList, _localHome, _localHomeClass, _location, _mappedName, _metaData, _moduleName, _primaryKeyClass, _protocolEncoderMap, _remote21, _remoteApiList, _remoteHome, _remoteHomeClass, _remoteHomeView, _remoteObjectClass, _remoteStubClass, _serviceEndpointClass, _transactionTimeout, _ut |
| Constructor Summary | |
|---|---|
MessageServer(EjbContainer ejbContainer)
|
|
| Method Summary | |
|---|---|
protected void |
bindContext()
|
MessageEndpoint |
createEndpoint(XAResource xaResource)
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.lang.Object |
getLocalObject(java.lang.Class api)
Returns the a new local stub for the given API |
java.lang.Object |
getLocalProxy(java.lang.Class api)
Returns the local jndi proxy for the given API |
MessageDrivenContext |
getMessageContext()
Returns the message driven context |
java.lang.Object |
getRemoteObject(java.lang.Class 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 MessageServer(EjbContainer ejbContainer)
| Method Detail |
|---|
protected java.lang.String getType()
getType in class AbstractServerpublic void setActivationSpec(ActivationSpec activationSpec)
public void setResourceAdapter(ResourceAdapter ra)
public void init()
throws java.lang.Exception
init in class AbstractServerjava.lang.Exceptionprotected void bindContext()
bindContext in class AbstractServer
public boolean start()
throws java.lang.Exception
start in class AbstractServerjava.lang.Exceptionpublic MessageDrivenContext getMessageContext()
public AbstractContext getContext(java.lang.Object obj,
boolean foo)
AbstractServer
getContext in class AbstractServer
public MessageEndpoint createEndpoint(XAResource xaResource)
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 AbstractServer
public java.lang.Object getRemoteObject(java.lang.Class api,
java.lang.String protocol)
AbstractServer
getRemoteObject in class AbstractServerapi - the bean's api to return a value forprotocol - the remote protocolpublic java.lang.Object getLocalObject(java.lang.Class api)
AbstractServer
getLocalObject in class AbstractServerapi - the bean's api to return a value forpublic java.lang.Object getLocalProxy(java.lang.Class api)
AbstractServer
getLocalProxy in class AbstractServerapi - the bean's api to return a value for
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||