-->
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: CMT+Hibernate3+WebSphere5.1
PostPosted: Fri Apr 01, 2005 1:51 pm 
Newbie

Joined: Fri Apr 01, 2005 12:41 pm
Posts: 1
Hi,

Hibernate 3.0
IBM WebSphere 5.1

I'm trying to use Transaction API in WebSphere.

The exeption happens in
SessionFactory sessionFactory = new Configuration().configure().buildSessionFactory();

I set this properies in my configuration file:
<hibernate-configuration>
<session-factory>
<property name="connection.datasource">jdbc/XXX</property>
<property name="show_sql">true</property>
<property name="dialect">org.hibernate.dialect.DB2Dialect</property>
<property name="hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
<property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.WebSphereTransactionManagerLookup</property>
</session-factory>
</hibernate-configuration>
and get this error:
Could not obtain WebSphere JTSXA instance

If I change hibernate.transaction.manager_lookup_class to <property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.WebSphereExtendedJTATransactionLookup</property>
I get error:
java.lang.ClassNotFoundException: com.ibm.websphere.jtaextensions.SynchronizationCallback

Can someone help?


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.