org.ehcache.transactions.xa.txmgr.btm
Class BitronixXAResourceRegistry

java.lang.Object
  extended by org.ehcache.transactions.xa.txmgr.btm.BitronixXAResourceRegistry
All Implemented Interfaces:
XAResourceRegistry

public class BitronixXAResourceRegistry
extends java.lang.Object
implements XAResourceRegistry

Bitronix's BTM XAResourceRegistry implementation.


Constructor Summary
BitronixXAResourceRegistry()
           
 
Method Summary
 void registerXAResource(java.lang.String uniqueName, javax.transaction.xa.XAResource xaResource)
          Register an XAResource of a cache with BTM.
 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
 

Constructor Detail

BitronixXAResourceRegistry

public BitronixXAResourceRegistry()
Method Detail

registerXAResource

public void registerXAResource(java.lang.String uniqueName,
                               javax.transaction.xa.XAResource xaResource)
Register an XAResource of a cache with BTM. The first time a XAResource is registered a new EhCacheXAResourceProducer is created to hold it.

Specified by:
registerXAResource in interface XAResourceRegistry
Parameters:
uniqueName - the uniqueName of this XAResourceProducer, usually the cache's name
xaResource - the XAResource to be registered

unregisterXAResource

public void unregisterXAResource(java.lang.String uniqueName,
                                 javax.transaction.xa.XAResource xaResource)
Unregister an XAResource of a cache from BTM.

Specified by:
unregisterXAResource in interface XAResourceRegistry
Parameters:
uniqueName - the uniqueName of this XAResourceProducer, usually the cache's name
xaResource - the XAResource to be registered