activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Olaf Brandt (JIRA)" <>
Subject [jira] Created: (AMQ-1089) Warning when using multicast discoveryUri
Date Tue, 05 Dec 2006 15:05:03 GMT
Warning when using  multicast discoveryUri

                 Key: AMQ-1089
             Project: ActiveMQ
          Issue Type: Bug
    Affects Versions: 4.0.2, 4.0.1
         Environment: reproduced on Windows XP Pro and SuSE Linux Enterprise 9.1
            Reporter: Olaf Brandt
            Priority: Minor

When using a transportconnector with a multicast discoveryagent a warning is shown.

config: <transportConnector  name="default" uri="tcp://localhost:61616" discoveryUri="multicast://default"/>

WARN  MulticastDiscoveryAgent          -brokerName not set

This warning is generated by the MulticastDiscoveryAgent.start() method.
When the transportconnector is started the MulticastDiscoveryAgent is created if it does not
but the brokerName for this MulticastDiscoveryAgent is not set by the transportconnector.

See the code and the suggested modification to prevent this warning:

public void start() throws Exception {
        DiscoveryAgent da = getDiscoveryAgent();
        if( da!=null ) {
            //suggested modification start
            if(da.getBrokerName() == null || da.getBrokerName().length == 0) {
            //suggested modification end
        this.statusDector.start();"Connector "+getName()+" Started");

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message