you should try an existing integration and adapt that if it doesn't fit your
needs.
the ones I know are:
  - Appfuse/Equinox
  - hivetranse (http://hivetranse.sf.net)
  - cognition (http://dev.thelabllc.com/cognition/)
  - honeycomb (http://honeycomb.javaforge.com)

I use honeycomb (mostly because I wrote most of it and I'm too lazy
constantly re-evaluate).

> -----Original Message-----
> From: =?ISO-8859-13?Q?b=EBgantis_debesis?= [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, April 12, 2006 2:21 PM
> To: tapestry-user@jakarta.apache.org
> Subject: tapestry-hibernate integration problem
> 
> 
> Hi everyone,
> 
> I extended a BasePage and added there a getSession method, 
> which opens a
> hibernate session and starts a transaction (if it is not yet 
> opened). Also,
> I commit the transaction and close the session on the overrided
> BasePage.detach() method.
> 
> The problem is that when I save something on page 1 and then 
> redirect to
> page 2, page 2 gets the old information from the database. 
> That is because
> detach method on page1 (where the transaction commit resides) 
> is invoked
> after page2 getInformation() method called.
> 
> So, the question is, is there a method like detach but which 
> is invoked
> before another page starts its activities? Or maybe using 
> transaction per
> request is bad at all?
> 
> Or maybe you know some other easy way to intergrate tapestry 
> and hibernate?
> 
> Thank you in advance,
> Valdemaras
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to