Return-Path: Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 81735 invoked by uid 500); 14 Jul 2003 15:39:13 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@cocoon.apache.org Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 81684 invoked from network); 14 Jul 2003 15:39:13 -0000 Received: from smtpzilla1.xs4all.nl (194.109.127.137) by daedalus.apache.org with SMTP; 14 Jul 2003 15:39:13 -0000 Received: from pt (a213-84-18-216.adsl.xs4all.nl [213.84.18.216]) by smtpzilla1.xs4all.nl (8.12.9/8.12.9) with SMTP id h6EFdEoj042404 for ; Mon, 14 Jul 2003 17:39:15 +0200 (CEST) From: "Hugo Burm" To: Subject: RE: Flow Database stuff ( The new FOM? ) Date: Mon, 14 Jul 2003 17:39:12 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <248108C6-B601-11D7-8E60-0003935AD2EE@media.demon.co.uk> X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N > -----Original Message----- > From: Jeremy Quinn [mailto:jeremy@media.demon.co.uk] > Sent: Monday, July 14, 2003 3:43 PM > To: dev@cocoon.apache.org > Subject: Re: Flow Database stuff ( The new FOM? ) > > > > 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 Session from the Flow layer before the > >> Response is > >> sent. > > > > Chris' experimental implementation of cocoon.getComponent() should > > solve > > this problem. > > > > > > I am not very confidant with the lifecycle of Cocoon/Avalon components, > would someone be kind enough to recommend which methods I should > ideally write to implement a (Hibernate Factory) component, and at > which stage in FlowScript processing they get called? > > TIA > > regards Jeremy > > 1) There is an Avalon Hibernate Factory in the Hibernate_ext contributed package (see the Hibernate project at Sourceforge), and one in the Hibernate examples on the Wiki. 2) You definitely need the paper: http://avalon.apache.org/developing/developing-with-avalon.html Download the printer-friendly version, save it to disk, load it in an editor, remove all <[CDATA[ opening and closing tags, reload it in your browser, and suddenly a lot of code examples will appear. This problem was posted on the Avalon dev list about three weeks ago. Hugo