|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jonas_ejb.container.JFactory
org.objectweb.jonas_ejb.container.JMdbFactory
This class is a factory for a Message Driven Bean There is one such class per MDB class. Contains all information related to the bean and set up all JMS environment for the bean It manages a ServerSession pool to server MDB requests.
Field Summary | |
protected int |
instanceCount
|
protected int |
maxCacheSize
|
protected int |
minPoolSize
|
protected javax.jms.XAQueueConnection |
qconn
JMS Queue Connection (Topic or Queue) always use XA Connections for transactions. |
protected javax.jms.XATopicConnection |
tconn
JMS Topic Connection always use XA Connections for transactions. |
protected ThreadPool |
threadpool
Threadpool used to run ServerSessions |
Fields inherited from class org.objectweb.jonas_ejb.container.JFactory |
beanclass, cont, dd, ejb10Env, ejbname, JNDICtx, naming, tm, txbeanmanaged |
Constructor Summary | |
JMdbFactory(MessageDrivenDesc dd,
JContainer cont,
ThreadPool thp)
Constructor |
Method Summary | |
void |
checkTransaction(RequestCtx rctx)
For Message Driven Beans, only 2 cases are possible. |
int |
getCacheSize()
|
JHome |
getHome()
returns the home if exist or null if not |
JLocalHome |
getLocalHome()
returns the local home if exist or null if not |
int |
getMaxCacheSize()
|
int |
getMinPoolSize()
|
int |
getPoolSize()
Get the size of the instance pool for this bean |
javax.jms.ServerSession |
getServerSession()
Return a server session from the pool. |
int |
getTransactionAttribute()
|
void |
notifyTimeout(javax.ejb.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 |
releaseServerSession(javax.jms.ServerSession ss)
put the ServerSession back to the pool |
void |
stop()
stop this EJB. |
void |
sync()
synchronize bean instances if needed |
Methods inherited from class org.objectweb.jonas_ejb.container.JFactory |
checkJonasVersion, checkTransactionContainer, getContainer, getDeploymentDescriptor, getEjb10Environment, getEJBName, getEnv, getInitialContext, getTimerService, getTransactionManager, init, isClassAvailable, isTxBeanManaged, myClassLoader, postInvoke, postInvokeRemote, preInvoke, preInvokeRemote, resetComponentContext, setComponentContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int instanceCount
protected int minPoolSize
protected int maxCacheSize
protected ThreadPool threadpool
protected javax.jms.XATopicConnection tconn
protected javax.jms.XAQueueConnection qconn
Constructor Detail |
public JMdbFactory(MessageDrivenDesc dd, JContainer cont, ThreadPool thp)
dd
- Message Driven Descriptorcont
- Container where this bean is definedthp
- Thread pool that will be used to process MDB requestsMethod Detail |
public int getPoolSize()
BeanFactory
getPoolSize
in interface BeanFactory
getPoolSize
in class JFactory
public void stop()
stop
in interface BeanFactory
public void sync()
sync
in interface BeanFactory
public JHome getHome()
BeanFactory
getHome
in interface BeanFactory
public JLocalHome getLocalHome()
BeanFactory
getLocalHome
in interface BeanFactory
public javax.jms.ServerSession getServerSession() throws javax.jms.JMSException
getServerSession
in interface javax.jms.ServerSessionPool
javax.jms.JMSException
- - if an application server fails to return a Server Session
out of its server session pool.public void releaseServerSession(javax.jms.ServerSession ss)
ss
- The ServerSessionpublic int getMinPoolSize()
public int getMaxCacheSize()
public int getCacheSize()
public int getTransactionAttribute()
public void checkTransaction(RequestCtx rctx)
rctx
- The Request Contextpublic void reduceCache()
reduceCache
in interface BeanFactory
public void notifyTimeout(javax.ejb.Timer timer)
timer
- timer whose expiration caused this notification.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |