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
|