activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: Embedded Brokers discovery
Date Wed, 29 Mar 2006 16:45:39 GMT
On 3/29/06, kitplummer <kitplummer@gmail.com> wrote:
>
> Making a newbie assumption that to add zeroconf registration all I need to do
> is add discovery to the front of the URI.
>
> But.  Here's the output I get:

The code Jonas provided should work fine...

       BrokerService broker = new BrokerService();
       broker..setUseJmx(false);
       broker.setPersistent(false);
       TransportConnector connector = broker.addConnector(new
URI("tcp://localthost:61616"));
       connector.setDiscoveryUri(new URI("multicast://default"));
       broker.start();


In this case, you want to create a TCP server side transport and add a
discovery mechanism to it. Adding discovery to the front of a URI is
purely used on the client side.

--

James
-------
http://radio.weblogs.com/0112098/

Mime
View raw message