Re: Lazy Open Session In View with AOP

2009-05-07 Thread James Carman
On Thu, May 7, 2009 at 8:53 AM, Christian Helmbold wrote: > > Thanks for your answer, James. > > I try to understand magic things. The missing peace in the puzzle was the > difference between Hibernates openSession() and getCurrentSession(). More > than one transaction within one session seems o

AW: Lazy Open Session In View with AOP

2009-05-07 Thread Christian Helmbold
still open. - Ursprüngliche Mail > Von: James Carman > An: users@wicket.apache.org > Gesendet: Mittwoch, den 6. Mai 2009, 22:13:09 Uhr > Betreff: Re: Lazy Open Session In View with AOP > > If you use the @Transactional annotation (or define your transactions > in the

Re: Lazy Open Session In View with AOP

2009-05-06 Thread James Carman
rs@wicket.apache.org >> Gesendet: Mittwoch, den 6. Mai 2009, 20:34:27 Uhr >> Betreff: Re: Lazy Open Session In View with AOP >> >> You can try using the filter, just set the singleSession property to false. > > > > > -

AW: Lazy Open Session In View with AOP

2009-05-06 Thread Christian Helmbold
gt; An: users@wicket.apache.org > Gesendet: Mittwoch, den 6. Mai 2009, 20:34:27 Uhr > Betreff: Re: Lazy Open Session In View with AOP > > You can try using the filter, just set the singleSession property to false. -

AW: Lazy Open Session In View with AOP

2009-05-06 Thread Christian Helmbold
33:44 Uhr > Betreff: Re: Lazy Open Session In View with AOP > > spring has implemented itw own opensessioninview filter., > i dont' think that you have to crete your own > > Spring has a class like this which you can declare in your w

Re: Lazy Open Session In View with AOP

2009-05-06 Thread James Carman
You can try using the filter, just set the singleSession property to false. On Wed, May 6, 2009 at 2:29 PM, Christian Helmbold wrote: > > Hello, > > I want to use the Open Session In View Pattern with Wicket, but I don't want > to open a Hibernate Session for every request like the ServletFilte

Re: Lazy Open Session In View with AOP

2009-05-06 Thread Carlo Camerino
spring has implemented itw own opensessioninview filter., i dont' think that you have to crete your own Spring has a class like this which you can declare in your web.xml OpenSessionInViewFilter On Thu, May 7, 2009 at 2:29 AM, Christian Helmbold wrote: > > Hello, > > I want to use the Open Sessi

Lazy Open Session In View with AOP

2009-05-06 Thread Christian Helmbold
Hello, I want to use the Open Session In View Pattern with Wicket, but I don't want to open a Hibernate Session for every request like the ServletFilter approach does. I looked at the "lazy-loading Open Session in View" for JPA implementation from Wille Faler. http://faler.wordpress.com/2009/