Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 48162 invoked from network); 28 Jul 2008 11:21:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Jul 2008 11:21:03 -0000 Received: (qmail 53804 invoked by uid 500); 28 Jul 2008 11:21:02 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 53716 invoked by uid 500); 28 Jul 2008 11:21:02 -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 53705 invoked by uid 99); 28 Jul 2008 11:21:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Jul 2008 04:21:01 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [62.99.145.16] (HELO mx.inode.at) (62.99.145.16) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Jul 2008 11:20:06 +0000 Received: from [86.59.50.123] (port=9935 helo=[192.168.0.131]) by smartmx-14.inode.at with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.50) id 1KNQlt-00016y-Vr for dev@cocoon.apache.org; Mon, 28 Jul 2008 13:20:10 +0200 Message-ID: <488DAB65.5060400@inode.at> Date: Mon, 28 Jul 2008 13:20:05 +0200 From: Lukas Lang User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: Eventcache dependency to JMS References: <487F65A4.8060806@inode.at> In-Reply-To: X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hey, I'm sorry for my delayed answer too ;-) Well, what I'm trying to gain is implementation independent blocks. I cleaned up the JMS block using Spring provided mechanisms (templates) for message delivery. The sample block is now based on the ActiveMQ implementation running in embedded mode (initialized via Spring namespace). For demonstration purpose, it uses the JMSEventMessageListener component for invalidating cached responses. As far as I get this, there are no dependencies between eventcache and jms-impl at all? If we consider (re)placing the JMSEventMessageListener into the jms-sample block, because it is a concrete subclass of the AbstractMessageListener, we would get a more satisfying situation. The way you might go, consists of writing a concrete listener in a separate block, using whatever other block (e.g. eventcache) you might need. Can you live with that? Regards, Lukas Ard Schrijvers schrieb: > Hello Lukas, > > Sry for my late respond > >> Hello, >> >> I'm wondering, why the eventcache block has dependencies on >> the JMS block and not the other way round? > > I do not know what you would win by switching the dependency around. JMS > seems to me more uncoupled from eventcache then eventcache to jms. > Perhaps I would like to use JMS listeners, while at the same time I do > not have any eventcache at all. I would for example just use JMS to...I > don't know, trigger an email to send... > >> For those who are familiar with these blocks, in my opinion >> the JMSEventListener makes use of eventcache capabilities. >> >> So I would say, JMS provides callback support via eventcache. >> >> What do you think? > > It's been a while for since I last worked with it, and I suppose it is > targeted for Cocoon 2.2 where my knowledge is mainly 2.1.x, so I might > be missing something. Anyway, it is not directly clear for me what to > gain with this dependency switch > > -Ard > >> Regards, >> Lukas >> >> > >