org.jboss.ejb
Class StatefulSessionContainer

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport (src) 
      extended byorg.jboss.system.ServiceMBeanSupport (src) 
          extended byorg.jboss.ejb.Container (src) 
              extended byorg.jboss.ejb.SessionContainer (src) 
                  extended byorg.jboss.ejb.StatefulSessionContainer
All Implemented Interfaces:
AllowedOperationsFlags (src) , EJBProxyFactoryContainer (src) , InstancePoolContainer (src) , MBeanRegistration (src) , NotificationBroadcaster (src) , NotificationEmitter (src) , Service (src) , ServiceMBean (src)

public class StatefulSessionContainer
extends SessionContainer (src)
implements EJBProxyFactoryContainer (src) , InstancePoolContainer (src)

The container for stateful session beans.


Nested Class Summary
 
Nested classes inherited from class org.jboss.ejb.Container (src)
Container.AbstractContainerInterceptor (src)
 
Field Summary
protected  java.lang.reflect.Method getEJBObject
           
protected  InstanceCache (src) instanceCache
          The instance cache.
protected  StatefulSessionPersistenceManager (src) persistenceManager
          This is the persistence manager for this container
 
Fields inherited from class org.jboss.ejb.SessionContainer (src)
beanMapping, homeMapping, instancePool, interceptor, serviceEndpoint
 
Fields inherited from class org.jboss.ejb.Container (src)
BASE_EJB_CONTAINER_NAME, beanClass, classLoader, createCount, EJB_CONTAINER_QUERY_NAME, EJB_TIMEOUT, ejbModule, EJBOBJECT_REMOVE, homeInterface, invokeStats, jaccContextID, localClassLoader, localHomeInterface, localInterface, localProxyFactory, lockManager, marshalledInvocationMapping, metaData, ORB_NAME, proxyFactories, proxyFactoryTL, remoteInterface, removeCount, rm, securityProxy, sm, tm, webClassLoader
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport (src)
log, server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from interface org.jboss.ejb.AllowedOperationsFlags (src)
IN_AFTER_BEGIN, IN_AFTER_COMPLETION, IN_BEFORE_COMPLETION, IN_BUSINESS_METHOD, IN_EJB_ACTIVATE, IN_EJB_CREATE, IN_EJB_FIND, IN_EJB_HOME, IN_EJB_LOAD, IN_EJB_PASSIVATE, IN_EJB_POST_CREATE, IN_EJB_REMOVE, IN_EJB_STORE, IN_EJB_TIMEOUT, IN_INTERCEPTOR_METHOD, IN_SERVICE_ENDPOINT_METHOD, IN_SET_ENTITY_CONTEXT, IN_SET_MESSAGE_DRIVEN_CONTEXT, IN_SET_SESSION_CONTEXT, IN_UNSET_ENTITY_CONTEXT, NOT_ALLOWED
 
Fields inherited from interface org.jboss.system.ServiceMBean (src)
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED
 
Constructor Summary
StatefulSessionContainer()
           
 
Method Summary
protected  Interceptor (src) createContainerInterceptor()
           
 EJBObject (src) createHome(Invocation (src)  mi)
           
protected  void createInstanceCache()
          creates and registers the instance cache
 EJBLocalObject (src) createLocalHome(Invocation (src)  mi)
           
protected  void createPersistenceManager()
          create persistence manager
protected  void createService()
          The EJBDeployer calls this method.
protected  void destroyInstanceCache()
           
protected  void destroyPersistenceManager()
           
 EJBObject (src) getEJBObject(Invocation (src)  mi)
          A method for the getEJBObject from the handle
 InstanceCache (src) getInstanceCache()
           
 java.util.Set getMethodPermissions(java.lang.reflect.Method m, InvocationType (src)  iface)
          Override getMethodPermissions to work around the fact that stateful session handles obtain their ejb objects by doing an invocation on the container as a home method invocation using the Handle.getEJBObject method.
 StatefulSessionPersistenceManager (src) getPersistenceManager()
           
 void remove(Invocation (src)  mi)
           
 void removeHome(Invocation (src)  mi)
           
 void removeLocalHome(Invocation (src)  mi)
           
 void setInstanceCache(InstanceCache (src)  ic)
           
 void setPersistenceManager(StatefulSessionPersistenceManager (src)  pm)
           
protected  void setupHomeMapping()
          how home methods are treated by container
protected  void startInstanceCache()
          Start instance cache
protected  void startPersistenceManager()
          Start persistence
protected  void stopInstanceCache()
          Stop instance cache
protected  void stopPersistenceManager()
          Stop persistence
 
Methods inherited from class org.jboss.ejb.SessionContainer (src)
addInterceptor, checkCoherency, createInstancePool, createInterceptors, createInvokers, destroyInstancePool, destroyInterceptors, destroyInvokers, destroyMarshalledInvocationMapping, destroyService, getBeanMapping, getEJBHome, getEJBLocalHome, getEJBMetaDataHome, getEJBMetaDataHome, getHandle, getHomeHandleHome, getHomeHandleHome, getHomeMapping, getInstancePool, getInterceptor, getLocalProxyFactory, getPrimaryKey, getPrimaryKey, getServiceEndpoint, internalInvoke, internalInvokeHome, isIdentical, setInstancePool, setupBeanMapping, setUpBeanMappingImpl, setupMarshalledInvocationMapping, startInstancePool, startInterceptors, startInvokers, startService, stopInstancePool, stopInterceptors, stopInvokers, stopService
 
