Re: Handle Hibernate transaction in wicket

2008-02-20 Thread James Carman
Actually, Spring lets you (more importantly them) not worry about the transaction stuff at all. The person (you, perhaps) who is wiring things together can add in the transaction stuff in the XML file. On 2/20/08, Sébastien Piller <[EMAIL PROTECTED]> wrote: > Yes, I read a bit about Spring some t

Re: Handle Hibernate transaction in wicket

2008-02-20 Thread Sébastien Piller
Yes, I read a bit about Spring some time ago, but atm I'm working on a project that will be released soon. I can't afford to rewrite half my code on the lasts weeks ;) Next time, I'll take some time to getting started with it. I'm sure it's worth, that's what I read all the day. But I must con

Re: Handle Hibernate transaction in wicket

2008-02-20 Thread James Carman
eSession on the onAfterRender method, and every part of my > code that use the DB are properly surrounded with transactions... I don't > have any problem, and even if it is a bit slower than a best practice, it's > enough for me ;) > -- > View this message in context: >

Re: Handle Hibernate transaction in wicket

2008-02-20 Thread Pills
e onAfterRender method, and every part of my code that use the DB are properly surrounded with transactions... I don't have any problem, and even if it is a bit slower than a best practice, it's enough for me ;) -- View this message in context: http://www.nabble.com/Handle-Hibern

Re: Handle Hibernate transaction in wicket

2008-02-20 Thread Nino Saturnino Martinez Vazquez Wael
see blog tutorial on howto set this up with wicket...:) Martijn Lindhout wrote: I use Spring's OpenSessionInViewFilter 2008/2/19, Andrew Williams <[EMAIL PROTECTED]>: I use onBeginRequest and onEndRequest from the WebRequestCycle, seems to work well. Andy On 13 Feb 2008, at 07:59, Sébasti

Re: Handle Hibernate transaction in wicket

2008-02-20 Thread James Carman
It sounds like you're looking for "transaction-per-request" and not "session-per-request." The "session-per-request" part is easy. Just use the OpenSessionInViewFilter from Spring (as stated by someone else on this thread). The OpenSessionInViewFilter doesn't begin a transaction for you automati

Re: Handle Hibernate transaction in wicket

2008-02-20 Thread Martijn Lindhout
I use Spring's OpenSessionInViewFilter 2008/2/19, Andrew Williams <[EMAIL PROTECTED]>: > > I use onBeginRequest and onEndRequest from the WebRequestCycle, seems > to work well. > > Andy > > On 13 Feb 2008, at 07:59, Sébastien Piller wrote: > > > Hello, > > > > I'm searching for a best practice to

Re: Handle Hibernate transaction in wicket

2008-02-19 Thread Andrew Williams
I use onBeginRequest and onEndRequest from the WebRequestCycle, seems to work well. Andy On 13 Feb 2008, at 07:59, Sébastien Piller wrote: Hello, I'm searching for a best practice to integrate some hibernate transaction with Wicket. I'd like to implement the "session-per- request" that i

Re: Handle Hibernate transaction in wicket

2008-02-13 Thread Igor Vaynberg
see databinder.net -igor On Feb 12, 2008 11:59 PM, Sébastien Piller <[EMAIL PROTECTED]> wrote: > Hello, > > I'm searching for a best practice to integrate some hibernate > transaction with Wicket. I'd like to implement the "session-per-request" > that is described here > http://www.hibernate.org

Handle Hibernate transaction in wicket

2008-02-13 Thread Sébastien Piller
Hello, I'm searching for a best practice to integrate some hibernate transaction with Wicket. I'd like to implement the "session-per-request" that is described here http://www.hibernate.org/hib_docs/v3/reference/fr/html_single/#tutorial-firstapp-workingpersistence I think I can commit the tr