| |
|
| java.lang.Object org.objectweb.jonas_ejb.container.JFactory org.objectweb.jonas_ejb.container.JMdbFactory
JMdbFactory | public class JMdbFactory extends JFactory implements ServerSessionPool(Code) | | 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.
author: Philippe Coq, Philippe Durieux |
JMdbFactory | public JMdbFactory(MessageDrivenDesc dd, JContainer cont)(Code) | | Constructor
Parameters: dd - Message Driven Descriptor Parameters: cont - Container where this bean is defined |
checkTransaction | public void checkTransaction(RequestCtx rctx)(Code) | | For Message Driven Beans, only 2 cases are possible.
Parameters: rctx - The Request Context |
getCacheSize | public int getCacheSize()(Code) | | current cache size ( = nb of instance created)for Jmx |
getMaxCacheSize | public int getMaxCacheSize()(Code) | | max cache sizefor Jmx |
getMinPoolSize | public int getMinPoolSize()(Code) | | min pool sizefor Jmx |
getPoolSize | public int getPoolSize()(Code) | | the size of the ServerSessionPool |
getServerSession | public ServerSession getServerSession() throws JMSException(Code) | | Returns a server session from the pool. If pool is empty, creates a new one.
Returns a server session from the pool. exception: JMSException - - if an application server fails to return a Server Sessionout of its server session pool. |
getTimerService | public TimerService getTimerService()(Code) | | Obtains the TimerService associated for this Bean
a JTimerService instance. |
getTransactionAttribute | public int getTransactionAttribute()(Code) | | the Transaction Attribute |
initInstancePool | public void initInstancePool()(Code) | | Init pool of instances
|
notifyTimeout | public void notifyTimeout(Timer timer)(Code) | | Notify a timeout for this bean
Parameters: timer - timer whose expiration caused this notification. |
reduceCache | public void reduceCache()(Code) | | Reduce number of instances in memory in the free list
we reduce to the minPoolSize
|
releaseServerSession | public void releaseServerSession(ServerSession ss)(Code) | | put the ServerSession back to the pool
Parameters: ss - The ServerSession |
stop | public void stop()(Code) | | stop this EJB.
call ejbRemove on all MDB
close the connection consumer
Stop the threads and remove the beans
|
storeInstances | public void storeInstances(Transaction tx)(Code) | | |
syncDirty | public void syncDirty(boolean notused)(Code) | | synchronize bean instances if needed
|
|
|
|