|
|||||||||||
| 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.plugins.AbstractInstancePool
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 |
container, maxSize, pool, reclaim |
| 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 | |
SingletonStatelessSessionInstancePool()
|
|
| Method Summary | |
void |
add()
Add a instance in the pool |
void |
create()
|
protected EnterpriseContext |
create(Object instance)
|
void |
destroy()
|
void |
discard(EnterpriseContext ctx)
Discard an anonymous instance after invocation. |
void |
free(EnterpriseContext ctx)
Return an instance after invocation. |
EnterpriseContext |
get()
Get the singleton instance |
int |
getCurrentSize()
Return the size of the pool. |
int |
getMaxSize()
Get the maximum size of the pool. |
void |
importXml(Element element)
XmlLoadable implementation |
void |
start()
|
void |
stop()
|
| Methods inherited from class org.jboss.ejb.plugins.AbstractInstancePool |
clear, destroyService, getAvailableCount, getContainer, setContainer |
| Methods inherited from class org.jboss.system.ServiceMBeanSupport |
createService, getDeploymentInfo, 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 |
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, 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.system.ServiceMBean |
getName, getState, getStateString, jbossInternalLifecycle |
| Constructor Detail |
public SingletonStatelessSessionInstancePool()
| Method Detail |
public void create()
throws Exception
Exception
public void start()
throws Exception
Exceptionpublic void stop()
public void destroy()
public EnterpriseContext get()
throws Exception
get in interface InstancePoolget in class AbstractInstancePoolExceptionpublic void free(EnterpriseContext ctx)
free in interface InstancePoolfree in class AbstractInstancePoolctx - public void discard(EnterpriseContext ctx)
InstancePool
discard in interface InstancePooldiscard in class AbstractInstancePool
public void add()
throws Exception
Exceptionpublic int getCurrentSize()
InstancePool
getCurrentSize in interface AbstractInstancePoolMBeangetCurrentSize in class AbstractInstancePoolpublic int getMaxSize()
InstancePool
getMaxSize in interface AbstractInstancePoolMBeangetMaxSize in class AbstractInstancePool
public void importXml(Element element)
throws org.jboss.deployment.DeploymentException
AbstractInstancePool
importXml in interface XmlLoadableimportXml in class AbstractInstancePoolorg.jboss.deployment.DeploymentException
protected EnterpriseContext create(Object instance)
throws Exception
create in class AbstractInstancePoolException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||