-->
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: Sessions with different ConnectionReleaseMode's
PostPosted: Tue Nov 13, 2007 3:39 am 
Expert
Expert

Joined: Thu Jul 05, 2007 9:38 am
Posts: 287
Hibernate version: core 3.2.5ga annotation 3.3

Problems with Session and transaction handling?
Indeed

Read this: http://hibernate.org/42.html; Thats where I come from :)

I'd like to have two kinds of sessions with "connection release mode"s:
One kind should have the value set to
after_transaction
this is used for really transactional stuff (updates ..)
and one with after_statement which does only selects.

The problem is that the ConnectionReleaseMode is set in the configuration of the SessionFactory. So there is only one ConnectionReleaseMode for all Sessions.

Is there a way around this?


Additional Background:
I'm still fighting problems with hibernate in fat clients. In order to limit the number of jdbc connection with a session-per-dialog aproach I'd like read only dialogs to use a jdbc session only for very limited time

regards
J.S


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.