[ 
https://issues.apache.org/activemq/browse/AMQ-1456?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Rob Davies reassigned AMQ-1456:
-------------------------------

    Assignee: Rob Davies

> JMS to JMS Bridge property consumerName on InboundTopicBridge element dont 
> work
> -------------------------------------------------------------------------------
>
>                 Key: AMQ-1456
>                 URL: https://issues.apache.org/activemq/browse/AMQ-1456
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 4.1.1
>            Reporter: Lilians AUVIGNE
>            Assignee: Rob Davies
>         Attachments: patchAMQ-XXX-JMSExceptionOnBridgeWithConsumerName.diff
>
>
> JMS to JMS Bridge don't work with attribute consumerName in 
> inboundTopicBridge  element.
> see 
> http://activemq.apache.org/jms-to-jms-bridge.html#JMStoJMSBridge-TopicBridges
> {quote}
>  consumerName if set will create a durable consumer
> {quote}
> My configuration :
> {code:xml}
>               <jmsBridgeConnectors>
>                       <jmsTopicConnector name="testBridge" 
> jndiOutboundTemplate="#remoteJndi"
>                               
> outboundTopicConnectionFactoryName="jms.TopicConnectionFactory" 
> localTopicConnectionFactory="#localFactory">
>                               <outboundTopicBridges>
>                                       <outboundTopicBridge 
> outboundTopicName="jms.ReplyMessageTopic" localTopicName="Test.bridge" />
>                               </outboundTopicBridges>
>                               <inboundTopicBridges>
>                                       <inboundTopicBridge 
> inboundTopicName="jms.ReplyMessageTopic" localTopicName="Test.bridge" 
> consumerName="testBridge"/>
>                               </inboundTopicBridges>
>                       </jmsTopicConnector>
>               </jmsBridgeConnectors>
> {code}
> When I execute attached test (in patch file), I haved this stacktrace :
> {noformat}
> org.springframework.beans.factory.BeanCreationException: Error creating bean 
> with name 'localbroker' defined in class path resource 
> [org/apache/activemq/network/jms/topic-config.xml]: 
> Invocation of init method failed; nested exception is javax.jms.JMSException: 
> You cannot create a durable subscriber without specifying a unique clientID 
> on a Connection
> Caused by: javax.jms.JMSException: You cannot create a durable subscriber 
> without specifying a unique clientID on a Connection
>       at 
> org.apache.activemq.ActiveMQConnection.checkClientIDWasManuallySpecified(ActiveMQConnection.java:1138)
>       at 
> org.apache.activemq.ActiveMQSession.createDurableSubscriber(ActiveMQSession.java:1066)
>       at 
> org.apache.activemq.ActiveMQSession.createDurableSubscriber(ActiveMQSession.java:1013)
>       at 
> org.apache.activemq.ActiveMQTopicSession.createDurableSubscriber(ActiveMQTopicSession.java:144)
>       at 
> org.apache.activemq.network.jms.TopicBridge.createConsumer(TopicBridge.java:68)
>       at 
> org.apache.activemq.network.jms.DestinationBridge.start(DestinationBridge.java:103)
>       at 
> org.apache.activemq.network.jms.JmsConnector.start(JmsConnector.java:118)
>       at 
> org.apache.activemq.broker.BrokerService.startAllConnectors(BrokerService.java:1494)
>       at 
> org.apache.activemq.broker.BrokerService.start(BrokerService.java:402)
> {noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to