From user-return-11367-apmail-geronimo-user-archive=geronimo.apache.org@geronimo.apache.org Fri Aug 29 17:29:42 2008 Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 71925 invoked from network); 29 Aug 2008 17:29:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Aug 2008 17:29:42 -0000 Received: (qmail 94661 invoked by uid 500); 29 Aug 2008 17:29:38 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 94627 invoked by uid 500); 29 Aug 2008 17:29:38 -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 94616 invoked by uid 99); 29 Aug 2008 17:29:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Aug 2008 10:29:38 -0700 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [98.136.44.55] (HELO smtp110.prem.mail.sp1.yahoo.com) (98.136.44.55) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 29 Aug 2008 17:28:38 +0000 Received: (qmail 28616 invoked from network); 29 Aug 2008 17:29:08 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-YMail-OSG:X-Yahoo-Newman-Property:Message-Id:From:To:In-Reply-To:Content-Type:Content-Transfer-Encoding:Mime-Version:Subject:Date:References:X-Mailer; b=soAcJhTUQmNhcjCNkTrysYFIBYbsvDuJWLX2KyXb4WdJceH9LHDHrwiX8VR96XqAfWhnv2xR9QLijy1G4SW/Mmyk3zalvRjucfZq4giyeFwgCEG6i1AuAzZdd69s20UzeH/ksScuJ51KMED/2UBu88Dmx4yRFAJISMy6mYTyR8I= ; Received: from unknown (HELO ?192.168.1.107?) (david_jencks@76.105.175.1 with plain) by smtp110.prem.mail.sp1.yahoo.com with SMTP; 29 Aug 2008 17:29:07 -0000 X-YMail-OSG: 0ZA.F.UVM1mq.SZ0cGZN_WEkmZpJuio0VmdWS_cI9CfAWOLsfTNB.lgiOxrZcbwb40z2Dd6hMEl0rk8RO7pIRPlDvLpVR3ZA1CttEPW76IA6LF_1rlrnYem0NNCSD0hhc5FKcVKSwSD8GRMtgXybvJpu X-Yahoo-Newman-Property: ymail-3 Message-Id: From: David Jencks To: user@geronimo.apache.org In-Reply-To: <19223806.post@talk.nabble.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v926) Subject: Re: MDB - reading messages in transaction Date: Fri, 29 Aug 2008 10:29:05 -0700 References: <19223806.post@talk.nabble.com> X-Mailer: Apple Mail (2.926) X-Virus-Checked: Checked by ClamAV on apache.org On Aug 29, 2008, at 9:59 AM, Juergen Weber wrote: > > Hi, > > can a Geronimo message driven bean read several messages in a > transaction? > E.g. data might be split in several parts, one message for each > part, and > the messages should not be removed from the queue until the MDB has > received > all parts and has acknowledged having read all parts? not directly. No MDB can read more than one message in an invocation. You might possibly be able to have your mdb open a connection and listen for the rest of the mesages that go together but you'll have to do some extra configuration such as making sure all the messages are in a message group so they all go to the same mdb. This would probably only work with ActiveMQ and very well might not work at all. You might be able to do something with a stateless session bean called from a controller that opens a connection and reads all the messages in a group. I think this is more likely to work than an mdb. thanks david jencks > > > Thanks, > Juergen > > -- > View this message in context: http://www.nabble.com/MDB---reading-messages-in-transaction-tp19223806s134p19223806.html > Sent from the Apache Geronimo - Users mailing list archive at > Nabble.com. >