You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by ZitRit <mo...@gmail.com> on 2007/08/17 19:17:35 UTC
Connect a Network of brokers to a JMS Bridge
Hello,
I'm newer in using activeMQ.
I try to connect a network of 3 brokers to a jms bridge (in/out inbound),
using sample configuration in your webSite. When I try to read from remote
(bridge) topic, I'have the exception :
[ActiveMQ Session Task] ERROR
org.apache.activemq.network.jms.DestinationBridge - failed to forward
message on attempt: 1 reason: javax.jms.IllegalStateException: The producer
is closed message
Bellow configuration for brokers of network :
<beans>
<broker brokerName="MiddleWare1" persistent="false" useJmx="false"
xmlns="http://activemq.org/config/1.0">
<transportConnectors>
<transportConnector name="C1" uri="tcp://localhost:61616"/>
</transportConnectors>
<networkConnectors>
<networkConnector name="N12" uri="static:(tcp://localhost:51616)"/>
<networkConnector name="N13" uri="static:(tcp://localhost:41616)"/>
</networkConnectors>
<persistenceAdapter>
<memoryPersistenceAdapter/>
</persistenceAdapter>
<jmsBridgeConnectors>
<jmsTopicConnector outboundTopicConnectionFactory="#remoteFactory">
<outboundTopicBridges>
<outboundTopicBridge outboundTopicName="RemoteTopicName"
localTopicName="LocalTopicName"/>
</outboundTopicBridges>
<inboundTopicBridges>
<inboundTopicBridge inboundTopicName="RemoteTopicName"
localTopicName="LocalTopicName"/>
</inboundTopicBridges>
</jmsTopicConnector>
</jmsBridgeConnectors>
</broker>
<bean id="remoteFactory"
class="org.apache.activemq.ActiveMQConnectionFactory">
<property name="brokerURL" value="tcp://localhost:31616" />
</bean>
</beans>
And the configuration for my broker bridge is :
<beans>
<bean
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"
/>
<broker useJmx="true" brokerName="BusDecalog"
xmlns="http://activemq.org/config/1.0">
<managementContext>
<managementContext findTigerMbeanServer="true"
jmxDomainName="org.apache.activemq0" />
</managementContext>
<transportConnectors>
<transportConnector name="openwire" uri="tcp://localhost:31616"/>
<transportConnector name="stomp" uri="stomp://localhost:31613" />
</transportConnectors>
<persistenceAdapter>
<journaledJDBC journalLogFiles="5"
dataDirectory="${fr.sgf.gp.root}/data/activemq-data" />
</persistenceAdapter>
</broker>
</beans>
Thanks for your help
ZitRit
--
View this message in context: http://www.nabble.com/Connect-a-Network-of-brokers-to-a-JMS-Bridge-tf4287064s2354.html#a12203644
Sent from the ActiveMQ - User mailing list archive at Nabble.com.