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: Using WebSphere Data Source with Hibernate
PostPosted: Tue Mar 07, 2006 12:15 pm 
Newbie

Joined: Tue Mar 07, 2006 12:00 pm
Posts: 1
We use Hibernate 3, WebSphere 6 and Oracle 9i. Initailly we did not use WebSphere data source and everything worked just great (we specified database connection info in hibernate.config.xml). Now we are trying to use WebSphere data source. We were able to retrieve data, but when we are doing transaction (update, delete, insert), we got an error.

Here is part of the script in hibernate.config.xml file we have:
<property name="dialect">org.hibernate.dialect.Oracle9Dialect</property>
<property name="connection.datasource">jdbc/our_app</property>
<property name="transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
<property name="transaction.manager_lookup_class">org.hibernate.transaction.WebSphereTransactionManagerLookup</property>
<property name="jta.UserTransaction">java:comp/UserTransaction</property>

Also our session beans have <transaction-type>Bean</transaction-type>

Could somebody let us know how we can handle this issue.
Thanks a lot


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.