Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 47465 invoked from network); 25 Aug 2010 02:06:24 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 25 Aug 2010 02:06:24 -0000 Received: (qmail 23697 invoked by uid 500); 25 Aug 2010 02:06:24 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 23645 invoked by uid 500); 25 Aug 2010 02:06:23 -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 23637 invoked by uid 99); 25 Aug 2010 02:06:23 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Aug 2010 02:06:23 +0000 X-ASF-Spam-Status: No, hits=1.0 required=10.0 tests=FORGED_YAHOO_RCVD,FREEMAIL_FROM,SPF_HELO_PASS,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Aug 2010 02:06:01 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1Oo5My-0002Y2-VU for users@activemq.apache.org; Tue, 24 Aug 2010 19:05:40 -0700 Message-ID: <29528110.post@talk.nabble.com> Date: Tue, 24 Aug 2010 19:05:40 -0700 (PDT) From: kapasars To: users@activemq.apache.org Subject: network of brokers topics are not being forwarded to other borkers MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: kapasars@yahoo.com X-Virus-Checked: Checked by ClamAV on apache.org I am building proof of concept to have 3 brokers, all connected to each other, and forwarding one topic messages to each other. Also wanted to do all in java instead of config files. In activemg 5.3.2 servers do not connect to each other in 5.4 they but if I publish a message the message is not published to other servers. I'm kind of at a loss why this happens and any suggestion much appreciated. instance 1: name: my_test_server_1 connectorURL: tcp://localhost:6060 netconnURL: [tcp://localhost:6060,tcp://localhost:6061,tcp://localhost:6062] instance 2: name: my_test_server_2 connectorURL: tcp://localhost:6060 netconnURL: [tcp://localhost:6060,tcp://localhost:6061,tcp://localhost:6062] public MyEmbededBroker(String name, String connectorURL, String[] netconnURL) throws Exception{ BrokerService broker = new BrokerService(); broker.setBrokerName(name); broker.addConnector(connectorURL); broker.setPersistent(true); broker.setUseJmx(false); broker.setAdvisorySupport(true); for(String connection : netconnURL){ if(!connectorURL.equals(connection)){ System.out.println("adding conector "+connection); DiscoveryNetworkConnector dconn = new DiscoveryNetworkConnector(new URI("static:("+connection+")?useExponentialBackOff=false")); //dconn.setName("beachnetwork_"+connection); dconn.setDuplex(false); dconn.setNetworkTTL(4); //dconn.setDynamicOnly(true); dconn.setConduitSubscriptions(false); dconn.setDispatchAsync(true); dconn.setPrefetchSize(1); broker.addNetworkConnector(dconn); } } broker.start(); } If I publish a message to a topic that all servers have subscribed only server it was published receives it, no copy is sent to others. http://old.nabble.com/file/p29528110/TestMessageProducer.java TestMessageProducer.java http://old.nabble.com/file/p29528110/SyncServer.java SyncServer.java http://old.nabble.com/file/p29528110/MyEmbededBroker.java MyEmbededBroker.java -- View this message in context: http://old.nabble.com/network-of-brokers-topics-are-not-being-forwarded-to-other-borkers-tp29528110p29528110.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.