Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 92131 invoked from network); 8 Sep 2008 11:32:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Sep 2008 11:32:25 -0000 Received: (qmail 6823 invoked by uid 500); 8 Sep 2008 11:32:20 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 6802 invoked by uid 500); 8 Sep 2008 11:32:20 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 6787 invoked by uid 99); 8 Sep 2008 11:32:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Sep 2008 04:32:20 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Sep 2008 11:31:22 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 1E806234C1D0 for ; Mon, 8 Sep 2008 04:31:54 -0700 (PDT) Message-ID: <629434184.1220873514123.JavaMail.jira@brutus> Date: Mon, 8 Sep 2008 04:31:54 -0700 (PDT) From: "Gary Tully (JIRA)" To: dev@activemq.apache.org Subject: [jira] Resolved: (AMQ-1489) discoveryUri in transportConnector and uri in networkConnector partially ignored if multicast In-Reply-To: <1063507.1194438142212.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/AMQ-1489?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gary Tully resolved AMQ-1489. ----------------------------- Resolution: Fixed a bunch of unit tests made use of the group being taken from the unused host portion of the url. changing them to default?group="" resolved the failures. FWIR the group was added to help test isolation on the same subnet. > discoveryUri in transportConnector and uri in networkConnector partially ignored if multicast > --------------------------------------------------------------------------------------------- > > Key: AMQ-1489 > URL: https://issues.apache.org/activemq/browse/AMQ-1489 > Project: ActiveMQ > Issue Type: Bug > Components: Connector > Affects Versions: 4.1.1, 5.0.0 > Reporter: Gerald Loeffler > Assignee: Gary Tully > Fix For: 5.2.0 > > Attachments: patchfile.txt > > > This bug relates to the MulticastDiscoveryAgent and was discovered when > 1. the discoveryUri of a transportConnector is a multicast-uri such as > {code:xml} > > {code} > or > 2. the uri of a networkConnector is a multicast-uri such as > {code:xml} > > {code} > In these cases, the uri is partially ignored by the MulticastDiscoveryAgent: the host-name of the uri (239.3.7.0) is extracted and used as the group name by the MulticastDiscoveryAgent. But the actual multicast group IP is always 239.255.2.3 and the multicast port is always 6155, regardless of what the actual uri is in the configuration. > The reason for this is that MulticastDiscoveryAgentFactory creates a new MulticastDiscoveryAgent and sets the group based on the uri's host, but fails to set the discoveryURI itself. MulticastDiscoveryAgentFactory should be corrected to do this: > {code:java} > MulticastDiscoveryAgent rc = new MulticastDiscoveryAgent(); > rc.setDiscoveryURI(uri); // missing > rc.setGroup(uri.getHost()); > {code} > Without the above setting of the discoveryURI the MulticastDiscoveryAgent always uses the DEFAULT_DISCOVERY_URI_STRING which is "multicast://239.255.2.3:6155", explaining the erroneous behaviour described above. > kind regards, > gerald > http://www.gerald-loeffler.net -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.