|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.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 javax.jms.XAQueueConnection |
qconn
|
protected javax.jms.XATopicConnection |
tconn
JMS Connection (Topic or Queue) 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, bn, 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. |
JHome |
getHome()
returns the home if exist |
JLocalHome |
getLocalHome()
returns the local home if exist |
int |
getPoolSize()
|
javax.jms.ServerSession |
getServerSession()
Return a server session from the pool. |
int |
getTransactionAttribute()
return the Transaction Attribute |
void |
reduceCache()
Reduce number of instances in memory |
void |
releaseServerSession(javax.jms.ServerSession ss)
return the ServerSession 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 |
checkTransactionContainer, getContainer, getCorbaInitialContext, getDeploymentDescriptor, getEjb10Environment, getEJBName, getEnv, getInitialContext, getTransactionManager, init, isTxBeanManaged, 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 ThreadPool threadpool
protected javax.jms.XATopicConnection tconn
protected javax.jms.XAQueueConnection qconn
Constructor Detail |
public JMdbFactory(MessageDrivenDesc dd, JContainer cont, ThreadPool thp)
Method Detail |
public int getPoolSize()
getPoolSize
in class JFactory
public void stop()
public void sync()
public void reduceCache()
public JHome getHome()
public JLocalHome getLocalHome()
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)
public int getTransactionAttribute()
public void checkTransaction(RequestCtx rctx)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |