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.  [ 3 posts ] 
Author Message
 Post subject: NHibernate SessionInViewModule
PostPosted: Tue Feb 19, 2008 4:20 am 
Newbie

Joined: Tue Feb 19, 2008 4:14 am
Posts: 2
After i had problems with lazy loading, I've read the article on
http://hibernate.org/42.html.

After that i know the problem is that i close the session after each request. I must define units of work and not close the session every time.

I also read about the sessioninview module. This module will solve the problem.

Is there any example / tutorial for this module. I can't find it on the web. I can only find small code-examples, but i don't know how to use it exactly.

Now i found this article: http://www.hibernate.org/43.html
I'm going to read it now. Is it a correct implementation of the sessioninview method?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 22, 2008 12:31 am 
Beginner
Beginner

Joined: Fri Jan 12, 2007 1:08 am
Posts: 41
You can find a good example here: http://www.codeproject.com/KB/architecture/NHibernateBestPractices.aspx


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 22, 2008 3:57 am 
Newbie

Joined: Tue Feb 19, 2008 4:14 am
Posts: 2
Thanks for the reply.
I've solved the problem a bit like the article.
It works now, and when i run the application, the connections to the database are closed after the requests. I think it's solved now.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.