Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6D06D18275 for ; Thu, 12 Nov 2015 16:11:31 +0000 (UTC) Received: (qmail 4585 invoked by uid 500); 12 Nov 2015 16:11:31 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 4554 invoked by uid 500); 12 Nov 2015 16:11:31 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 4542 invoked by uid 99); 12 Nov 2015 16:11:30 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Nov 2015 16:11:30 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 595AE1A23A3 for ; Thu, 12 Nov 2015 16:11:30 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.258 X-Spam-Level: X-Spam-Status: No, score=0.258 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HEADER_FROM_DIFFERENT_DOMAINS=0.008, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id ptvrZiskgTxg for ; Thu, 12 Nov 2015 16:11:19 +0000 (UTC) Received: from mail-ig0-f176.google.com (mail-ig0-f176.google.com [209.85.213.176]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 93BE924E9B for ; Thu, 12 Nov 2015 16:11:18 +0000 (UTC) Received: by igl9 with SMTP id 9so100429840igl.0 for ; Thu, 12 Nov 2015 08:11:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=XmifFdW2YUbaHea1Sh8z6Ai3C83BeM1etTyQvcjVwAQ=; b=E7vxUA+yUqWhc0lAXCLBJUBzeX+6Tv+YpEYhlGyaUcrcdA/7kXr8VAzD9jlrUmhxsT gzyOJzOyPMEr+DEA55Rm0MDSGnf3p8Le6OtWnEZMue4wV1cWL/VRYs+zMjEGYO2F8VVc lUsZDzrzDYqXlFN2AI9R2pyhRJe/zkw0TeUY2jKgjVTlo3NOnEepZQf53lIhzqdbnbEi yyuXNkHhHXlq7tTEA6LtD1etyndKalntT+g1KUK4jO/cZp3Tr7KTNYc69J5nsrDycLx4 KYHc9GlZQ0oXNQMJTwg12GwhvWA87M5Ns09GIYoaActYQUFLkOz0kJldrNNASsRHVbyo sDJQ== X-Received: by 10.50.138.11 with SMTP id qm11mr16479007igb.31.1447344677476; Thu, 12 Nov 2015 08:11:17 -0800 (PST) Received: from [192.168.0.113] (HSI-KBW-149-172-61-90.hsi13.kabel-badenwuerttemberg.de. [149.172.61.90]) by smtp.googlemail.com with ESMTPSA id 42sm5202891iol.44.2015.11.12.08.11.16 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Nov 2015 08:11:16 -0800 (PST) Sender: Christian Schneider Subject: Re: Redelivery policy configuration To: users@activemq.apache.org References: <5644B800.7080503@die-schneider.net> From: Christian Schneider Message-ID: <5644BA22.6070808@die-schneider.net> Date: Thu, 12 Nov 2015 17:11:14 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit No idea how to do it in tomcat. In karaf I used blueprint and the RedeliveryPolicy class. Christian On 12.11.2015 17:06, Mop Sophia wrote: > Hi Christian, > > Thanks for your answer. > My connection factory is declared in Tomcat as a Resource. Do you know how > can I configure the redelivery policy, please ? > When I add, this kind of option in the URL an error occured : > jms.redeliveryPolicy.maximumRedeliveries=1 > > Thanks, > > Stéphane > > 2015-11-12 17:02 GMT+01:00 Christian Schneider : > >> First the re deliveries in the factory are done then the ones on the >> server. >> So they add up. >> >> Christian >> >> >> On 12.11.2015 16:53, Mop Sophia wrote: >> >>> Hi, >>> >>> I try to confiigure the redelivery policy in my application through the >>> activemq.xml, I have added this part : >>> >>> >> sendToDlqIfMaxRetriesExceeded="false"> >>> >>> >>> >>> >> initialRedeliveryDelay="10000" redeliveryDelay="10000" /> >>> >>> >>> >>> >>> >>> >>> But after a rollback in my application, it seems there are 12 attempts, >>> maybe 6 default redeliveries * 2 ? >>> Is there a combination between redeliveries in factory connection and in >>> broker configuration ? >>> >>> As another option, I also tried to configure in the brokerURL with : >>> >>> vm://localhost?jms.redeliveryPolicy.maximumRedeliveries=1&brokerConfig=xbean:activemq.xml >>> But it seems not possible to put in the URL at the same time a redelivery >>> policy and a broker configuration file. >>> >>> Any idea, please ? >>> >>> Stéphane >>> >>> >> -- >> Christian Schneider >> http://www.liquid-reality.de >> >> Open Source Architect >> http://www.talend.com >> >> -- Christian Schneider http://www.liquid-reality.de Open Source Architect http://www.talend.com