RE: Flow Database stuff ( The new FOM? )

2003-07-15 Thread Reinhard Pötz
From: Christopher Oliver [mailto:[EMAIL PROTECTED] Reinhard Pötz wrote: From: Jeremy Quinn What I do not grok ATM, how does the Hibernate Session automatically get closed at the appropriate time (ie. after the view layer has completed)? IIU the current flow

Re: Flow Database stuff ( The new FOM? )

2003-07-15 Thread Christopher Oliver
Reinhard Pötz wrote: From: Christopher Oliver [mailto:[EMAIL PROTECTED] snip catch (break) { // a continuation is being captured, // code to handle that goes here releaseSession(); } ... and this is called after the pipeline has been processed? How is this

Re: Flow Database stuff ( The new FOM? )

2003-07-15 Thread Jeremy Quinn
On Tuesday, July 15, 2003, at 07:21 AM, Reinhard Pötz wrote: From: Jeremy Quinn What I do not grok ATM, how does the Hibernate Session automatically get closed at the appropriate time (ie. after the view layer has completed)? IIU the current flow implementation correctly you have no chance but

Re: Flow Database stuff ( The new FOM? )

2003-07-15 Thread Joerg Heinicke
IIU(C) = If I understand (correctly) IIRC :) Joerg Jeremy Quinn wrote: Incidentally, someone tell me what 'IIU' stands for, cannot find it anywhere . regards Jeremy -- System Development VIRBUS AG Fon +49(0)341-979-7419 Fax +49(0)341-979-7409 [EMAIL PROTECTED] www.virbus.de

Re: Flow Database stuff ( The new FOM? )

2003-07-15 Thread Jeremy Quinn
On Tuesday, July 15, 2003, at 08:28 AM, Christopher Oliver wrote: Reinhard Pötz wrote: From: Christopher Oliver [mailto:[EMAIL PROTECTED] snip catch (break) { // a continuation is being captured, // code to handle that goes here releaseSession(); } ... and this is

RE: Flow Database stuff ( The new FOM? )

2003-07-15 Thread Reinhard Pötz
From: Jeremy Quinn [mailto:[EMAIL PROTECTED] On Tuesday, July 15, 2003, at 08:28 AM, Christopher Oliver wrote: Reinhard Pötz wrote: From: Christopher Oliver [mailto:[EMAIL PROTECTED] snip catch (break) { // a continuation is being captured, // code to

Re: Flow Database stuff ( The new FOM? )

2003-07-14 Thread Ugo Cei
Reinhard Pötz wrote: To understand this correctly: Does e.g. Hibernate give you this typed object repository? You only have to deal with beans and all the persistence stuff is done for you by magic. No. You still have to open a Session to your database and use its methods to load and store

Re: Flow Database stuff ( The new FOM? )

2003-07-14 Thread Jeremy Quinn
On Sunday, July 13, 2003, at 10:30 AM, Reinhard Pötz wrote: From: Jeremy Quinn [mailto:[EMAIL PROTECTED] By passing a Bean persisted by Hibernate from the flow layer to the view layer, you are implementing SoC by allowing the view layer to decide what is relevant for that view. This aspect not

Re: Flow Database stuff ( The new FOM? )

2003-07-14 Thread Jeremy Quinn
On Sunday, July 13, 2003, at 10:40 AM, Reinhard Pötz wrote: However, once you have triggered the view layer with SendPageAndWait(), control does not return to the flow layer until the Response has been sent and the next Request received, thus loosing you the opportunity to close the Hibernate

RE: Flow Database stuff ( The new FOM? )

2003-07-14 Thread Jonathan Spaeth
Title: RE: Flow Database stuff ( The new FOM? ) The lifecycle for components is defined by avalon. There is a good explanation of the order in which the methods are called during the initialization at avalon's website. http://avalon.apache.org/framework/reference-the-lifecycle.html Jon

Re: Flow Database stuff ( The new FOM? )

2003-07-14 Thread Jeremy Quinn
On Monday, July 14, 2003, at 04:39 PM, Hugo Burm wrote: -Original Message- From: Jeremy Quinn [mailto:[EMAIL PROTECTED] Sent: Monday, July 14, 2003 3:43 PM To: [EMAIL PROTECTED] Subject: Re: Flow Database stuff ( The new FOM? ) On Sunday, July 13, 2003, at 10:40 AM, Reinhard Pötz

RE: Flow Database stuff ( The new FOM? )

2003-07-13 Thread Reinhard Pötz
From: Berin Loritsch Ugo Cei wrote: Reinhard Pötz wrote: As I'm curious I have a technical question: What's the difference if I read the necessary data in the flow or some milliseconds latter in the view layer? What do I gain? You gain a cleaner separation of concerns. I

RE: Flow Database stuff ( The new FOM? )

2003-07-13 Thread Reinhard Pötz
From: Berin Loritsch Ugo Cei wrote: Reinhard Pötz wrote: As I'm curious I have a technical question: What's the difference if I read the necessary data in the flow or some milliseconds latter in the view layer? What do I gain? You gain a cleaner separation of concerns. I

Re: Flow Database stuff ( The new FOM? )

2003-07-11 Thread Jeremy Quinn
On Thursday, July 10, 2003, at 09:04 AM, Reinhard Pötz wrote: IMO no. I would use Object/Relational mapping tools like OJB http://db.apache.org/ojb/ or Hibernate (http://hibernate.bluemars.net). Is there a wiki somewhere on this type of thing? http://wiki.cocoondev.org/

RE: Flow Database stuff ( The new FOM? )

2003-07-11 Thread Reinhard Pötz
From: Jeremy Quinn On Thursday, July 10, 2003, at 09:04 AM, Reinhard Pötz wrote: IMO no. I would use Object/Relational mapping tools like OJB http://db.apache.org/ojb/ or Hibernate (http://hibernate.bluemars.net). Is there a wiki somewhere on this type of thing?

RE: Flow Database stuff ( The new FOM? )

2003-07-11 Thread Reinhard Pötz
From: Jeremy Quinn The problem arises when you wish to use a (brilliant) feature of Hibernate called 'lazy-initialisation', whereby access to the DB is only made when you actually ask for Bean Properties. This is particularly useful when you have large 'graphs' of related Beans, for

Re: Flow Database stuff ( The new FOM? )

2003-07-11 Thread Christopher Oliver
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

RE: Flow Database stuff ( The new FOM? )

2003-07-11 Thread Hugo Burm
Message- From: Reinhard Pötz [mailto:[EMAIL PROTECTED] Sent: Friday, July 11, 2003 6:46 PM To: [EMAIL PROTECTED] Subject: RE: Flow Database stuff ( The new FOM? ) It's a pity that Hibernate is under LGPL - this would be a great example ... Have the Hibernate people ever been asked if they would

Re: Flow Database stuff ( The new FOM? )

2003-07-11 Thread Christopher Oliver
to spend time merging it with XMLForm. 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

RE: Flow Database stuff ( The new FOM? )

2003-07-11 Thread Reinhard Pötz
From: Hugo Burm 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

Re: Flow Database stuff ( The new FOM? )

2003-07-10 Thread JD Daniels
be :) JD - Original Message - From: Reinhard Pötz [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 10, 2003 12:04 AM Subject: RE: Flow Database stuff ( The new FOM? ) From: JD Daniels ok, I am confused on what is happening to the Datbase.js file. but instead of a request

RE: Flow Database stuff ( The new FOM? )

2003-07-10 Thread Reinhard Pötz
From: JD Daniels Thanks! I think I will go have a look at Hibernate .. that looks helpful While I wait for FOM to settle down... stay tuned ... the vote is already running! Cheers, Reinhard