|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.jonas.lib.ejb21.JFactory
org.ow2.jonas.lib.ejb21.JSessionFactory
org.ow2.jonas.lib.ejb21.JStatelessFactory
public class JStatelessFactory
This class is a factory for a Session Stateless Bean.
| Field Summary | |
|---|---|
protected List |
bctxlist
instance pool management (list of available JSessionContext objects) Contexts are pooled only for Stateless Session beans because for Stateful sessions a newInstance() is required by the spec. |
protected int |
instanceCount
|
protected int |
maxCacheSize
|
protected int |
minPoolSize
|
protected JServiceEndpointHome |
sehome
|
| Fields inherited from class org.ow2.jonas.lib.ejb21.JSessionFactory |
|---|
home, isStateful, isSynchro, localhome, monitoringEnabled, numberOfCalls, sessionList, singleswitch, totalBusinessProcessingTime, totalProcessingTime, uniqueSession, warningThreshold |
| Fields inherited from class org.ow2.jonas.lib.ejb21.JFactory |
|---|
beanclass, cont, dd, dispatcher, ejb10Env, ejbname, ejbTimeoutSignature, isClusterReplicated, JNDICtx, myTimerService, naming, passivationDir, stopped, timerTxAttr, tm, txbeanmanaged, wm |
| Constructor Summary | |
|---|---|
JStatelessFactory(SessionStatelessDesc dd,
JContainer cont)
constructor |
|
| Method Summary | |
|---|---|
JSessionSwitch |
createNewSession()
Creates a new Session Stateless |
int |
getCacheSize()
|
JSessionContext |
getJContext(JSessionSwitch ss)
|
int |
getMaxCacheSize()
|
int |
getMinPoolSize()
|
int |
getPoolSize()
Get the size of the instance pool for this bean |
JServiceEndpointHome |
getSEHome()
|
TimerService |
getTimerService()
Obtains the TimerService associated for this Bean |
void |
initInstancePool()
Init pool of instances. |
void |
notifyTimeout(Timer timer)
Notify a timeout for this bean |
void |
reduceCache()
Reduce number of instances in memory in the free list we reduce to the minPoolSize |
void |
releaseJContext(JContext ctx)
Called after each method call |
void |
storeInstances(Transaction tx)
Store intances modified (used before finder ou select methods) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected List bctxlist
protected JServiceEndpointHome sehome
protected int instanceCount
protected int minPoolSize
protected int maxCacheSize
| Constructor Detail |
|---|
public JStatelessFactory(SessionStatelessDesc dd,
JContainer cont)
dd - Session Stateless Deployment Descriptorcnt - Container where the bean is defined| Method Detail |
|---|
public void initInstancePool()
initInstancePool in interface BeanFactoryinitInstancePool in class JFactorypublic JServiceEndpointHome getSEHome()
public int getPoolSize()
BeanFactory
getPoolSize in interface BeanFactorygetPoolSize in class JFactorypublic void reduceCache()
public TimerService getTimerService()
getTimerService in class JFactory
public JSessionSwitch createNewSession()
throws RemoteException
createNewSession in class JSessionFactoryRemoteExceptionpublic JSessionContext getJContext(JSessionSwitch ss)
getJContext in class JSessionFactorypublic void releaseJContext(JContext ctx)
ctx - the Session Contextpublic void notifyTimeout(Timer timer)
timer - timer whose expiration caused this notification.public int getMinPoolSize()
getMinPoolSize in class JFactorypublic int getMaxCacheSize()
getMaxCacheSize in class JFactorypublic int getCacheSize()
getCacheSize in class JFactorypublic void storeInstances(Transaction tx)
BeanFactory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||