org.jboss.tm
Class TransactionManagerLocator

java.lang.Object
  extended by org.jboss.tm.TransactionManagerLocator

public class TransactionManagerLocator
extends Object

Locates the transaction manager.

Version:
$Revision: 57208 $
Author:
Adrian Brock

Method Summary
static TransactionManagerLocator getInstance()
          Get the the locator
 TransactionManager locate()
          Locate the transaction manager
protected  TransactionManager tryJNDI()
          Locate the transaction manager in the well known jndi binding for JBoss
protected  TransactionManager usePrivateAPI()
          Use the private api
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static TransactionManagerLocator getInstance()
Get the the locator

Returns:
the locator

locate

public TransactionManager locate()
Locate the transaction manager

Returns:
the transaction manager

tryJNDI

protected TransactionManager tryJNDI()
Locate the transaction manager in the well known jndi binding for JBoss

Returns:
the tm from jndi

usePrivateAPI

protected TransactionManager usePrivateAPI()
Use the private api

This is a fallback method for non JBossAS use.

Returns:
the tm from the private api


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.