public class

WebSphereTransactionManagerLookup

extends Object
implements TransactionManagerLookup
java.lang.Object
   ↳ org.hibernate.transaction.WebSphereTransactionManagerLookup

Class Overview

TransactionManagerLookup strategy for WebSphere (versions 4, 5.0 and 5.1)

Summary

Public Constructors
WebSphereTransactionManagerLookup()
Constructs a new WebSphereTransactionManagerLookup.
Public Methods
Object getTransactionIdentifier(Transaction transaction)
Determine an identifier for the given transaction appropriate for use in caching/lookup usages.
TransactionManager getTransactionManager(Properties props)
Obtain the JTA TransactionManager.
String getUserTransactionName()
Return the JNDI namespace of the JTA javax.transaction.UserTransaction for this platform or null; optional operation.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.hibernate.transaction.TransactionManagerLookup

Public Constructors

public WebSphereTransactionManagerLookup ()

Constructs a new WebSphereTransactionManagerLookup.

Public Methods

public Object getTransactionIdentifier (Transaction transaction)

Determine an identifier for the given transaction appropriate for use in caching/lookup usages.

Generally speaking the transaction itself will be returned here. This method was added specifically for use in WebSphere and other unfriendly JEE containers (although WebSphere is still the only known such brain-dead, sales-driven impl).

Parameters
transaction The transaction to be identified.
Returns
  • An appropropriate identifier

public TransactionManager getTransactionManager (Properties props)

Obtain the JTA TransactionManager.

Parameters
props The configuration properties.
Returns
  • The JTA TransactionManager.

public String getUserTransactionName ()

Return the JNDI namespace of the JTA javax.transaction.UserTransaction for this platform or null; optional operation.

Returns
  • The JNDI namespace where we can locate the javax.transaction.UserTransaction for this platform.