|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hibernate.transaction.WebSphereExtendedJTATransactionLookup
public class WebSphereExtendedJTATransactionLookup
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.
Nested Class Summary | |
---|---|
static class |
WebSphereExtendedJTATransactionLookup.TransactionManagerAdapter
|
Constructor Summary | |
---|---|
WebSphereExtendedJTATransactionLookup()
|
Method Summary | |
---|---|
java.lang.Object |
getTransactionIdentifier(javax.transaction.Transaction transaction)
Determine an identifier for the given transaction appropriate for use in caching/lookup usages. |
javax.transaction.TransactionManager |
getTransactionManager(java.util.Properties props)
Obtain the JTA TransactionManager . |
java.lang.String |
getUserTransactionName()
Return the JNDI namespace of the JTA UserTransaction for this platform or null;
optional operation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WebSphereExtendedJTATransactionLookup()
Method Detail |
---|
public javax.transaction.TransactionManager getTransactionManager(java.util.Properties props)
TransactionManager
.
getTransactionManager
in interface TransactionManagerLookup
props
- The configuration properties.
TransactionManager
.public java.lang.String getUserTransactionName()
UserTransaction
for this platform or null;
optional operation.
getUserTransactionName
in interface TransactionManagerLookup
UserTransaction
for this platform.public java.lang.Object getTransactionIdentifier(javax.transaction.Transaction transaction)
getTransactionIdentifier
in interface TransactionManagerLookup
transaction
- The transaction to be identified.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |