org.apache.ojb.broker.transaction.tm
Class WeblogicTransactionManagerFactory

java.lang.Object
  extended by org.apache.ojb.broker.transaction.tm.AbstractTransactionManagerFactory
      extended by org.apache.ojb.broker.transaction.tm.WeblogicTransactionManagerFactory
All Implemented Interfaces:
TransactionManagerFactory

public class WeblogicTransactionManagerFactory
extends AbstractTransactionManagerFactory

Weblogic TransactionManager lookup.

Version:
$Id: WeblogicTransactionManagerFactory.java,v 1.1 2007-08-24 22:17:41 ewestfal Exp $
Author:
matthew.baird

Field Summary
 
Fields inherited from class org.apache.ojb.broker.transaction.tm.AbstractTransactionManagerFactory
TM_DEFAULT_METHOD_NAME
 
Constructor Summary
WeblogicTransactionManagerFactory()
           
 
Method Summary
 String[][] getLookupInfo()
          Returns an array of possible JNDI lookup / class names for the TransactionManager instance.
 
Methods inherited from class org.apache.ojb.broker.transaction.tm.AbstractTransactionManagerFactory
getTransactionManager, instantiateClass, jndiLookup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WeblogicTransactionManagerFactory

public WeblogicTransactionManagerFactory()
Method Detail

getLookupInfo

public String[][] getLookupInfo()
Description copied from class: AbstractTransactionManagerFactory
Returns an array of possible JNDI lookup / class names for the 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:

Example:

{{"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.

Specified by:
getLookupInfo in class AbstractTransactionManagerFactory
See Also:
AbstractTransactionManagerFactory.getLookupInfo()


Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.