Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-642

Add ability to monitor network connections on brokerclient

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.0 M4
    • 4.0 RC2
    • None
    • None
    • All?

    Description

      See: http://forums.activemq.org/posts/list/535.page

      In version 3.2.1, broker clients could monitor the state of the connection by listening to a TransportStatusEvent. A listener could be added with this method:

      brokerConnection.getTransportChannel().addTransportStatusEventListener(this);

      In the 4.0 code this method has changed to:
      setTransportListener(eventListener)

      This probably means that there can be only one listener to transport-events. I'm guessing that if the client code is set to listen to that event, the failover-protocol will stop functioning.

      I think the ability to monitor connection state is a nice feature, so it's too bad that it appears to be removed in the 4.0 code. It think it would only require changing a couple of lines of code to keep it. Interfacewise it would be changing
      org.apache.activemq.transport.Transport.setTransportListener()
      to
      org.apache.activemq.transport.Transport.addTransportListener()

      to allow multiple transportlisteners instead of just one.

      Attachments

        Activity

          People

            jstrachan James Strachan
            sivesind elvis P
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: