Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 24587 invoked from network); 23 May 2007 12:47:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 May 2007 12:47:23 -0000 Received: (qmail 93865 invoked by uid 500); 23 May 2007 12:47:26 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 93843 invoked by uid 500); 23 May 2007 12:47:26 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 93832 invoked by uid 99); 23 May 2007 12:47:26 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 May 2007 05:47:26 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [217.72.192.184] (HELO fmmailgate09.web.de) (217.72.192.184) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 May 2007 05:47:19 -0700 Received: from web.de by fmmailgate09.web.de (Postfix) with SMTP id A5FD1ADE7BB for ; Wed, 23 May 2007 14:46:58 +0200 (CEST) Received: from [83.236.215.41] by freemailng2701.web.de with HTTP; Wed, 23 May 2007 14:46:58 +0200 Date: Wed, 23 May 2007 14:46:58 +0200 Message-Id: <93031943@web.de> MIME-Version: 1.0 From: Jochen Zink To: user@geronimo.apache.org Subject: Re: Developing a MessageDrivenBean Organization: http://freemail.web.de/ X-Provags-Id: V01U2FsdGVkX19p8E+ADitet4mgG1lLGpb21esu6nugWLrjUCH/9+IzevJPH wYuoeXxY2Ehm/spmLgyCJdAQN5ZrfZm1dC3qCzuGlcyMXmDXqw= Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org yes, setRollbackOnly works... simple thing :) Thanks a lot! Does anyone know, if the duration time can be configured=3F With default set= tings the message is delivered immediately to the MDB. It looks like a kin= d of spamming it the MDB can't handle the message because a backendsystem = is not available. It would be nice to configure a duration time after the = message is redelivered. Regards Jochen > -----Urspr=FCngliche Nachricht----- > Von: user@geronimo.apache.org > Gesendet: 22.05.07 17:25:52 > An: user@geronimo.apache.org > Betreff: Re: Developing a MessageDrivenBean >=20 > I am not really an mdb/jms expert.... so there may be a way to do =20 > this with acknowledgements. However one sure way to do this is with =20 > transactional delivery. If the mdb can't process the message it can =20 > call setRollbackOnly on the MessageDrivenContext. According to what =20 > I've heard this is likely to be significantly slower than non-=20 > transactional delivery. >=20 > thanks > david jencks >=20 > On May 22, 2007, at 4:43 AM, Jochen Zink wrote: >=20 > > Hello, > > > > I have a simple MDB which works as a JMSReceiver. The MDB =20 > > subscribes to a JMS-Topic. Everything works fine. If a new message =20 > > is published to the Topic, the MDBs onMessage Method is called. > > > > I want, that the bean can receive the same message over again, If =20 > > an error inside the bean is raised. Normally I can deal with =20 > > "jmsmessage.acknowledge();" Method to notify, that the reciever =20 > > handled the message correctly. If an error is raised on the =20 > > receivers side, no acknowledge() is called. Normally in this case I =20 > > expected, the message would send over again. But not with a MDB. It =20 > > does not matter if I call acknowledge or not. The MDB creates the =20 > > JMSSession where I can configure, that the session runs in =20 > > "CLIENT=5FACKNOWLEDGE" mode. > > > > What musst I do to get this behavior=3F > > > > I want, that the messageDrivenBean can say, that everything is =20 > > correct and the message can be deleted from the topic if all =20 > > subscibers have it received. But if the Bean raised an error, it =20 > > should be possible for the bean, to receive the same message over =20 > > again after a while. > > > > Maybe it is only configuration stuff. But I can't find infos on =20 > > activeMQ or openEJB Homepage. > > > > Can someone help me=3F > > thanks! > > > > =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F > > SMS schreiben mit WEB.DE FreeMail - einfach, schnell und > > kostenguenstig. Jetzt gleich testen! http://f.web.de/=3Fmc=3D021192 > > >=20 >=20 =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F SMS schreiben mit WEB.DE FreeMail - einfach, schnell und kostenguenstig. Jetzt gleich testen! http://f.web.de/=3Fmc=3D021192