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 2529711EAA for ; Wed, 3 Sep 2014 11:43:36 +0000 (UTC) Received: (qmail 80408 invoked by uid 500); 3 Sep 2014 11:43:35 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 80360 invoked by uid 500); 3 Sep 2014 11:43:35 -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 80342 invoked by uid 99); 3 Sep 2014 11:43:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Sep 2014 11:43:34 +0000 X-ASF-Spam-Status: No, hits=2.3 required=5.0 tests=NORMAL_HTTP_TO_IP,SPF_HELO_PASS,SPF_SOFTFAIL,URI_HEX,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: softfail (nike.apache.org: transitioning domain of preben.asmussen@gmail.com does not designate 162.253.133.43 as permitted sender) Received: from [162.253.133.43] (HELO mwork.nabble.com) (162.253.133.43) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Sep 2014 11:43:08 +0000 Received: from mjoe.nabble.com (unknown [162.253.133.57]) by mwork.nabble.com (Postfix) with ESMTP id 0E6CD489235 for ; Wed, 3 Sep 2014 04:36:56 -0700 (PDT) Date: Wed, 3 Sep 2014 04:43:03 -0700 (PDT) From: preben To: users@activemq.apache.org Message-ID: <1409744583842-4685258.post@n4.nabble.com> In-Reply-To: <5405CCCE.2020705@gmail.com> References: <1409226156085-4685094.post@n4.nabble.com> <1409234398113-4685102.post@n4.nabble.com> <1409313063723-4685142.post@n4.nabble.com> <1409315527378-4685143.post@n4.nabble.com> <1409324481587-4685149.post@n4.nabble.com> <1409555689298-4685199.post@n4.nabble.com> <5405CCCE.2020705@gmail.com> Subject: Re: redeliveryPlugin seems to have problems with defaultEntry MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Thanks. Lot of amq switches The trick is to set broker url = failover:(tcp://localhost:61616)?jms.rmIdFromConnectionId=true&jms.prefetchPolicy.all=1&randomize=false&jms.redeliveryPolicy.maximumRedeliveries=0 to disable client side redelivery, and let the broker take control. 2014-09-03 12:57:02,545 | INFO | ActiveMQ WebConsole available at http://0.0.0.0:8161/ | org.apache.activemq.web.WebConsoleStarter | main 2014-09-03 12:57:02,618 | INFO | Initializing Spring FrameworkServlet 'dispatcher' | /admin | main 2014-09-03 12:57:02,620 | INFO | FrameworkServlet 'dispatcher': initialization started | org.springframework.web.servlet.DispatcherServlet | main 2014-09-03 12:57:02,663 | INFO | Refreshing WebApplicationContext for namespace 'dispatcher-servlet': startup date [Wed Sep 03 12:57:02 CEST 2014]; parent: Root WebApplicationContext | org.springframework.web.context.support.XmlWebApplicationContext | main 2014-09-03 12:57:02,665 | INFO | Loading XML bean definitions from ServletContext resource [/WEB-INF/dispatcher-servlet.xml] | org.springframework.beans.factory.xml.XmlBeanDefinitionReader | main 2014-09-03 12:57:02,696 | INFO | Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1393f867: defining beans [handlerMapping,/createDestination.action,/deleteDestination.action,/createSubscriber.action,/deleteSubscriber.action,/sendMessage.action,/purgeDestination.action,/deleteMessage.action,/copyMessage.action,/moveMessage.action,/deleteJob.action,exceptionResolver]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@b43f35f | org.springframework.beans.factory.support.DefaultListableBeanFactory | main 2014-09-03 12:57:02,906 | INFO | FrameworkServlet 'dispatcher': initialization completed in 284 ms | org.springframework.web.servlet.DispatcherServlet | main 2014-09-03 12:57:03,160 | INFO | jolokia-agent: No access restrictor found at classpath:/jolokia-access.xml, access to all MBeans is allowed | /api | main 2014-09-03 12:57:41,948 | TRACE | redelivery #1 of: ID:A70103-56018-1409741049739-3:1:2:1:1 with delay: 1000, dest: queue://demo | org.apache.activemq.broker.util.RedeliveryPlugin | ActiveMQ Transport: tcp:///127.0.0.1:49669@61616 2014-09-03 12:57:42,168 | TRACE | redelivery #2 of: ID:A70103-56018-1409741049739-3:1:2:1:1 with delay: 2000, dest: queue://demo | org.apache.activemq.broker.util.RedeliveryPlugin | ActiveMQ Transport: tcp:///127.0.0.1:49669@61616 2014-09-03 12:57:44,116 | TRACE | redelivery #3 of: ID:A70103-56018-1409741049739-3:1:2:1:1 with delay: 4000, dest: queue://demo | org.apache.activemq.broker.util.RedeliveryPlugin | ActiveMQ Transport: tcp:///127.0.0.1:49669@61616 2014-09-03 12:57:48,094 | TRACE | redelivery #4 of: ID:A70103-56018-1409741049739-3:1:2:1:1 with delay: 8000, dest: queue://demo | org.apache.activemq.broker.util.RedeliveryPlugin | ActiveMQ Transport: tcp:///127.0.0.1:49669@61616 2014-09-03 12:57:56,095 | TRACE | redelivery #5 of: ID:A70103-56018-1409741049739-3:1:2:1:1 with delay: 16000, dest: queue://demo | org.apache.activemq.broker.util.RedeliveryPlugin | ActiveMQ Transport: tcp:///127.0.0.1:49669@61616 2014-09-03 12:58:12,067 | TRACE | redelivery #6 of: ID:A70103-56018-1409741049739-3:1:2:1:1 with delay: 32000, dest: queue://demo | org.apache.activemq.broker.util.RedeliveryPlugin | ActiveMQ Transport: tcp:///127.0.0.1:49669@61616 2014-09-03 12:58:44,209 | TRACE | redelivery #7 of: ID:A70103-56018-1409741049739-3:1:2:1:1 with delay: 64000, dest: queue://demo | org.apache.activemq.broker.util.RedeliveryPlugin | ActiveMQ Transport: tcp:///127.0.0.1:49669@61616 2014-09-03 12:59:48,189 | TRACE | redelivery #8 of: ID:A70103-56018-1409741049739-3:1:2:1:1 with delay: 128000, dest: queue://demo | org.apache.activemq.broker.util.RedeliveryPlugin | ActiveMQ Transport: tcp:///127.0.0.1:49669@61616 2014-09-03 13:01:56,090 | TRACE | redelivery #9 of: ID:A70103-56018-1409741049739-3:1:2:1:1 with delay: 256000, dest: queue://demo | org.apache.activemq.broker.util.RedeliveryPlugin | ActiveMQ Transport: tcp:///127.0.0.1:49669@61616 2014-09-03 13:06:12,175 | TRACE | redelivery #10 of: ID:A70103-56018-1409741049739-3:1:2:1:1 with delay: 512000, dest: queue://demo | org.apache.activemq.broker.util.RedeliveryPlugin | ActiveMQ Transport: tcp:///127.0.0.1:49669@61616 Defaultentry also ok. Btw. Fifo ordering seems to go down the drain with broker redelivery. If a message gets redelivered other messages that comes in "that are ok" will be send on to the client even though there are messages being redelivered. /preben -- View this message in context: http://activemq.2283324.n4.nabble.com/redeliveryPlugin-seems-to-have-problems-with-defaultEntry-tp4685094p4685258.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.