activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Reconnect durable subscription with networked brokers
Date Fri, 20 Oct 2006 12:25:41 GMT
Hello all again,

Now I just tried out my little bridged broker network test with 4.0.2 (RC5) and
it still doesn't seem to work.

I have a setup like this

left <-> bridge <-> right (three brokers)

Publisher on broker 'left', durable subscriber on 'right'.

When aborting broker bridge in the middle and restarting it, the subscribtion
doesn't resume.

I don't get a stacktrace anymore, but still an error.

INFO  DemandForwardingBridge         - Network connection between vm://bridge#2
and tcp://localhost:61618 shutdown due to a local error: javax.jms.JMSException:
 Durable consumer is in use for client: NC_right_inboundbridge and subscriptionN

My setup is fairly simple, but i've included the networkConnector parts for all
three. Otherwise than the reconnect problem it works like a charm.

Also, when restarting the publishing broker (left) I get the following problem:

INFO  DemandForwardingBridge         - Network connection between vm://left#0 an
d tcp://localhost:61617 shutdown due to a local error: javax.jms.JMSException: D
urable consumer is in use for client: NC_bridge_inboundleft and subscriptionName
INFO  NetworkConnector               - Establishing network connection between f
rom vm://left?network=true to failover:(tcp://localhost:61617)?maxReconnectDelay
WARN  DemandForwardingBridge         - Caught exception from local start Transport disposed.
        at org.apache.activemq.transport.vm.VMTransport.oneway(

I apologize if I ask a repetitive question, but I got the inpression that this
problem was fixed. Unfortunately I don't have much spare time, otherwise I
would be interested in contributing to this project since I find it way cool


-- left

       <transportConnector uri="tcp://localhost:61616" />

      <networkConnector name="left to bridge"
uri="static://(tcp://localhost:61617)" failover="true" networkTTL="5" />

-- bridge

       <transportConnector uri="tcp://localhost:61617"  />

      <networkConnector name="jmsnet-left"
uri="static://(tcp://localhost:61616)" failover="true" networkTTL="5"/>
      <networkConnector name="jmsnet-right"
uri="static://(tcp://localhost:61618)" failover="true" networkTTL="5"/>

-- right

       <transportConnector uri="tcp://localhost:61618" />

      <networkConnector name="right to bridge"
uri="static://(tcp://localhost:61617)" failover="true" networkTTL="5"/>

This message was sent using IMP, the Internet Messaging Program.

View raw message