|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.ojb.broker.transaction.tm.AbstractTransactionManagerFactory
public abstract class AbstractTransactionManagerFactory
Abstract base class implementation of the TransactionManagerFactory interface, all
derived classes have to implement method getLookupInfo().
| Field Summary | |
|---|---|
static java.lang.String |
TM_DEFAULT_METHOD_NAME
Returns "getTransactionManager"; |
| Constructor Summary | |
|---|---|
AbstractTransactionManagerFactory()
|
|
| Method Summary | |
|---|---|
abstract java.lang.String[][] |
getLookupInfo()
Returns an array of possible JNDI lookup / class names for the TransactionManager instance. |
javax.transaction.TransactionManager |
getTransactionManager()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static java.lang.String TM_DEFAULT_METHOD_NAME
| Constructor Detail |
|---|
public AbstractTransactionManagerFactory()
| Method Detail |
|---|
public abstract java.lang.String[][] getLookupInfo()
TransactionManager instance. An array was used
because for different application server versions the
JNDI/class name may change.
Expect an [n][3] string array. Following arguments are available:
{{"JBoss", "java:/TransactionManager", null}};
In JBoss we lookup the TM via JNDI, so we don't need a TM factory class.
{{"Websphere 4", TM_DEFAULT_METHOD_NAME, "com.ibm.ejs.jts.jta.JTSXA"},
{"Websphere 5", TM_DEFAULT_METHOD_NAME, "com.ibm.ejs.jts.jta.TransactionManagerFactory"},
{"Websphere >5", TM_DEFAULT_METHOD_NAME, "com.ibm.ws.Transaction.TransactionManagerFactory"}};
In Websphere we have to use a TM factory class and obtain the TM via a getTransactionManager()
method call. The TM factory class is varied in different versions.
public javax.transaction.TransactionManager getTransactionManager()
throws TransactionManagerFactoryException
getTransactionManager in interface TransactionManagerFactoryTransactionManagerFactoryExceptionTransactionManagerFactory
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||