|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectResourceBean
net.sf.ehcache.transaction.manager.btm.EhCacheXAResourceProducer
public final class EhCacheXAResourceProducer
EHCache implementation of BTM's XAResourceProducer
Method Summary | |
---|---|
void |
close()
|
XAStatefulHolder |
createPooledConnection(java.lang.Object xaFactory,
ResourceBean bean)
|
void |
endRecovery()
|
XAResourceHolder |
findXAResourceHolder(javax.transaction.xa.XAResource xaResource)
|
javax.naming.Reference |
getReference()
|
void |
init()
|
static void |
registerXAResource(java.lang.String uniqueName,
javax.transaction.xa.XAResource xaResource)
Register an XAResource of a cache with BTM. |
void |
setFailed(boolean failed)
|
XAResourceHolderState |
startRecovery()
|
static void |
unregisterXAResource(java.lang.String uniqueName,
javax.transaction.xa.XAResource xaResource)
Unregister an XAResource of a cache from BTM. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void registerXAResource(java.lang.String uniqueName, javax.transaction.xa.XAResource xaResource)
uniqueName
- the uniqueName of this XAResourceProducer, usually the cache's namexaResource
- the XAResource to be registeredpublic static void unregisterXAResource(java.lang.String uniqueName, javax.transaction.xa.XAResource xaResource)
uniqueName
- the uniqueName of this XAResourceProducer, usually the cache's namexaResource
- the XAResource to be registeredpublic XAResourceHolderState startRecovery() throws RecoveryException
RecoveryException
public void endRecovery() throws RecoveryException
RecoveryException
public void setFailed(boolean failed)
public XAResourceHolder findXAResourceHolder(javax.transaction.xa.XAResource xaResource)
public void init()
public void close()
public XAStatefulHolder createPooledConnection(java.lang.Object xaFactory, ResourceBean bean) throws java.lang.Exception
java.lang.Exception
public javax.naming.Reference getReference() throws javax.naming.NamingException
javax.naming.NamingException
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |