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 5919EF1A7 for ; Thu, 9 May 2013 13:40:19 +0000 (UTC) Received: (qmail 5045 invoked by uid 500); 9 May 2013 13:40:18 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 5016 invoked by uid 500); 9 May 2013 13:40:18 -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 4999 invoked by uid 99); 9 May 2013 13:40:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 May 2013 13:40:18 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of christian.posta@gmail.com designates 209.85.217.174 as permitted sender) Received: from [209.85.217.174] (HELO mail-lb0-f174.google.com) (209.85.217.174) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 May 2013 13:40:14 +0000 Received: by mail-lb0-f174.google.com with SMTP id r10so3048638lbi.19 for ; Thu, 09 May 2013 06:39:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=FcmFwRM83qWmHufgQbF0JhvCbXWJNdtsAeRM0MCk00Q=; b=gI9hQ6ptYAWVrBHviK5I8jb7+fTpomuZ9P0EVsf/48NPe/w9UKb5ssl32lhwaRPGHo ytfbaIgYNi2Rsc4inXWcyAyDc9ixuM2xlOF6XrafKcRBEjbkailtro5B2eJIjOV6aHs0 4HsSWbRvH35g3GDRxmAaTt8GLt1tcK57qJrqUGMVhA500z8k287WpSy13f8NUQMaAPNI G3SucfqaNxq0eaajKh8IQWHYgPrBlG9y1Okaov0dIznAUYFJPDLMfY21rfwfsx1BY/ih eS/1UEOzuq84K2sm1UGrtng1XwpYHEp0TAQhZx3SUWDvS4k6EdmsxLsa7c3efssJEntS EEjg== MIME-Version: 1.0 X-Received: by 10.112.161.6 with SMTP id xo6mr5346829lbb.124.1368106792901; Thu, 09 May 2013 06:39:52 -0700 (PDT) Received: by 10.114.83.134 with HTTP; Thu, 9 May 2013 06:39:52 -0700 (PDT) In-Reply-To: <1368093726407-4666808.post@n4.nabble.com> References: <1368093726407-4666808.post@n4.nabble.com> Date: Thu, 9 May 2013 06:39:52 -0700 Message-ID: Subject: Re: The cacmel.xml can not work in ActiveMQ5.8, works fine in ActiveMQ5.5 From: Christian Posta To: "users@activemq.apache.org" Content-Type: multipart/alternative; boundary=001a11c26a0467e71e04dc492fc0 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c26a0467e71e04dc492fc0 Content-Type: text/plain; charset=ISO-8859-1 Not sure... would have to check the camel code... maybe try setting client id on the connection factory spring bean and see if that works? if so, then we can narrow it down to camel and i can find the fix. On Thu, May 9, 2013 at 3:02 AM, hengyunabc wrote: > In ActiveMQ5.5 it works very well, but in ActiveMQ5.8, log: > It seems that there are two threads, but SingleConnectionFactory?? > > 2013-05-09 17:55:21,624 | WARN | Setup of JMS message listener invoker > failed for destination 'spring_test_topic' - trying to recover. Cause: You > cannot create a durable subscriber without specifying a unique clientID on > a > Connection | > org.apache.camel.component.jms.DefaultJmsMessageListenerContainer | Camel > (camel) thread #0 - JmsConsumer[spring_test_topic] > 2013-05-09 17:55:21,624 | INFO | Successfully refreshed JMS Connection | > org.apache.camel.component.jms.DefaultJmsMessageListenerContainer | Camel > (camel) thread #0 - JmsConsumer[spring_test_topic] > 2013-05-09 17:55:26,629 | WARN | Setup of JMS message listener invoker > failed for destination 'spring_test_topic' - trying to recover. Cause: You > cannot create a durable subscriber without specifying a unique clientID on > a > Connection | > org.apache.camel.component.jms.DefaultJmsMessageListenerContainer | Camel > (camel) thread #2 - JmsConsumer[spring_test_topic] > 2013-05-09 17:55:26,630 | INFO | Successfully refreshed JMS Connection | > org.apache.camel.component.jms.DefaultJmsMessageListenerContainer | Camel > (camel) thread #2 - JmsConsumer[spring_test_topic] > > camel.xml: > > xmlns="http://www.springframework.org/schema/beans" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://camel.apache.org/schema/spring > http://camel.apache.org/schema/spring/camel-spring.xsd > http://www.springframework.org/schema/beans > http://www.springframework.org/schema/beans/spring-beans.xsd"> > > > > Example Camel Route 1 > > uri="jms:topic:spring_test_topic?clientId=1&durableSubscriptionName=bar1"/> > > > > > class="org.apache.activemq.ActiveMQConnectionFactory"> > value="failover:(vm://localhost:61616?create=false&waitForStart=10000)" > /> > > > > > > class="org.springframework.jms.connection.SingleConnectionFactory"> > > > > > > class="org.springframework.jms.connection.JmsTransactionManager"> > ref="singleJmsConnectionFactory"/> > > > class="org.apache.activemq.camel.component.ActiveMQComponent" > > > > > > > > > > -- > View this message in context: > http://activemq.2283324.n4.nabble.com/The-cacmel-xml-can-not-work-in-ActiveMQ5-8-works-fine-in-ActiveMQ5-5-tp4666808.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > -- *Christian Posta* http://www.christianposta.com/blog twitter: @christianposta --001a11c26a0467e71e04dc492fc0--