-->
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.  [ 4 posts ] 
Author Message
 Post subject: Websphere TransactionManager
PostPosted: Thu Mar 10, 2005 10:32 pm 
Newbie

Joined: Thu Mar 10, 2005 10:19 pm
Posts: 3
We have an application for which we would like to have appserver independant code.

The appservers used are JBOSS, Websphere 5.0.2, and Websphere 5.1.

We are using BMT and using the Hibernate Transaction API. Everything on JBOSS works fine. However websphere has trouble.

I read the multiple postx and tried several things:

1. On Websphere 5.0.2 using Hibernate 2.1.7 or 2.1.8. I get the message:

JTATransactio E net.sf.hibernate.transaction.JTATransaction Could not find UserTransaction in JNDI
JTATransactio E net.sf.hibernate.transaction.JTATransaction TRAS0014I: The following exception was logged javax.naming.NameNotFoundException: Name "comp/UserTransaction" not found in context "java:".

which has been documented by several users.

2. On using the ExtendedJTATransaction( I don't know if it is supported with Websphere 5.0.x) I get the message:
net.sf.hibernate.TransactionException: could not register synchronization with JTA TransactionManager
net.sf.hibernate.TransactionException: could not register synchronization with JTA TransactionManager.

Any thoughts:
Will Using Hibernate 3.0 solve the problem?
Other option seems using CMT and not using the Hibernate Transaction API. But before I take that step I would like to know if anybody has successfully used the HibernateTransaction APIs on Websphere 5.0.x successfully and if so can give some pointers.


Top
 Profile  
 
 Post subject: Websphere 5.0.2
PostPosted: Mon Mar 14, 2005 1:04 pm 
Newbie

Joined: Thu Mar 10, 2005 10:19 pm
Posts: 3
Let me re-phrase

Has anybody tried using the Hibernate Transaction API with Websphere 5.0.2?

How do you get about the java:Comp/Usertransaction not found problem.

I am going to try and test 5.1 with Hibernate 2.1.8 and using the ExtendedJTA Transaction.

-Manish


Top
 Profile  
 
 Post subject: Hibernate2 Websphere 6.0 configuration
PostPosted: Mon Apr 18, 2005 5:38 am 
Newbie

Joined: Mon Apr 18, 2005 5:31 am
Posts: 3
I have the same problem with Hibernate2 Websphere 6.0:

here are the configuration details:

............
<property name="hibernate.transaction.factory_class">
net.sf.hibernate.transaction.JTATransactionFactory
</property>

<property name="hibernate.transaction.manager_lookup_class">
net.sf.hibernate.transaction.WebSphereExtendedJTATransactionLookup
</property>

<property name="dialect">
net.sf.hibernate.dialect.DB2Dialect
</property>
..........

When I try to begin a transaction I get the same exception:

net.sf.hibernate.TransactionException: could not register synchronization with JTA TransactionManager

any solution?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 18, 2005 7:10 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
WAS 6.0 lookup has been fixed in Hibernate 3.0.1.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.