public class

LocalTransactionManagerLookup

extends Object
java.lang.Object
   ↳ org.springframework.orm.hibernate3.LocalTransactionManagerLookup

Class Overview

Implementation of Hibernate's TransactionManagerLookup interface that returns a Spring-managed JTA TransactionManager, determined by LocalSessionFactoryBean's "jtaTransactionManager" property.

The main advantage of this TransactionManagerLookup is that it avoids double configuration of JTA specifics. A single TransactionManager bean can be used for both JtaTransactionManager and LocalSessionFactoryBean, with no JTA setup in Hibernate configuration.

Alternatively, use Hibernate's own TransactionManagerLookup implementations: Spring's JtaTransactionManager only requires a TransactionManager for suspending and resuming transactions, so you might not need to apply such special Spring configuration at all.

Summary

Public Constructors
LocalTransactionManagerLookup()
Public Methods
Object getTransactionIdentifier(Transaction transaction)
TransactionManager getTransactionManager(Properties props)
String getUserTransactionName()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public LocalTransactionManagerLookup ()

Public Methods

public Object getTransactionIdentifier (Transaction transaction)

public TransactionManager getTransactionManager (Properties props)

public String getUserTransactionName ()