cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hugo Burm" <>
Subject RE: Flow Database stuff ( The new FOM? )
Date Fri, 11 Jul 2003 18:06:57 GMT

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.


-----Original Message-----
From: Reinhard Pötz []
Sent: Friday, July 11, 2003 4:14 PM
Subject: RE: Flow Database stuff ( The new FOM? )

 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 :-)




View raw message