Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 44490 invoked from network); 9 Feb 2011 09:24:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Feb 2011 09:24:36 -0000 Received: (qmail 23818 invoked by uid 500); 9 Feb 2011 09:24:36 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 23582 invoked by uid 500); 9 Feb 2011 09:24:33 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 23574 invoked by uid 99); 9 Feb 2011 09:24:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Feb 2011 09:24:32 +0000 X-ASF-Spam-Status: No, hits=4.2 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,SPF_NEUTRAL,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 216.139.236.26 is neither permitted nor denied by domain of archu001@gmail.com) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Feb 2011 09:24:27 +0000 Received: from joe.nabble.com ([192.168.236.151]) by sam.nabble.com with esmtp (Exim 4.69) (envelope-from ) id 1Pn6HO-00068R-Fp for dev@activemq.apache.org; Wed, 09 Feb 2011 01:24:06 -0800 Date: Wed, 9 Feb 2011 01:24:06 -0800 (PST) From: archana saini To: dev@activemq.apache.org Message-ID: <1297243446483-3296850.post@n4.nabble.com> Subject: I need to rollback the message if any failure in processing. MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit HI, I am new to ActiveMQ. I am builiding a JAVA application which recieve messages from a ActiveMQ queue and insert the data in DB. I want, if the DB insert fails due to a connection problem the message should not be removed from the queue. Message should stay in queue untill the successfull processing of the message. I am using AUTO_ACKnoledge mode of session. Any help would be appretiated. Thanks Archana -- View this message in context: http://activemq.2283324.n4.nabble.com/I-need-to-rollback-the-message-if-any-failure-in-processing-tp3296850p3296850.html Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.