-->
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: Connection Closing stratgery While using Current Session.
PostPosted: Wed Oct 29, 2008 12:11 pm 
Newbie

Joined: Wed Oct 29, 2008 12:00 pm
Posts: 1
Hi ,
Can some one throw a light on this . We are using Hibernate factory for all transaction in our application. We had set below in Hibernate config file. My question we are trying get connection from current session and call a procedure using a statemen. DO I need to close the connection after this processing or since I am taking form currentSession hibernate handles. Th

<property name="hibernate.connection.release_mode">auto</property>

Session currentSession = SESSION_FACTORY.getCurrentSession();
stmt = currentSession .connection().prepareCall(SP_DBASCAPR);
stmt.setLong(1,assocId);
stmt.execute();

_________________
Kartheck


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.