|
||||||||||
| PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport (src)
org.jboss.system.ServiceMBeanSupport (src)
org.jboss.ejb.plugins.AbstractInstancePool (src)
org.jboss.ejb.plugins.SingletonStatelessSessionInstancePool
Singleton pool for session beans. This lets you have singletons in EJB!
| Field Summary |
| Fields inherited from class org.jboss.ejb.plugins.AbstractInstancePool (src) |
container, maxSize, pool, reclaim |
| Fields inherited from class org.jboss.system.ServiceMBeanSupport (src) |
log, server, SERVICE_CONTROLLER_SIG, serviceName |
| 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 | |
SingletonStatelessSessionInstancePool()
|
|
| Method Summary | |
void |
add()
Add a instance in the pool |
void |
create()
create the service, do expensive operations etc |
protected EnterpriseContext (src) |
create(java.lang.Object instance)
|
void |
destroy()
destroy the service, tear down |
void |
discard(EnterpriseContext (src) ctx)
Discard an anonymous instance after invocation. |
void |
free(EnterpriseContext (src) ctx)
Return an instance after invocation. |
EnterpriseContext (src) |
get()
Get the singleton instance |
int |
getCurrentSize()
Return the size of the pool. |
int |
getMaxSize()
Get the maximum size of the pool. |
void |
importXml(org.w3c.dom.Element element)
XmlLoadable implementation |
void |
start()
start the service, create is already called |
void |
stop()
stop the service |
| Methods inherited from class org.jboss.ejb.plugins.AbstractInstancePool (src) |
destroyService, getAvailableCount, getContainer, setContainer |
| Methods inherited from class org.jboss.system.ServiceMBeanSupport (src) |
createService, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, startService, stopService |
| 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 |
| Constructor Detail |
public SingletonStatelessSessionInstancePool()
| Method Detail |
public void create()
throws java.lang.Exception
Service (src)
create in interface Service (src) create in class ServiceMBeanSupport (src) java.lang.Exception
public void start()
throws java.lang.Exception
Service (src)
start in interface Service (src) start in class ServiceMBeanSupport (src) java.lang.Exceptionpublic void stop()
Service (src)
stop in interface Service (src) stop in class ServiceMBeanSupport (src) public void destroy()
Service (src)
destroy in interface Service (src) destroy in class ServiceMBeanSupport (src)
public EnterpriseContext (src) get()
throws java.lang.Exception
get in interface InstancePool (src) get in class AbstractInstancePool (src) java.lang.Exceptionpublic void free(EnterpriseContext (src) ctx)
free in interface InstancePool (src) free in class AbstractInstancePool (src) ctx - public void discard(EnterpriseContext (src) ctx)
InstancePool (src)
discard in interface InstancePool (src) discard in class AbstractInstancePool (src)
public void add()
throws java.lang.Exception
java.lang.Exceptionpublic int getCurrentSize()
InstancePool (src)
getCurrentSize in interface InstancePool (src) getCurrentSize in class AbstractInstancePool (src) public int getMaxSize()
InstancePool (src)
getMaxSize in interface InstancePool (src) getMaxSize in class AbstractInstancePool (src)
public void importXml(org.w3c.dom.Element element)
throws DeploymentException (src)
AbstractInstancePool (src)
importXml in interface XmlLoadable (src) importXml in class AbstractInstancePool (src) DeploymentException (src)
protected EnterpriseContext (src) create(java.lang.Object instance)
throws java.lang.Exception
create in class AbstractInstancePool (src) java.lang.Exception
|
||||||||||
| PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||