Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 27530 invoked from network); 24 Sep 2009 17:28:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Sep 2009 17:28:03 -0000 Received: (qmail 89716 invoked by uid 500); 24 Sep 2009 17:28:02 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 89683 invoked by uid 500); 24 Sep 2009 17:28:02 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 89673 invoked by uid 99); 24 Sep 2009 17:28:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Sep 2009 17:28:02 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of bruce.snyder@gmail.com designates 209.85.218.224 as permitted sender) Received: from [209.85.218.224] (HELO mail-bw0-f224.google.com) (209.85.218.224) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Sep 2009 17:27:52 +0000 Received: by bwz24 with SMTP id 24so1508952bwz.38 for ; Thu, 24 Sep 2009 10:27:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=1K7dQKsFNPvuMVQJxeMbTbuqbla9GZDfnPNOpBpt3c4=; b=TKpHCQ+r3dCAB08tLkNoNDFXZqFpfGFDwQOVZLmfrYZi1UOndIydZEGxeI0k9shdaq OHwvE5p7LrjK6+GOABbVVY5Q7FxIU8HEqF3nSvWlrqTtincLjUqZ7TOg0H0bu9dwJPgx NPxy+uFWvdl7SJvzQBaFg/3sl9+UvHUmbI0OM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=om69Cbv+RiJvYLEiTYUCKLXaKhig4l9ZtkDHXt5DmfrVilrm39oZ1n19eABScvzr6Q 2Dn9ZLc0z2blSGB0eXbxi5sipaPlmjAYilQ6GVLzMl1ApWWegvJ6tOHr8GW1zb/SPvKZ bg8vn95eCrL+miGX1fgS4cEnztXQQIKQNwHkE= MIME-Version: 1.0 Received: by 10.223.23.74 with SMTP id q10mr1447894fab.14.1253813251264; Thu, 24 Sep 2009 10:27:31 -0700 (PDT) In-Reply-To: <4ABBA6DD.5050101@sophos.com> References: <25531334.post@talk.nabble.com> <7b3355cb0909231856r21307b2dq1509a9ca0b8cf95e@mail.gmail.com> <4ABBA6DD.5050101@sophos.com> Date: Thu, 24 Sep 2009 11:27:31 -0600 Message-ID: <7b3355cb0909241027r473d66d0s502119571be1e9db@mail.gmail.com> Subject: Re: multicast 'timeToLive' doesn't seem to work From: Bruce Snyder To: users@activemq.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Thu, Sep 24, 2009 at 11:05 AM, Mitch Granger wrote: > > > Bruce Snyder wrote: >> >> On Wed, Sep 23, 2009 at 5:57 PM, themitchy >> wrote: >>> >>> This is how I'm setting timeToLive: >>> >>> >> discoveryUri=3D"multicast://default?timeToLive=3D20"/> >>> >>> 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 hi= gh >>> it >>> won't even start. >>> >>> Anyone ever used this successfully? =A0Maybe 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#se= tTimeToLive(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? > > We are trying to get packets beyond the local network. > > Turns out java.net.MulticastSocket prefers ipv6 if it is installed. =A0So= we > added > > =A0-Djava.net.preferIPv4Stack=3Dtrue > > To the java opts when starting AMQ and it worked just fine. Thanks for getting back to me. I've added a note to the wiki and it should be exported to the website soon. Bruce --=20 perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=3D6-E+G-N>61E