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: ASP + NHibernate Session
PostPosted: Wed Oct 21, 2009 9:50 am 
Newbie

Joined: Fri Sep 25, 2009 8:36 am
Posts: 9
Hey,

Is there any best practise when it comes to doing alot of NHibernate based activities with ASP?

Currently as im prototyping i have a static class that just creates an NHibernate session the first time its called on a page then re-uses it until the page is destroyed, although this sounds extremely inefficient going forward. Although i cant think of a better way round it unless i can bung it in some sort of ASP wide data area and put some locks around it to keep it thread safe...

Any advice on this area would be great... its not going to be a massive system im working on but it would probably have lots of page hits quite frequently...


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.