ehcache

net.sf.ehcache.transaction.manager
Interface TransactionManagerLookup

All Known Implementing Classes:
DefaultTransactionManagerLookup

public interface TransactionManagerLookup

Interface to enable a XA transactional cache to access the JTA TransactionManager. The implementing class can be configured in your xml file. It will then be instanciated by the Cache, during initialization. It'll then have the properties injected, should any have been specified. And finally, the TransactionManager will be queried for using #getTransactionManager.

Author:
Alex Snaps

Method Summary
 TransactionManager getTransactionManager()
          Lookup available txnManagers
 void register(EhcacheXAResource resource)
          execute txnManager specific code.
 void setProperties(java.util.Properties properties)
          Setter to the properties properties.
 

Method Detail

getTransactionManager

TransactionManager getTransactionManager()
Lookup available txnManagers

Returns:
TransactionManager

register

void register(EhcacheXAResource resource)
execute txnManager specific code.


setProperties

void setProperties(java.util.Properties properties)
Setter to the properties properties. This will be called right after the class has been instantiated.

Parameters:
properties - the properties parsed from the config file's transactionManagerLookup tag's properties attribute

ehcache

true