check out the tests for this feature to see a url paring that works, they use a slightly more low level internal api but should provide what you need. I notice that there are no brackets used in the client side brokerUrl, see:
http://activemq.apache.org/maven/5.2.0/activemq-core/testapidocs/src-html/org/apache/activemq/transport/discovery/DiscoveryTransportBrokerTest.html#line.146 there are a few variants at: http://activemq.apache.org/maven/5.2.0/activemq-core/testapidocs/org/apache/activemq/transport/discovery/package-summary.html 2009/1/8 BigPic <nab...@jgro.net>: > > 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. > > -- http://blog.garytully.com Open Source SOA http://FUSESource.com