org.hibernate.transaction

Class WebSphereExtendedJTATransactionLookup

Implemented Interfaces:
TransactionManagerLookup

public class WebSphereExtendedJTATransactionLookup
extends java.lang.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.

Authors:
Gavin King

Nested Class Summary

static class
WebSphereExtendedJTATransactionLookup.TransactionManagerAdapter

Method Summary

Object
getTransactionIdentifier(Transaction transaction)
TransactionManager
getTransactionManager(Properties props)
String
getUserTransactionName()

Method Details

getTransactionIdentifier

public Object getTransactionIdentifier(Transaction transaction)
Specified by:
getTransactionIdentifier in interface TransactionManagerLookup

getTransactionManager

public TransactionManager getTransactionManager(Properties props)
Specified by:
getTransactionManager in interface TransactionManagerLookup

getUserTransactionName

public String getUserTransactionName()
Specified by:
getUserTransactionName in interface TransactionManagerLookup