Hi Chris,

I'll give it a try this weekend.

To understand the changes: In a function with continuations I
call a component once and if sendPageAndWait() is called the
component is released automatically. If the continuation
created is called later the variable with a pointer to a
component will be reassigned with a newly created component of
the same type?

I know this sounds very disbelieving but I wrote my mail only
a few hours ago and you come up with a solution ... ;-)


Another question: The JXTemplate* stuff and the petstore are
moved to the main trunk or a block. Do you plan to move the 
JXForms into the XMLForms package? (I want to avoid duplicate 
work because could have time this weekend doing it but can't 
promise it now.) So if you have time don't hesitate ;-)

Cheers,
Reinhard

> -----Original Message-----
> From: Christopher Oliver [mailto:[EMAIL PROTECTED] 
> Sent: Friday, July 11, 2003 6:56 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Flow Database stuff ( The new FOM? )
> 
> 
> Will the attached work?
> 
> Reinhard Pötz wrote:
> 
> >
> >
> ><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
> >
> >
> >  
> >
> 
> 

Reply via email to