HI
We are trying to get TransactionManager using Hibernate api in Websphere 5.0.2, since Hibernate is part of our application. We are using the following code:
Properties props = new Properties();
FileInputStream fis = new FileInputStream("C:/Websphere/Transaction.properties");
props.load(fis);
net.sf.hibernate.transaction.WebSphereTransactionManagerLookup obj = new WebSphereTransactionManagerLookup();
javax.transaction.TransactionManager tm = obj.getTransactionManager(props);
We are able to get WebSphereTransactionManagerLookup instance. While calling getTransactionManager method, Exception net.sf.hibernate.HibernateException: Could not obtain WebSphere JTSXA instance: getTransactionManager is thrown.
If anybody knows the solution, please do post it. It'll be well enough, if the appropriate properties file contents can be furnished along with this.
Thanks,
A.Chandramohan
|