-->
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.connection.isolation ignored with connection pool
PostPosted: Tue Jun 26, 2007 8:57 am 
Newbie

Joined: Thu Nov 11, 2004 2:28 pm
Posts: 4
Hi all,

I'm using Hibernate 3.01. We are migrating to SQL Server 2005 and would like to use the SNAPSHOT isolation level.

Using hibernate.connection.isolation and hibernate.connection.url, it works great (tested with DataDirect and jTDS drivers - head revision as per 15.06.07)

However, if I use hibernate.connection.isolation and hibernate.connection.datasource, the isolation level is ignored.

I use Weblogic 8.1 sp6 connection pools.

Have you experienced this behaviour ? I am probably missing something here ... Any help more than welcome !

failing hibernate.properties
hibernate.dialect=org.hibernate.dialect.SQLServerDialect
hibernate.connection.datasource=com.sitel.ciclop.db.opRecettage
hibernate.max_fetch_depth=0
hibernate.cache.provider_class=org.hibernate.cache.EhCacheProvider
hibernate.show_sql=false
hibernate.connection.isolation = 8 # serializable - SNAPSHOT for DD Driver
hibernate.max_fetch_depth=0

working hibernate.properties
hibernate.connection.url=jdbc:datadirect:sqlserver://server\\\instance;databaseName=db;snapshotserializable=true
hibernate.connection.username=user
hibernate.connection.password=pwd
hibernate.connection.driver_class=com.ddtek.jdbc.sqlserver.SQLServerDriver
hibernate.dialect=org.hibernate.dialect.SQLServerDialect
hibernate.show_sql=false
hibernate.connection.isolation = 8 # serializable - SNAPSHOT for DD Driver
hibernate.cache.provider_class=org.hibernate.cache.EhCacheProvider
hibernate.max_fetch_depth=0

Kind regards,
Regis


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.