com.caucho.ejb.session
Class SessionServer

java.lang.Object
  extended by com.caucho.ejb.AbstractServer
      extended by com.caucho.ejb.session.SessionServer
All Implemented Interfaces:
EnvironmentBean
Direct Known Subclasses:
StatefulServer, StatelessServer

public abstract class SessionServer
extends AbstractServer

Server container for a session bean.


Field Summary
 
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
SessionServer(EjbContainer manager)
           
 
Method Summary
protected  void bindInjection()
           
protected abstract  ComponentImpl createSessionComponent(java.lang.Class api)
           
protected  ComponentImpl getComponent(java.lang.Class api)
           
 AbstractContext getContext()
           
 EJBLocalHome getEJBLocalHome()
          Returns the EJBLocalHome stub for the container
 java.lang.Class getPrimaryKeyClass()
          Returns the object key from a handle.
protected  java.lang.String getType()
           
 void init()
          Initialize the server
 
Methods inherited from class com.caucho.ejb.AbstractServer
addClientRemoteConfig, addHandleEncoder, bindContext, destroy, destroyInstance, encodeId, error, getBeanSkelClass, getClassLoader, getContext, getContext, getContext, getEjbClass, getEjbContainer, getEJBHome, getEJBMetaData, getEJBName, getEJBObject, getHandleEncoder, getHandleEncoder, getHandleServerId, getHomeHandle, getHomeStubClass, getId, getInitProgram, getLocalApiList, getLocalHomeClass, getLocalObject, getLocalProxy, getMappedName, getModuleName, getPostConstruct, getPreDestroy, getProtocolId, getProtocolId, getRemote21, getRemoteApiList, getRemoteHomeClass, getRemoteObject, getRemoteObject, getRemoteObjectClass, getRemoteStubClass, getServerProgram, getServiceEndpoint, getSessionContext, getTimerService, getTransactionTimeout, getUserTransaction, hasRemoteObject, initInstance, initInstance, introspectDestroy, invalidateCache, isContainerTransaction, isDead, isLocal, isRemote, lookup, remove, remove, setAroundInvoke, setConfigLocation, setContainerTransaction, setContextImplClass, setEjbClass, setEJBName, setHandleEncoder, setId, setInitProgram, setLocalApiList, setLocalHomeClass, setLocation, setMappedName, setModuleName, setPostConstruct, setPreDestroy, setRemoteApiList, setRemoteHomeClass, setRemoteObjectClass, setServerProgram, setServiceEndpoint, setTransactionTimeout, start, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SessionServer

public SessionServer(EjbContainer manager)
Method Detail

getType

protected java.lang.String getType()
Overrides:
getType in class AbstractServer

init

public void init()
          throws java.lang.Exception
Initialize the server

Overrides:
init in class AbstractServer
Throws:
java.lang.Exception

bindInjection

protected void bindInjection()
Overrides:
bindInjection in class AbstractServer

createSessionComponent

protected abstract ComponentImpl createSessionComponent(java.lang.Class api)

getComponent

protected ComponentImpl getComponent(java.lang.Class api)

getPrimaryKeyClass

public java.lang.Class getPrimaryKeyClass()
Returns the object key from a handle.

Overrides:
getPrimaryKeyClass in class AbstractServer

getEJBLocalHome

public EJBLocalHome getEJBLocalHome()
Returns the EJBLocalHome stub for the container

Overrides:
getEJBLocalHome in class AbstractServer

getContext

public AbstractContext getContext()
Overrides:
getContext in class AbstractServer