Return-Path: X-Original-To: apmail-camel-dev-archive@www.apache.org Delivered-To: apmail-camel-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CCD095E3 for ; Fri, 24 Aug 2012 13:26:26 +0000 (UTC) Received: (qmail 43832 invoked by uid 500); 24 Aug 2012 13:26:26 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 43767 invoked by uid 500); 24 Aug 2012 13:26:26 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Delivered-To: moderator for dev@camel.apache.org Received: (qmail 92675 invoked by uid 99); 24 Aug 2012 13:08:22 -0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=SPF_NEUTRAL,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 christian.ohr@googlemail.com) Date: Fri, 24 Aug 2012 06:07:56 -0700 (PDT) From: "christian.ohr" To: dev@camel.apache.org Message-ID: <1345813676309-5718012.post@n5.nabble.com> In-Reply-To: References: Subject: Re: ActiveMQ redelivery MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi Shally, you should make your JMS Configuration transactional, also see http://camel.apache.org/how-do-i-make-my-jms-endpoint-transactional.html. JmsConfiguration should get transacted=true and a reference to a transaction manager, e.g. If you get an exception from sending away your message (and you don't explicitly handle it in an exception handler), the message will be rolled back into the queue. When you send to multiple endpoints, consider using a separate queue for each of them - otherwise, if only one endpoint is down, the message may get redelivered to the others as well, even though they might have already received it before. regards Christian -- View this message in context: http://camel.465427.n5.nabble.com/ActiveMQ-redelivery-tp5717941p5718012.html Sent from the Camel Development mailing list archive at Nabble.com.