On Wed, Sep 23, 2009 at 5:57 PM, themitchy <[email protected]> wrote:
>
> This is how I'm setting timeToLive:
>
> <transportConnector name="openwire" uri="tcp://0.0.0.0:61616"
> discoveryUri="multicast://default?timeToLive=20"/>
>
> When I check on the packets with Wireshark the TTL is still 1.
>
> That setting does seem to be doing _something_ since if I set it too high it
> won't even start.
>
> Anyone ever used this successfully?  Maybe it just doesn't do what I think
> it should (Like so many things in life)...

That particular timeToLive property applies to the java.net.MulticastSocket:

http://java.sun.com/j2se/1.5.0/docs/api/java/net/MulticastSocket.html#setTimeToLive(int)

A value of 1 for the timeToLive on a MulticastSocket means keep
packets on the local network. Anything higher than that will cause
packets to expand their range beyond the local network.

What is it that you're trying to do exactly?

Bruce
-- 
perl -e 'print 
unpack("u30","D0G)u8...@4vyy9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

ActiveMQ in Action: http://bit.ly/2je6cQ
Blog: http://bruceblog.org/
Twitter: http://twitter.com/brucesnyder

Reply via email to