org.datanucleus.jta
Class CustomJNDITransactionManagerLocator

java.lang.Object
  extended by org.datanucleus.jta.JNDIBasedTransactionManagerLocator
      extended by org.datanucleus.jta.CustomJNDITransactionManagerLocator
All Implemented Interfaces:
TransactionManagerLocator

public class CustomJNDITransactionManagerLocator
extends JNDIBasedTransactionManagerLocator

Locator for the TransactionManager in a user-defined JNDI location defined by persistence properties.


Field Summary
protected  java.lang.String jndiLocation
          The JNDI Location to use with this locator.
 
Fields inherited from class org.datanucleus.jta.JNDIBasedTransactionManagerLocator
LOCALISER
 
Constructor Summary
CustomJNDITransactionManagerLocator()
          Constructor.
CustomJNDITransactionManagerLocator(OMFContext omfCtx)
          Constructor.
 
Method Summary
 java.lang.String getJNDIName()
          Accessor for the JNDI name to lookup the txn manager under.
 
Methods inherited from class org.datanucleus.jta.JNDIBasedTransactionManagerLocator
getTransactionManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jndiLocation

protected java.lang.String jndiLocation
The JNDI Location to use with this locator.

Constructor Detail

CustomJNDITransactionManagerLocator

public CustomJNDITransactionManagerLocator()
Constructor.


CustomJNDITransactionManagerLocator

public CustomJNDITransactionManagerLocator(OMFContext omfCtx)
Constructor.

Parameters:
omfCtx - the OMF context this locator operates in
Method Detail

getJNDIName

public java.lang.String getJNDIName()
Accessor for the JNDI name to lookup the txn manager under.

Specified by:
getJNDIName in class JNDIBasedTransactionManagerLocator
Returns:
The JNDI name


Copyright © 2011. All Rights Reserved.