-->
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.  [ 2 posts ] 
Author Message
 Post subject: nHibernate leave sleeping process on MsSql
PostPosted: Thu Jan 31, 2008 7:16 am 
Newbie

Joined: Mon Aug 13, 2007 2:31 am
Posts: 3
Hi,

I need help, in my application I open one session with nhibernate and use this session for all queries, when my application finish on ms sql server stays sleeping process. After 10 lunches of my application there are 10 sleeping process on server. What should I do on end of application or on end of each query for not leaving sleep process on server??

Thanks for all help

Greetings
Pawel


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 01, 2008 5:42 pm 
Regular
Regular

Joined: Wed Aug 15, 2007 7:37 am
Posts: 73
Are you calling Session.Dispose() before you exit? The connections will probably die eventually when the server times them out, but calling Dispose (or Close) should explicitly close them.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

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.