Save This Page
Home » jboss-5.0.0.CR1-src » org » jboss » ejb » [javadoc | source]
org.jboss.ejb
abstract public class: SessionContainer [javadoc | source]
java.lang.Object
   org.jboss.mx.util.JBossNotificationBroadcasterSupport
      org.jboss.system.ServiceMBeanSupport
         org.jboss.ejb.Container
            org.jboss.ejb.SessionContainer

All Implemented Interfaces:
    ContainerMBean, AllowedOperationsFlags, org.jboss.kernel.spi.dependency.KernelControllerContextAware, ServiceMBean, MBeanRegistration, NotificationEmitter

Direct Known Subclasses:
    StatefulSessionContainer, StatelessSessionContainer

Container dedicated to session beans. Contains factored out redundancies between stateless and stateful treatments, because (extending the spec) we would like to also support stateful web services.

Field Summary
protected  Map homeMapping    These are the mappings between the home interface methods and the container methods. 
protected  Map beanMapping    These are the mappings between the remote interface methods and the bean methods. 
protected  Interceptor interceptor    This is the first interceptor in the chain. The last interceptor must be provided by the container itself 
protected  Class serviceEndpoint    this is the service endpoint class 
protected  InstancePool instancePool    This is the instancepool that is to be used 
Fields inherited from org.jboss.ejb.Container:
BASE_EJB_CONTAINER_NAME,  ORB_NAME,  EJB_CONTAINER_QUERY_NAME,  EJBOBJECT_REMOVE,  EJB_TIMEOUT,  ejbModule,  classLoader,  webClassLoader,  metaData,  beanClass,  homeInterface,  remoteInterface,  localHomeInterface,  localInterface,  tm,  securityContextClassName,  defaultSecurityDomain,  securityManagement,  policyRegistration,  sm,  rm,  securityProxy,  lockManager,  localProxyFactory,  marshalledInvocationMapping,  proxyFactories,  proxyFactoryTL,  createCount,  removeCount,  invokeStats,  jaccContextID,  isJaccEnabled,  timerService
Fields inherited from org.jboss.system.ServiceMBeanSupport:
SERVICE_CONTROLLER_SIG,  log,  server,  serviceName
Method from org.jboss.ejb.SessionContainer Summary:
addInterceptor,   checkCoherency,   createInstanceCache,   createInstancePool,   createInterceptors,   createInvokers,   createPersistenceManager,   createService,   destroyInstanceCache,   destroyInstancePool,   destroyInterceptors,   destroyInvokers,   destroyMarshalledInvocationMapping,   destroyPersistenceManager,   destroyService,   getBeanMapping,   getEJBHome,   getEJBLocalHome,   getEJBMetaDataHome,   getEJBMetaDataHome,   getHandle,   getHomeHandleHome,   getHomeHandleHome,   getHomeMapping,   getInstancePool,   getInterceptor,   getLocalProxyFactory,   getPrimaryKey,   getPrimaryKey,   getServiceEndpoint,   internalInvoke,   internalInvokeHome,   isIdentical,   setInstancePool,   setUpBeanMappingImpl,   setupBeanMapping,   setupHomeMapping,   setupMarshalledInvocationMapping,   startInstanceCache,   startInstancePool,   startInterceptors,   startInvokers,   startPersistenceManager,   startService,   stopInstanceCache,   stopInstancePool,   stopInterceptors,   stopInvokers,   stopPersistenceManager,   stopService
Methods from org.jboss.ejb.Container:
addInterceptor,   addProxyFactory,   cleanENC,   createBeanClassInstance,   createContainerInterceptor,   createService,   destroyService,   getBeanClass,   getBeanMetaData,   getClassLoader,   getCreateCount,   getDefaultSecurityDomain,   getDeploymentInfo,   getDeploymentUnit,   getEjbModule,   getEnvContext,   getHomeClass,   getInvokeStats,   getJaccContextID,   getJmxName,   getLocalClass,   getLocalHomeClass,   getLockManager,   getMessageDestination,   getMethodPermissions,   getPolicyRegistration,   getProxyFactory,   getRealmMapping,   getRemoteClass,   getRemoveCount,   getSecurityContextClassName,   getSecurityManagement,   getSecurityManager,   getSecurityProxy,   getTimerService,   getTimerService,   getTransactionManager,   getWebClassLoader,   internalInvoke,   internalInvokeHome,   invoke,   isCallByValue,   isJaccEnabled,   lookupProxyFactory,   popENC,   pushENC,   removeTimerService,   restoreTimers,   setBeanMetaData,   setClassLoader,   setDefaultSecurityDomain,   setDeploymentInfo,   setDeploymentUnit,   setEjbModule,   setJaccContextID,   setJaccEnabled,   setLockManager,   setPolicyRegistration,   setProxyFactory,   setRealmMapping,   setSecurityContextClassName,   setSecurityManagement,   setSecurityManager,   setSecurityProxy,   setTimerService,   setTransactionManager,   setWebClassLoader,   startService,   stopService
Methods from org.jboss.system.ServiceMBeanSupport:
create,   createService,   destroy,   destroyService,   getDeploymentInfo,   getLog,   getName,   getNextNotificationSequenceNumber,   getObjectName,   getServer,   getServiceName,   getState,   getStateString,   jbossInternalCreate,   jbossInternalDescription,   jbossInternalDestroy,   jbossInternalLifecycle,   jbossInternalStart,   jbossInternalStop,   pojoChange,   pojoCreate,   pojoDestroy,   pojoStart,   pojoStop,   postDeregister,   postRegister,   preDeregister,   preRegister,   setKernelControllerContext,   start,   startService,   stop,   stopService,   unsetKernelControllerContext
Methods from org.jboss.mx.util.JBossNotificationBroadcasterSupport:
addNotificationListener,   getNotificationInfo,   handleNotification,   nextNotificationSequenceNumber,   removeNotificationListener,   removeNotificationListener,   sendNotification
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.ejb.SessionContainer Detail:
 public  void addInterceptor(Interceptor in) 
    add an additional interceptor to the chain
 protected  void checkCoherency() throws Exception 
 protected  void createInstanceCache() throws Exception 
    no instance cache per default
 protected  void createInstancePool() throws Exception 
    creates a new instance pool
 protected  void createInterceptors() throws Exception 
    Initialize the interceptors by calling the chain
 protected  void createInvokers() throws Exception 
    creates the invokers
 protected  void createPersistenceManager() throws Exception 
    no persistence manager per default
 protected  void createService() throws Exception 
 protected  void destroyInstanceCache() 
 protected  void destroyInstancePool() 
 protected  void destroyInterceptors() 
 protected  void destroyInvokers() 
 protected  void destroyMarshalledInvocationMapping() 
 protected  void destroyPersistenceManager() 
 protected  void destroyService() throws Exception 
 protected Map getBeanMapping() 
    needed for sub-inner-class access (old jdk compiler bug)
 public EJBHome getEJBHome(Invocation mi) throws RemoteException 
 public EJBLocalHome getEJBLocalHome(Invocation mi) 
 public EJBMetaData getEJBMetaDataHome() throws RemoteException 
 public EJBMetaData getEJBMetaDataHome(Invocation mi) throws RemoteException 
 public Handle getHandle(Invocation mi) throws RemoteException 
    While the following methods are implemented in the client in the case of JRMP we would need to implement them to fully support other transport protocols
 public HomeHandle getHomeHandleHome() throws RemoteException 
 public HomeHandle getHomeHandleHome(Invocation mi) throws RemoteException 
 protected Map getHomeMapping() 
    needed for sub-inner-class access (old jdk compiler bug)
 public InstancePool getInstancePool() 
    return instance pool
 public Interceptor getInterceptor() 
    return first interceptor
 public LocalProxyFactory getLocalProxyFactory() 
    return local proxy factory
 public Object getPrimaryKey() throws RemoteException 
 public Object getPrimaryKey(Invocation mi) throws RemoteException 
 public Class getServiceEndpoint() 
    return service endpoint
 public Object internalInvoke(Invocation mi) throws Exception 
    This method does invocation interpositioning of tx and security, retrieves the instance from an object table, and invokes the method on the particular instance
 public Object internalInvokeHome(Invocation mi) throws Exception 
 public boolean isIdentical(Invocation mi) throws RemoteException 
 public  void setInstancePool(InstancePool ip) 
    set the instance pool
 protected  void setUpBeanMappingImpl(Map map,
    Method[] methods,
    String declaringClass) throws NoSuchMethodException 
    loop through methods and setup mapping
 protected  void setupBeanMapping() throws NoSuchMethodException 
    build bean mappings for application logic
 abstract protected  void setupHomeMapping() throws Exception
    how home methods are treated by container
 protected  void setupMarshalledInvocationMapping() throws Exception 
    sets up marshalled invocation mappings
 protected  void startInstanceCache() throws Exception 
    no instance cache per default
 protected  void startInstancePool() throws Exception 
    Start pool
 protected  void startInterceptors() throws Exception 
    Start all interceptors in the chain
 protected  void startInvokers() throws Exception 
    Start container invokers
 protected  void startPersistenceManager() throws Exception 
    no persistence manager per default
 protected  void startService() throws Exception 
 protected  void stopInstanceCache() 
    no instance cache
 protected  void stopInstancePool() 
    Stop pool
 protected  void stopInterceptors() 
    Stop all interceptors in the chain
 protected  void stopInvokers() 
    Stop container invoker
 protected  void stopPersistenceManager() 
    no persistence
 protected  void stopService() throws Exception