org.datanucleus.jta
Class TransactionManagerFinder

java.lang.Object
  extended by org.datanucleus.jta.TransactionManagerFinder

public class TransactionManagerFinder
extends java.lang.Object

Entry point for locating a JTA TransactionManager.

Version:
$Revision: 1.8 $

Constructor Summary
TransactionManagerFinder(OMFContext ctx)
          Constructor.
 
Method Summary
 javax.transaction.TransactionManager getTransactionManager(ClassLoaderResolver clr)
          Accessor for the accessible JTA transaction manager.
protected  javax.transaction.TransactionManager getTransactionManagerForLocator(ClassLoaderResolver clr, java.lang.String locatorClassName)
          Convenience method to get the TransactionManager for the specified locator class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionManagerFinder

public TransactionManagerFinder(OMFContext ctx)
Constructor.

Parameters:
ctx - Context for persistence
Method Detail

getTransactionManager

public javax.transaction.TransactionManager getTransactionManager(ClassLoaderResolver clr)
Accessor for the accessible JTA transaction manager.

Parameters:
clr - ClassLoader resolver
Returns:
The JTA manager found (if any)

getTransactionManagerForLocator

protected javax.transaction.TransactionManager getTransactionManagerForLocator(ClassLoaderResolver clr,
                                                                               java.lang.String locatorClassName)
Convenience method to get the TransactionManager for the specified locator class.

Parameters:
clr - ClassLoader resolver
locatorClassName - Class name for the locator
Returns:
The TransactionManager (if found)


Copyright © 2009. All Rights Reserved.