public class WebSphereTransactionManagerFactory extends AbstractTransactionManagerFactory
TransactionManager
lookup.TM_DEFAULT_METHOD_NAME
Constructor and Description |
---|
WebSphereTransactionManagerFactory() |
Modifier and Type | Method and Description |
---|---|
java.lang.String[][] |
getLookupInfo()
Returns an array of possible JNDI lookup / class names for
the
TransactionManager instance. |
getTransactionManager
public java.lang.String[][] getLookupInfo()
AbstractTransactionManagerFactory
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.
getLookupInfo
in class AbstractTransactionManagerFactory
AbstractTransactionManagerFactory.getLookupInfo()
(C) 2002 - 2005 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.4, 2005-12-30