2009/2/25 Paul Benedict <pbened...@apache.org>: > Does anyone have a good solution for objects stored in an HTTP Session > that should be reattached per request? For example, like the > authenticated "user" object stored in the HTTP Session. > > I had a servlet filter written that attached the entity per request, > but a double-click from the user showed the futility of that approach. > You can't have one entity attached to two sessions :-)
The easier approach in Open Session In View: http://www.hibernate.org/43.html Spring has already an implementation: http://static.springframework.org/spring/docs/2.5.x/api/org/springframework/orm/hibernate3/support/OpenSessionInViewFilter.html HTH Antonio --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org