Top Description Constructors Methods
org.hibernate.transaction

public abstract Class JNDITransactionManagerLookup

extends Object
implements TransactionManagerLookup
Class Inheritance
All Implemented Interfaces
org.hibernate.transaction.TransactionManagerLookup
Known Direct Subclasses
org.hibernate.transaction.JRun4TransactionManagerLookup, org.hibernate.transaction.OC4JTransactionManagerLookup, org.hibernate.transaction.OrionTransactionManagerLookup, org.hibernate.transaction.ResinTransactionManagerLookup, org.hibernate.transaction.SunONETransactionManagerLookup, org.hibernate.transaction.WeblogicTransactionManagerLookup, org.hibernate.transaction.BESTransactionManagerLookup, org.hibernate.transaction.JBossTransactionManagerLookup
Imports
java.util.Properties, javax.naming.NamingException, javax.transaction.TransactionManager, .Transaction, org.hibernate.HibernateException, org.hibernate.util.NamingHelper

Template implementation of TransactionManagerLookup where the underlying TransactionManager is available via JNDI lookup at the specified location - getName.
Author
Gavin King

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected abstract String

Returns:

The TransactionManager JNDI namespace
getName
()

Get the JNDI namespace under wich we can locate the TransactionManager.

public Object
getTransactionIdentifier(Transaction
The transaction to be identified.
transaction
)

Implements org.hibernate.transaction.TransactionManagerLookup.getTransactionIdentifier.

Determine an identifier for the given transaction appropriate for use in caching/lookup usages.
public TransactionManager
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

JNDITransactionManagerLookupback to summary
public JNDITransactionManagerLookup()

Method Detail

getNameback to summary
protected abstract String getName()

Get the JNDI namespace under wich we can locate the TransactionManager.

Returns:String

The TransactionManager JNDI namespace

getTransactionIdentifierback to summary
public Object getTransactionIdentifier(Transaction transaction)

Implements org.hibernate.transaction.TransactionManagerLookup.getTransactionIdentifier.

Doc from org.hibernate.transaction.TransactionManagerLookup.getTransactionIdentifier.

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:Transaction

The transaction to be identified.

Returns:Object

An appropropriate identifier

getTransactionManagerback to summary
public TransactionManager getTransactionManager(Properties props) throws HibernateException

Implements org.hibernate.transaction.TransactionManagerLookup.getTransactionManager.

Doc from org.hibernate.transaction.TransactionManagerLookup.getTransactionManager.

Obtain the JTA TransactionManager.

Parameters
props:Properties

The configuration properties.

Returns:TransactionManager

The JTA TransactionManager.

Exceptions
HibernateException:
Indicates problem locating TransactionManager.