activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lilians AUVIGNE (JIRA)" <j...@apache.org>
Subject [jira] Created: (AMQ-1456) JMS to JMS Bridge property consumerName on InboundTopicBridge element dont work
Date Wed, 10 Oct 2007 10:06:23 GMT
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
         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.


Mime
View raw message