Create a custom request cycle that opens a Session in onBeginRequest and closes it in onEndRequest. Perhaps DataBinder.net has one readily available.
Martijn On Sun, Aug 3, 2008 at 1:11 PM, Martin Makundi <[EMAIL PROTECTED]> wrote: > I am using Hibernate/JPA without Spring. Is there a suitable > interceptor class in Wicket that could be used? > > ** > Martin > > 2008/8/3 Martijn Dashorst <[EMAIL PROTECTED]>: >> Most folks use open session in view filter from Spring (in combination >> with Hibernate). I think they have a similar filter for JDBC template >> (which is highly recommended for normal JDBC actions IMO). >> >> Martijn >> >> On Sun, Aug 3, 2008 at 12:45 PM, Martin Makundi >> <[EMAIL PROTECTED]> wrote: >>> Hi! >>> >>> What is the best place to open/close a data connection in Wicket? >>> >>> I prefer lazy open, but where is the best place to perform the >>> connection/entitymanager.close? Override servlet request? Filter? >>> >>> ** >>> Martin >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >> >> >> >> -- >> Become a Wicket expert, learn from the best: http://wicketinaction.com >> Apache Wicket 1.3.4 is released >> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
