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.
@author Gavin King
@author
|
@Override
protected TransactionManagerLookup findDelegate() {
ClassLoader classLoader = ClassLoaderLocator.fromContext();
if (ClassUtils.isPresent(WEBSPHERE_CLASS, classLoader))
return new WebSphereExtendedJTATransactionLookup();
else if (ClassUtils.isPresent(BTM_CLASS, classLoader))
return new BTMTransactionManagerLookup();
else
return new SunONETransactionManagerLookup();
}
|
Related Classes of org.hibernate.transaction.WebSphereExtendedJTATransactionLookup$TransactionManagerAdapter
Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact
coftware#gmail.com.