-->
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: general question about Open Session in View pattern
PostPosted: Mon Jun 06, 2005 3:12 pm 
Newbie

Joined: Mon Jun 06, 2005 2:41 pm
Posts: 1
Hello;

I'm developing a new module for an existing struts application that doesn't (currently) use Hibernate, but my module is required to do so.

I understand that a good way to handle the LazyInit... problem is to employ the above OSIV pattern, and handle session mgmt with a Servlet Filter.

All the examples I have found show to configure the webapp by associating the servlet filter with the RequestProcessor. In my case; this would mean extra calls to Hibernate for those modules that don't employ it.

I could have the RequestProcessor filter each request to see which are from my module, and manage sessions that way... is there a better way? Thanks for your time.

-Bill


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 06, 2005 3:22 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
There is no cost in calling Hibernate if it does nothing.


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.