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: Hibernate 3.0.5 connection isolation and Websphere
PostPosted: Fri Oct 07, 2005 3:07 pm 
Beginner
Beginner

Joined: Sun Dec 28, 2003 3:29 pm
Posts: 22
Location: Massachusetts USA
Hello,

Is anyone using Websphere and a datasource without database transactions? This is a typical situation with legacy iSeries database tables.

On an iSeries system there is often a need to perform database updates without using transactions.
The Hibernate property
<property name="connection.isolation">0</property>
appears to specify that database transaction isolation is "none" and that transactions will not be used. However, it appears that this setting is ignored if a connection pool/data source is used, presumeably because the connection pool/data source will control the setting. Websphere 5.1 does not permit transaction isolation to be configured in the connection pool/data source setup, apparently leaving it to the application. The only way we could get this to work, that is, to not use transactions was to execute in Java code connection().setTransactionIsolation(Connection.TRANSACTION_NONE) each time a session is created. Is this OK?

-- Peter


Hibernate version: 3.0.5
Websphere version: 5.1.2


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.