|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.ejb.Container
org.jboss.ejb.StatefulSessionContainer
The container for stateful session beans.
Nested Class Summary |
Nested classes inherited from class org.jboss.ejb.Container |
Container.AbstractContainerInterceptor |
Field Summary | |
protected Map |
beanMapping
These are the mappings between the remote interface methods and the bean methods. |
protected Method |
getEJBObject
|
protected Map |
homeMapping
These are the mappings between the home interface methods and the container methods. |
protected InstanceCache |
instanceCache
The instance cache. |
protected InstancePool |
instancePool
This is the instancepool that is to be used |
protected Interceptor |
interceptor
This is the first interceptor in the chain. |
protected StatefulSessionPersistenceManager |
persistenceManager
This is the persistence manager for this container |
Fields inherited from class org.jboss.ejb.Container |
BASE_EJB_CONTAINER_NAME, beanClass, classLoader, createCount, EJB_CONTAINER_QUERY_NAME, ejbModule, homeInterface, invokeStats, localClassLoader, localHomeInterface, localInterface, localProxyFactory, lockManager, marshalledInvocationMapping, metaData, proxyFactories, proxyFactoryTL, remoteInterface, removeCount, rm, securityProxy, sm, tm, webClassLoader |
Fields inherited from class org.jboss.system.ServiceMBeanSupport |
log, server, SERVICE_CONTROLLER_SIG, serviceName |
Fields inherited from interface org.jboss.system.ServiceMBean |
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
Constructor Summary | |
StatefulSessionContainer()
|
Method Summary | |
void |
addInterceptor(Interceptor in)
|
protected void |
checkCoherency()
|
protected Interceptor |
createContainerInterceptor()
|
javax.ejb.EJBObject |
createHome(Invocation mi)
|
javax.ejb.EJBLocalObject |
createLocalHome(Invocation mi)
|
protected void |
createService()
The EJBDeployer calls this method. |
protected void |
destroyService()
A default implementation of destroying the container service (no-op). |
javax.ejb.EJBHome |
getEJBHome(Invocation mi)
|
javax.ejb.EJBLocalHome |
getEJBLocalHome(Invocation mi)
|
javax.ejb.EJBMetaData |
getEJBMetaDataHome(Invocation mi)
|
javax.ejb.EJBObject |
getEJBObject(Invocation mi)
A method for the getEJBObject from the handle |
javax.ejb.Handle |
getHandle(Invocation mi)
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 |
Class |
getHomeClass()
??? |
javax.ejb.HomeHandle |
getHomeHandleHome(Invocation mi)
|
InstanceCache |
getInstanceCache()
|
InstancePool |
getInstancePool()
Get the instance pool for the container. |
Interceptor |
getInterceptor()
|
LocalProxyFactory |
getLocalProxyFactory()
??? |
Set |
getMethodPermissions(Method m,
InvocationType 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 |
getPersistenceManager()
|
Object |
getPrimaryKey(Invocation mi)
|
Class |
getRemoteClass()
??? |
Object |
internalInvoke(Invocation mi)
This method retrieves the instance from an object table, and invokes the method on the particular instance through the chain of interceptors. |
Object |
internalInvokeHome(Invocation mi)
This method is called when a method call comes in on the Home object. |
boolean |
isIdentical(Invocation mi)
|
void |
remove(Invocation mi)
|
void |
removeHome(Invocation mi)
|
void |
removeLocalHome(Invocation mi)
|
void |
setInstanceCache(InstanceCache ic)
|
void |
setInstancePool(InstancePool ip)
|
void |
setPersistenceManager(StatefulSessionPersistenceManager pm)
|
protected void |
setupBeanMapping()
|
protected void |
setupHomeMapping()
|
protected void |
setupMarshalledInvocationMapping()
|
protected void |
startService()
A default implementation of starting the container service. |
protected void |
stopService()
A default implementation of stopping the container service (no-op). |
Methods inherited from class org.jboss.system.ServiceMBeanSupport |
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 |
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 |
getLocalClass, getLocalHomeClass, getProxyFactory |
Methods inherited from interface org.jboss.system.ServiceMBean |
getName, getState, getStateString, jbossInternalLifecycle |
Methods inherited from interface org.jboss.system.Service |
create, destroy, start, stop |
Field Detail |
protected Map homeMapping
protected Map beanMapping
protected Interceptor interceptor
protected InstancePool instancePool
protected StatefulSessionPersistenceManager persistenceManager
protected InstanceCache instanceCache
protected Method getEJBObject
Constructor Detail |
public StatefulSessionContainer()
Method Detail |
public LocalProxyFactory getLocalProxyFactory()
EJBProxyFactoryContainer
getLocalProxyFactory
in interface EJBProxyFactoryContainer
public void setInstanceCache(InstanceCache ic)
public InstanceCache getInstanceCache()
public void setInstancePool(InstancePool ip)
public InstancePool getInstancePool()
InstancePoolContainer
getInstancePool
in interface InstancePoolContainer
public StatefulSessionPersistenceManager getPersistenceManager()
public void setPersistenceManager(StatefulSessionPersistenceManager pm)
public void addInterceptor(Interceptor in)
addInterceptor
in class Container
public Interceptor getInterceptor()
public Class getHomeClass()
EJBProxyFactoryContainer
getHomeClass
in interface EJBProxyFactoryContainer
public Class getRemoteClass()
EJBProxyFactoryContainer
getRemoteClass
in interface EJBProxyFactoryContainer
public Set getMethodPermissions(Method m, InvocationType iface)
getMethodPermissions
in class Container
m
- iface
-
protected void createService() throws Exception
Container
createService
in class Container
Exception
- if loading the bean class failed
(ClassNotFoundException) or setting up "java:"
naming environment failed (DeploymentException)protected void startService() throws Exception
Container
startService
in class Container
Exception
- An exception that occured during startprotected void stopService() throws Exception
Container
stopService
in class Container
Exception
protected void destroyService() throws Exception
Container
destroyService
in class Container
Exception
public Object internalInvokeHome(Invocation mi) throws Exception
Container
internalInvokeHome
in class Container
mi
- the object holding all info about this invocation
Exception
public Object internalInvoke(Invocation mi) throws Exception
internalInvoke
in class Container
mi
- - the method invocation representation
Exception
public void remove(Invocation mi) throws RemoteException, javax.ejb.RemoveException
RemoteException
javax.ejb.RemoveException
public javax.ejb.Handle getHandle(Invocation mi) throws RemoteException
RemoteException
public Object getPrimaryKey(Invocation mi) throws RemoteException
RemoteException
public javax.ejb.EJBHome getEJBHome(Invocation mi) throws RemoteException
RemoteException
public boolean isIdentical(Invocation mi) throws RemoteException
RemoteException
public javax.ejb.EJBObject createHome(Invocation mi) throws Exception
Exception
public javax.ejb.EJBLocalHome getEJBLocalHome(Invocation mi)
public void removeLocalHome(Invocation mi) throws RemoteException, javax.ejb.RemoveException
Error
- Not yet implemented
RemoteException
javax.ejb.RemoveException
public javax.ejb.EJBLocalObject createLocalHome(Invocation mi) throws Exception
Exception
public javax.ejb.EJBObject getEJBObject(Invocation mi) throws RemoteException
RemoteException
public void removeHome(Invocation mi) throws RemoteException, javax.ejb.RemoveException
Error
- Not yet implemented
RemoteException
javax.ejb.RemoveException
public javax.ejb.EJBMetaData getEJBMetaDataHome(Invocation mi) throws RemoteException
RemoteException
public javax.ejb.HomeHandle getHomeHandleHome(Invocation mi) throws RemoteException
Error
- Not yet implemented
RemoteException
protected void setupHomeMapping() throws Exception
Exception
protected void setupBeanMapping() throws NoSuchMethodException
NoSuchMethodException
protected void setupMarshalledInvocationMapping() throws Exception
Exception
protected Interceptor createContainerInterceptor()
protected void checkCoherency() throws Exception
Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |