org.hibernate.transaction

Class JNDITransactionManagerLookup

Implemented Interfaces:
TransactionManagerLookup
Known Direct Subclasses:
BESTransactionManagerLookup, JBossTransactionManagerLookup, JRun4TransactionManagerLookup, OC4JTransactionManagerLookup, OrionTransactionManagerLookup, ResinTransactionManagerLookup, SunONETransactionManagerLookup, WeblogicTransactionManagerLookup

public abstract class JNDITransactionManagerLookup
extends java.lang.Object
implements TransactionManagerLookup

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

Method Summary

protected abstract String
getName()
Get the JNDI namespace under wich we can locate the TransactionManager.
Object
getTransactionIdentifier(Transaction transaction)
TransactionManager
getTransactionManager(Properties props)

Method Details

getName

protected abstract String getName()
Get the JNDI namespace under wich we can locate the TransactionManager.
Returns:
The TransactionManager JNDI namespace

getTransactionIdentifier

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

getTransactionManager

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