Methods inherited from class org.jboss.ejb.Container (src)
addProxyFactory, createBeanClassInstance, getBeanClass, getBeanMetaData, getClassLoader, getCreateCount, getDeploymentInfo, getEjbModule, getEnvContext, getHomeClass, getInvokeStats, getJaccContextID, getJmxName, getLocalClass, getLocalClassLoader, getLocalHomeClass, getLockManager, getMessageDestination, getProxyFactory, getRealmMapping, getRemoteClass, getRemoveCount, getSecurityManager, getSecurityProxy, getTimerService, getTransactionManager, getWebClassLoader, invoke, isCallByValue, lookupProxyFactory, removeTimerService, setBeanMetaData, setClassLoader, setDeploymentInfo, setEjbModule, setJaccContextID, setLocalClassLoader, setLockManager, setProxyFactory, setRealmMapping, setSecurityManager, setSecurityProxy, setTransactionManager, setWebClassLoader
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport (src)
create, destroy, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop
 
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport (src)
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.ejb.EJBProxyFactoryContainer (src)
getHomeClass, getLocalClass, getLocalHomeClass, getLocalProxyFactory, getProxyFactory, getRemoteClass
 
Methods inherited from interface org.jboss.ejb.InstancePoolContainer (src)
getInstancePool
 

Field Detail

persistenceManager

protected StatefulSessionPersistenceManager (src)  persistenceManager
This is the persistence manager for this container


instanceCache

protected InstanceCache (src)  instanceCache
The instance cache.


getEJBObject

protected java.lang.reflect.Method getEJBObject
Constructor Detail

StatefulSessionContainer

public StatefulSessionContainer()
Method Detail

setInstanceCache

public void setInstanceCache(InstanceCache (src)  ic)

getInstanceCache

public InstanceCache (src)  getInstanceCache()

getPersistenceManager

public StatefulSessionPersistenceManager (src)  getPersistenceManager()

setPersistenceManager

public void setPersistenceManager(StatefulSessionPersistenceManager (src)  pm)

getMethodPermissions

public java.util.Set getMethodPermissions(java.lang.reflect.Method m,
                                          InvocationType (src)  iface)
Override getMethodPermissions to work around the fact that stateful session handles obtain their ejb objects by doing an invocation on the container as a home method invocation using the Handle.getEJBObject method.

Overrides:
getMethodPermissions in class Container (src)
Parameters:
m -
iface -
Returns:

createService

protected void createService()
                      throws java.lang.Exception
Description copied from class: Container (src)
The EJBDeployer calls this method. The EJBDeployer has set all the plugins and interceptors that this bean requires and now proceeds to initialize the chain. The method looks for the standard classes in the URL, sets up the naming environment of the bean. The concrete container classes should override this method to introduce implementation specific initialization behaviour.

Overrides:
createService in class SessionContainer (src)
Throws:
java.lang.Exception

createInstanceCache

protected void createInstanceCache()
                            throws java.lang.Exception
creates and registers the instance cache

Overrides:
createInstanceCache in class SessionContainer (src)
Throws:
java.lang.Exception

createPersistenceManager

protected void createPersistenceManager()
                                 throws java.lang.Exception
create persistence manager

Overrides:
createPersistenceManager in class SessionContainer (src)
Throws:
java.lang.Exception

startPersistenceManager

protected void startPersistenceManager()
                                throws java.lang.Exception
Start persistence

Overrides:
startPersistenceManager in class SessionContainer (src)
Throws:
java.lang.Exception

startInstanceCache

protected void startInstanceCache()
                           throws java.lang.Exception
Start instance cache

Overrides:
startInstanceCache in class SessionContainer (src)
Throws:
java.lang.Exception

stopPersistenceManager

protected void stopPersistenceManager()
Stop persistence

Overrides:
stopPersistenceManager in class SessionContainer (src)

stopInstanceCache

protected void stopInstanceCache()
Stop instance cache

Overrides:
stopInstanceCache in class SessionContainer (src)

destroyPersistenceManager

protected void destroyPersistenceManager()
Overrides:
destroyPersistenceManager in class SessionContainer (src)

destroyInstanceCache

protected void destroyInstanceCache()
Overrides:
destroyInstanceCache in class SessionContainer (src)

remove

public void remove(Invocation (src)  mi)
            throws java.rmi.RemoteException,
                   RemoveException (src) 
Throws:
java.rmi.RemoteException
RemoveException (src)

createHome

public EJBObject (src)  createHome(Invocation (src)  mi)
                     throws java.lang.Exception
Throws:
java.lang.Exception

removeLocalHome

public void removeLocalHome(Invocation (src)  mi)
                     throws java.rmi.RemoteException,
                            RemoveException (src) 
Throws:
java.lang.Error - Not yet implemented
java.rmi.RemoteException
RemoveException (src)

createLocalHome

public EJBLocalObject (src)  createLocalHome(Invocation (src)  mi)
                               throws java.lang.Exception
Throws:
java.lang.Exception

getEJBObject

public EJBObject (src)  getEJBObject(Invocation (src)  mi)
                       throws java.rmi.RemoteException
A method for the getEJBObject from the handle

Throws:
java.rmi.RemoteException

removeHome

public void removeHome(Invocation (src)  mi)
                throws java.rmi.RemoteException,
                       RemoveException (src) 
Throws:
java.lang.Error - Not yet implemented
java.rmi.RemoteException
RemoveException (src)

setupHomeMapping

protected void setupHomeMapping()
                         throws java.lang.Exception
Description copied from class: SessionContainer (src)
how home methods are treated by container

Specified by:
setupHomeMapping in class SessionContainer (src)
Throws:
java.lang.Exception

createContainerInterceptor

protected Interceptor (src)  createContainerInterceptor()