Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 65031 invoked by uid 500); 28 Mar 2001 18:10:34 -0000 Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-users@xml.apache.org Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 65006 invoked from network); 28 Mar 2001 18:10:34 -0000 X-Originating-IP: [148.88.0.10] From: "Robin Green" To: cocoon-users@xml.apache.org Cc: gierer@rittershaus.de Subject: Re: Producer destructor Date: Wed, 28 Mar 2001 19:10:10 +0100 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 28 Mar 2001 18:10:10.0302 (UTC) FILETIME=[53B841E0:01C0B7B2] X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N "Heiko Gierer" wrote: >can a cocoon producer has a destructor for e.g. closing db connection etc ? Yes, if you are using Cocoon 1.8.1 or above this is supported. import org.apache.framework.DestroyListener; public class MyProducer implements DestroyListener { ... public void destroy () { myconnection.close (); } } But also you might want to read about the connection pooling and/or the esql taglib - if you used connection pooling you wouldn't need such a "destructor". _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail: