Hello, This <dreammode> is almost a reality. See the Wiki pages on Hibernate.
Main spoilers are: - A user can quit in the middle of your function xxx (e.g. by closing the browser). This will generate a zombie Hibernate session. Jeremy and Ugo are using a workaround based on an newer version of the servlet api. - Hibernate is LGPL. This is a pain in the ass. I cannot provide a ready-to-use Hibernate cocoon block because of LGPL versus Apache license issues. Hugo -----Original Message----- From: Reinhard Pötz [mailto:[EMAIL PROTECTED] Sent: Friday, July 11, 2003 4:14 PM To: [EMAIL PROTECTED] Subject: RE: Flow Database stuff ( The new FOM? ) <dream-mode> I would like to use this Avalon component mentioned above and the Flow interpreter takes care of releasing (and providing) stateful components within my scripts. So I would have to lookup the Hibernate Session at the beginning(2) and until I finally release(8) it I don't have to take care for it. 1 function xxx() { 2 var hibS = cocoon.getComponent( "hibernateSession" ); 3 var custBean = hibS.blablabla // get your beans with hibernate 4 sendPageAndWait( "bla", {customer : custBean} ); 5 // do something (updates, reads, whatever) 6 var someDifferentBean = hibS.blalbalba 7 sendPageAndWait( "bla", {diff : someDifferentBean } ); 8 sendPageAndRelease( "thankYou", {} ); 9 } This would be IMO a very elegant way and IIU the recent discussion correctly possible from a technical point of view. Maybe Chris can comment on this :-) Thoughts? </dream-mode> Cheers, Reinhard