-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Getting TransactionManager using Hibernate api in Websphere
PostPosted: Wed Dec 03, 2003 10:03 am 
Newbie

Joined: Wed Dec 03, 2003 9:59 am
Posts: 3
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.