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?
|
|