|
||||||||||
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.JMdbEndpointFactory
This class is a factory for a Message Driven Bean Endpoints There is one such class per MDB class. Contains all information related to the bean
Field Summary | |
protected int |
instanceCount
|
protected int |
maxCacheSize
|
protected int |
minPoolSize
|
Fields inherited from class org.objectweb.jonas_ejb.container.JFactory |
beanclass, cont, dd, ejb10Env, ejbname, JNDICtx, myTimerService, naming, tm, txbeanmanaged |
Constructor Summary | |
JMdbEndpointFactory(MessageDrivenJMS2_1Desc dd,
JContainer cont,
javax.resource.spi.ActivationSpec _as)
Constructor |
Method Summary | |
void |
checkTransaction(RequestCtx rctx)
For Message Driven Beans, only 2 cases are possible. |
javax.resource.spi.endpoint.MessageEndpoint |
createEndpoint(javax.transaction.xa.XAResource xaResource)
|
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()
|
JMessageEndpoint |
getMessageEndpoint()
Return an MessageEndpoint from the pool. |
int |
getMinPoolSize()
|
int |
getPoolSize()
Get the size of the instance pool for this bean |
javax.ejb.TimerService |
getTimerService()
Obtains the TimerService associated for this Bean |
int |
getTransactionAttribute()
|
boolean |
isDeliveryTransacted(java.lang.reflect.Method method)
|
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 |
releaseEndpoint(JMessageEndpoint ep)
put the JMessageEndpoint back to the pool |
void |
stop()
stop this EJB. call deactivate on the Endpoint Stop the threads and remove the beans |
void |
sync()
synchronize bean instances if needed |
Methods inherited from class org.objectweb.jonas_ejb.container.JFactory |
checkJonasVersion, checkSecurity, checkTransactionContainer, getContainer, getDeploymentDescriptor, getEjb10Environment, getEJBName, getEnv, getInitialContext, 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
Constructor Detail |
public JMdbEndpointFactory(MessageDrivenJMS2_1Desc dd, JContainer cont, javax.resource.spi.ActivationSpec _as)
dd
- Message Driven Descriptorcont
- Container where this bean is definedMethod 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.resource.spi.endpoint.MessageEndpoint createEndpoint(javax.transaction.xa.XAResource xaResource) throws javax.resource.spi.UnavailableException
createEndpoint
in interface javax.resource.spi.endpoint.MessageEndpointFactory
javax.resource.spi.UnavailableException
public boolean isDeliveryTransacted(java.lang.reflect.Method method) throws java.lang.NoSuchMethodException
isDeliveryTransacted
in interface javax.resource.spi.endpoint.MessageEndpointFactory
java.lang.NoSuchMethodException
public JMessageEndpoint getMessageEndpoint() throws java.lang.Exception
java.lang.Exception
- - if an application server fails to return an
MessageEndpoint out of its pool.public void releaseEndpoint(JMessageEndpoint ep)
ep
- the MessageEndpointpublic javax.ejb.TimerService getTimerService()
getTimerService
in class JFactory
public 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 |