Results 1 to 2 of 2

Thread: Recovery from a break in the topic connection

  1. #1

    Default Recovery from a break in the topic connection

    I have a message listener connected to a topic. While the 2 are connected the messages come through. How can I spot that the sending side has died? When the sending side comes back I need to "catch up" on my missed messages, so is there a call back (or some mechanism) to tell me when the connection comes back?

  2. #2

    Default

    Code:
    <bean id="transportListener" class="uk.co.bigsoft.ActiveMqTransportListener"/>
    
    <amq:connectionFactory id="connectionFactory" brokerURL="tcp://otherhost:61616" transportListener="#transportListener" />
    where ActiveMqTransportListener is an implementation of org.apache.activemq.transport.TransportListener which has call backs for onCommand, onException, transportInterupted and transportResumed.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •