Class WebSphereExtendedJTATransactionLookup

  extended byorg.hibernate.transaction.WebSphereExtendedJTATransactionLookup
All Implemented Interfaces:

public class WebSphereExtendedJTATransactionLookup
extends Object
implements TransactionManagerLookup

TransactionManagerLookup implementation intended for use with WebSphere Application Server (WAS).

WAS, unlike every other app server on the planet, does not allow direct access to the JTS TransactionManager. Instead, for common transaction- related tasks users must utilize a proprietary API known as ExtendedJTATransaction.

Even more unfortunate, the exact TransactionManagerLookup to use inside of WAS is highly dependent upon (1) WAS version as well as (2) the WAS container in which Hibernate will be utilized.

WebSphereExtendedJTATransactionLookup is reported to work on WAS version 6 in any of the standard J2EE/JEE component containers.

Gavin King,
Nested Class Summary
static class WebSphereExtendedJTATransactionLookup.TransactionManagerAdapter
Constructor Summary
Method Summary
 TransactionManager getTransactionManager(Properties props)
          Obtain the JTA TransactionManager
 String getUserTransactionName()
          Return the JNDI name of the JTA UserTransaction or null (optional operation).
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public WebSphereExtendedJTATransactionLookup()
Method Detail


public TransactionManager getTransactionManager(Properties props)
Description copied from interface: TransactionManagerLookup
Obtain the JTA TransactionManager

Specified by:
getTransactionManager in interface TransactionManagerLookup


public String getUserTransactionName()
Description copied from interface: TransactionManagerLookup
Return the JNDI name of the JTA UserTransaction or null (optional operation).

Specified by:
getUserTransactionName in interface TransactionManagerLookup