@Deprecated public class TransactionManagerLocator extends Object implements TransactionManagerFactory
Modifier and Type | Method and Description |
---|---|
static TransactionManagerLocator |
getInstance()
Deprecated.
Get the locator
|
TransactionManager |
getTransactionManager()
Deprecated.
Get the transaction manager
|
TransactionManager |
locate()
Deprecated.
Locate the transaction manager
|
TransactionManager |
locate(boolean throwExceptionIfUnableToLocate)
Deprecated.
Locate the transaction manager
|
static TransactionManager |
locateTransactionManager()
Deprecated.
Locate the transaction manager
|
static TransactionManager |
locateTransactionManager(boolean throwExceptionIfUnableToLocate)
Deprecated.
Locate the transaction manager
|
protected TransactionManager |
tryJNDI()
Deprecated.
Locate the transaction manager in the well known jndi binding for JBoss
|
protected TransactionManager |
usePrivateAPI()
Deprecated.
Use the private api
|
public static TransactionManagerLocator getInstance()
public static TransactionManager locateTransactionManager()
public static TransactionManager locateTransactionManager(boolean throwExceptionIfUnableToLocate)
throwExceptionIfUnableToLocate
- if true and transaction manager
cannot be located, a RuntimeException is thrown, otherwise null is
returned.public TransactionManager getTransactionManager()
getTransactionManager
in interface TransactionManagerFactory
public TransactionManager locate()
public TransactionManager locate(boolean throwExceptionIfUnableToLocate)
throwExceptionIfUnableToLocate
- if true and transaction manager
cannot be located, a RuntimeException is thrown, otherwise null is
returned.protected TransactionManager tryJNDI()
protected TransactionManager usePrivateAPI()
This is a fallback method for non JBossAS use.
Copyright © 2024 JBoss by Red Hat. All rights reserved.