Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 51734 invoked from network); 30 Sep 2009 07:16:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 30 Sep 2009 07:16:50 -0000 Received: (qmail 50407 invoked by uid 500); 30 Sep 2009 07:16:49 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 50099 invoked by uid 500); 30 Sep 2009 07:16:48 -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 List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 50062 invoked by uid 99); 30 Sep 2009 07:16:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Sep 2009 07:16:48 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of thorsten.scherler.ext@juntadeandalucia.es designates 217.12.18.114 as permitted sender) Received: from [217.12.18.114] (HELO mta.juntadeandalucia.es) (217.12.18.114) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Sep 2009 07:16:39 +0000 Received: from [10.240.225.254] (helo=mail.juntadeandalucia.es) by guadix1.juntadeandalucia.es with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1MstQA-0001Pp-QN for dev@cocoon.apache.org; Wed, 30 Sep 2009 09:16:18 +0200 Received: from [10.240.192.30] by mail.juntadeandalucia.es with esmtpa (Exim 4.69) (envelope-from ) id 1MstQA-0006tJ-TL for dev@cocoon.apache.org; Wed, 30 Sep 2009 09:16:19 +0200 Subject: Re: Listener in cocoon 2.2 From: Thorsten Scherler To: dev@cocoon.apache.org In-Reply-To: <45c308810909291227w6e905efalb2e45bf2403acdee@mail.gmail.com> References: <1254217080.3532.31.camel@asf> <45c308810909291227w6e905efalb2e45bf2403acdee@mail.gmail.com> Content-Type: text/plain; charset="UTF-8" Date: Wed, 30 Sep 2009 09:20:36 +0200 Message-Id: <1254295236.3532.38.camel@asf> Mime-Version: 1.0 X-Mailer: Evolution 2.26.1 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -99 X-Spam-Score-Int: -99 X-Virus-Checked: Checked by ClamAV on apache.org On Tue, 2009-09-29 at 20:27 +0100, Dominic Mitchell wrote: > On Tue, Sep 29, 2009 at 10:38 AM, Thorsten Scherler > wrote: > Hi all, > =20 > what is the best way to implement a Listener in cocoon 2.2? > =20 > I our use case we have a "listener" uri that got dispatched by > an > external application to notify that some resources have > changed and > invalid our cache for that resource. > =20 > The thing is that the uri do not have to/will not return > anything in the > body only in the request header. > =20 > The current solution which was presented to us uses a custom > generator > which will not output anything. That just does not feel right. > =20 > I did a small test with > > > > > > =20 > but that is just to make it work the normal cocoon way. The > notify.xml > is a dummy and I am not really thrilled about that neither. > =20 > Using flow seems to be as well too much since we just want a > simple > listener that returns only http header. >=20 >=20 > Last time I needed something like this I used the "empty:" source. That is a custom input module, right? > Combined with a reader, that should do the track. >=20 >=20 > > > >=20 >=20 > This is untested =E2=80=94 I can't remember if there are any quirks. >=20 Yeah will reduce the match nicely. Thanks Dom.=20 salu2 >=20 > -Dom=20 --=20 Thorsten Scherler Open Source Java Sociedad Andaluza para el Desarrollo de la Sociedad=20 de la Informaci=C3=B3n, S.A.U. (SADESI)