cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robin Green" <>
Subject Re: Producer destructor
Date Wed, 28 Mar 2001 18:10:10 GMT
"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 

Get Your Private, Free E-mail from MSN Hotmail at

Please check that your question has not already been answered in the
FAQ before posting. <>

To unsubscribe, e-mail: <>
For additional commands, e-mail: <>

View raw message