-->
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.  [ 2 posts ] 
Author Message
 Post subject: WebSphere 5.1 and JTA transactions
PostPosted: Tue Jun 21, 2005 11:21 am 
Newbie

Joined: Tue Jun 21, 2005 11:14 am
Posts: 1
Has anyone gotten JTA transactions to successfully work with Websphere 5.1?

I'm using Hibernate 3.0.5, with WebSphere 5.1.1.3. In my hibernate.cfg.xml file, I have the following:

<property name="connection.datasource">jdbc/DS</property>
<property name="transaction.factory_class">
<property name="transaction.manager_lookup_class">org.hibernate.transaction.WebSphereExtendedJTATransactionLookup</property>

When I try to do something that involves a transaction, I get the following error:

javax.naming.NameNotFoundException: Name comp/websphere not found in context "java:".

Based on the JIRA issue, I'd think this should work (http://opensource.atlassian.com/project ... se/HHH-198) --


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 21, 2005 3:26 pm 
Regular
Regular

Joined: Thu Apr 21, 2005 9:05 am
Posts: 50
Location: Boston, U.S
I got this error when i specified java:comp/ in connection.datasource, but i did not get it when i specificed the value as jdbc/DS.

Did u specify the following tag ?

<property name="hibernate.transaction.factory_class">org.hibernate.transaction.CMTTransactionFactory</property>

Did u try to handle transaction anywhere in your code??
Moreover you should use session.getCurrentSession in case of a CMT.

Paste the piece of code from which the error is thrown.


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

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.