Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 75464 invoked from network); 22 May 2007 15:25:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 May 2007 15:25:43 -0000 Received: (qmail 84479 invoked by uid 500); 22 May 2007 15:25:47 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 84332 invoked by uid 500); 22 May 2007 15:25:46 -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 84321 invoked by uid 99); 22 May 2007 15:25:46 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 May 2007 08:25:46 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [69.147.95.87] (HELO smtp124.plus.mail.sp1.yahoo.com) (69.147.95.87) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 22 May 2007 08:25:37 -0700 Received: (qmail 25420 invoked from network); 22 May 2007 15:25:16 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-YMail-OSG:Mime-Version:In-Reply-To:References:Content-Type:Message-Id:Content-Transfer-Encoding:From:Subject:Date:To:X-Mailer; b=5thAhPQruLdXsc6JpH48y2pxbepS/lqj6NamD28G1qqpTtWBwZB8ijZYyzufKtqvdLrXD/P7b29ivuJ++z8Eaz6WUtYlnY3E/D1Svj9mQMqJKm35uLfVCc49h8Cy0z9jFHymK5+lVvkVgYkXs4J7sRNyr7oadtvXHJJKFUamG34= ; Received: from unknown (HELO ?10.11.55.8?) (david_jencks@63.105.20.225 with plain) by smtp124.plus.mail.sp1.yahoo.com with SMTP; 22 May 2007 15:25:16 -0000 X-YMail-OSG: b4sruyQVM1mtC65z33lk1Sor4TSnNjTomwlknG0XFDjBeML7vr0jctFhdeUqlfY1z2weX7K0RZVdH2GuI6P5imqHc83qru4mv4QMcBy6vtL7dsAUdiWtVomPcthC Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: <91966538@web.de> References: <91966538@web.de> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: David Jencks Subject: Re: Developing a MessageDrivenBean Date: Tue, 22 May 2007 08:25:23 -0700 To: user@geronimo.apache.org X-Mailer: Apple Mail (2.752.3) X-Virus-Checked: Checked by ClamAV on apache.org I am not really an mdb/jms expert.... so there may be a way to do this with acknowledgements. However one sure way to do this is with transactional delivery. If the mdb can't process the message it can call setRollbackOnly on the MessageDrivenContext. According to what I've heard this is likely to be significantly slower than non- transactional delivery. thanks david jencks On May 22, 2007, at 4:43 AM, Jochen Zink wrote: > Hello, > > I have a simple MDB which works as a JMSReceiver. The MDB > subscribes to a JMS-Topic. Everything works fine. If a new message > is published to the Topic, the MDBs onMessage Method is called. > > I want, that the bean can receive the same message over again, If > an error inside the bean is raised. Normally I can deal with > "jmsmessage.acknowledge();" Method to notify, that the reciever > handled the message correctly. If an error is raised on the > receivers side, no acknowledge() is called. Normally in this case I > expected, the message would send over again. But not with a MDB. It > does not matter if I call acknowledge or not. The MDB creates the > JMSSession where I can configure, that the session runs in > "CLIENT_ACKNOWLEDGE" mode. > > What musst I do to get this behavior? > > I want, that the messageDrivenBean can say, that everything is > correct and the message can be deleted from the topic if all > subscibers have it received. But if the Bean raised an error, it > should be possible for the bean, to receive the same message over > again after a while. > > Maybe it is only configuration stuff. But I can't find infos on > activeMQ or openEJB Homepage. > > Can someone help me? > thanks! > > _______________________________________________________________ > SMS schreiben mit WEB.DE FreeMail - einfach, schnell und > kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192 >