Re: Struts 2 hibernate session-per-request

2008-06-17 Thread Márcio Gurgel
I'm gonna try your sugestions and post the result. Thanks a lot! Márcio Gurgel 2008/6/17 Antonio Petrelli <[EMAIL PROTECTED]>: > 2008/6/17 Márcio Gurgel <[EMAIL PROTECTED]>: > > Does anyone knows how to implement a session-per-request in Struts 2? > > If you mean a Hibernate session, you have t

Re: Struts 2 hibernate session-per-request

2008-06-17 Thread Antonio Petrelli
2008/6/17 Márcio Gurgel <[EMAIL PROTECTED]>: > Does anyone knows how to implement a session-per-request in Struts 2? If you mean a Hibernate session, you have to implement the "Open Session In View" pattern, for example using a filter. http://www.hibernate.org/43.html If you are using Spring, the

Re: Struts 2 hibernate session-per-request

2008-06-17 Thread Al Sutton
I think he's trying to do whats at http://cwiki.apache.org/S2WIKI/struts-2-spring-2-jpa-ajax.html without using the great google first :). Al. Laurie Harper wrote: Márcio Gurgel wrote: Hi Everyone, Some time ago I asked you about a problem with old objects in session. I noted that my applic

Re: Struts 2 hibernate session-per-request

2008-06-17 Thread Laurie Harper
Márcio Gurgel wrote: Hi Everyone, Some time ago I asked you about a problem with old objects in session. I noted that my application is using diferent sessions to recovery a data from db. Some times the application shows the corect result, other shows old results (with old session). I guess tha

Struts 2 hibernate session-per-request

2008-06-16 Thread Márcio Gurgel
Hi Everyone, Some time ago I asked you about a problem with old objects in session. I noted that my application is using diferent sessions to recovery a data from db. Some times the application shows the corect result, other shows old results (with old session). I guess that if I use session-per-