I'm using ActiveMQ 5.2.0 but I can't get clients to discover the broker.  My
goal is to run a single broker with multiple clients all auto-discovering
it.     

I have the broker config:

        <transportConnectors>
            <transportConnector name="openwire" uri="tcp://localhost:61616"
discoveryUri="multicast://default?group=test"/>
         </transportConnectors>

and the broker is running on a Win2K system.

Then on another system (Win XP SP3), I have a Java 1.5 client:

        String brokerUrl =
"discovery:(multicast://default)?group=test&maxReconnectAttempts=2";
        ActiveMQConnectionFactory connectionFactory =
                        new ActiveMQConnectionFactory(brokerUrl);


But the client just gives me:

ERROR: org.apache.activemq.transport.failover.FailoverTransport - Failed to
connect to transport after: 2 attempt(s)
Caught: javax.jms.JMSException: No uris available to connect to.


Now if I change the brokerUrl to "tcp://192.168.1.2:61616" (using the IP
address of the broker machine) it works fine.  


I've read  http://activemq.apache.org/discovery-transport-reference.html 
The Discovery Transport Reference  and a few other pages but I haven't found
anything that would help me debug this.  I tried removing the "group" id but
that didn't help.  I'm at a loss for what to try next.

Can anyone suggest a way for me to move forward with this?  

Thanks.

-- 
View this message in context: 
http://www.nabble.com/Multicast-Discovery-not-working-tp21344587p21344587.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to