From users-return-29540-apmail-activemq-users-archive=activemq.apache.org@activemq.apache.org Sun Dec 4 08:22:37 2011 Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D763E9F61 for ; Sun, 4 Dec 2011 08:22:37 +0000 (UTC) Received: (qmail 41105 invoked by uid 500); 4 Dec 2011 08:22:37 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 41047 invoked by uid 500); 4 Dec 2011 08:22:37 -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 41039 invoked by uid 99); 4 Dec 2011 08:22:36 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Dec 2011 08:22:36 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of robinhuiser@gmail.com designates 209.85.215.171 as permitted sender) Received: from [209.85.215.171] (HELO mail-ey0-f171.google.com) (209.85.215.171) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Dec 2011 08:22:28 +0000 Received: by eaad12 with SMTP id d12so4362103eaa.2 for ; Sun, 04 Dec 2011 00:22:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=NWU/6dN14xHLKokXcZUgnvWpmq4EH035tIlxlFMqHA8=; b=hdosd4xXKfcR5+d/S4b7t1RieLVOptlF0LgWUZ1NP+d03u2ABgDdyUOcSqHzk+cjZM DzGEN2646EdnxIm8ZOn0QWXA0S51fDHDIhmcs2vYvr3JGOeAquIBbu18zp43ILuFex6S mtPmZRFxSFJzqb4pGJvlENian4/ohk2cYTweE= Received: by 10.213.105.203 with SMTP id u11mr254346ebo.96.1322986928238; Sun, 04 Dec 2011 00:22:08 -0800 (PST) Received: from [10.0.2.2] (dhcp-095-096-093-019.chello.nl. [95.96.93.19]) by mx.google.com with ESMTPS id v3sm44943239eej.7.2011.12.04.00.22.06 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 04 Dec 2011 00:22:06 -0800 (PST) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Apple Message framework v1084) Subject: Re: [newbie] can't get brokers on two computers to connect From: Robin Huiser In-Reply-To: <1322976092088-4156142.post@n4.nabble.com> Date: Sun, 4 Dec 2011 09:22:03 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: <1322976092088-4156142.post@n4.nabble.com> To: users@activemq.apache.org X-Mailer: Apple Mail (2.1084) X-Virus-Checked: Checked by ClamAV on apache.org Hi, Looks like you are just listening on your Linux box to your loopback = adapter (localhost): > 2011-12-03 20:29:37,562 | INFO | Listening for connections at: > tcp://localhost.localdomain:61617 | ...which you also did configure: > I'm a CORBA guy entering the AMQ world. I've read "Active MQ in = action > (=A92011 by Manning Publications Co)". I've gone through most of the = book and > managed to get most of the examples to work on a single computer. As = a > first-shot at computer to computer communicatoin, I've modified the = Static > networks example on pg 85 to run on two computers. I cannot get the = Broker > to connect! >=20 > The following is my setup and output. I am by no means a Linux or > networking Guru so it's real likely I'm doing something dumb in that = arena.=20 > I trying to show my co-workers that AMQ will handle our MOM needs. = I'm not > having much luck. I really need help! Thanks a BUNCH! >=20 > [CENTOS 5.3, Windows XP (AMQ 5.5.1, java 1.6 on both platforms)] >=20 > [[[[[[[[[[[[Linux]]]]]]]]]]]]]]]]]]]]]]]] > --- ifconfig = ------------------------------------------------------------- > [root@localhost bin]# ifconfig -a > eth0 Link encap:Ethernet HWaddr 00:14:22:39:65:9F =20 > inet addr:192.168.0.106 Bcast:192.168.0.255 = Mask:255.255.255.0 > inet6 addr: fe80::214:22ff:fe39:659f/64 Scope:Link > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 > RX packets:116200 errors:0 dropped:0 overruns:0 frame:0 > TX packets:59263 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:1000=20 > RX bytes:131382646 (125.2 MiB) TX bytes:5864826 (5.5 MiB) > Interrupt:169=20 >=20 > lo Link encap:Local Loopback =20 > inet addr:127.0.0.1 Mask:255.0.0.0 > inet6 addr: ::1/128 Scope:Host > UP LOOPBACK RUNNING MTU:16436 Metric:1 > RX packets:3407 errors:0 dropped:0 overruns:0 frame:0 > TX packets:3407 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:0=20 > RX bytes:2509108 (2.3 MiB) TX bytes:2509108 (2.3 MiB) >=20 > sit0 Link encap:IPv6-in-IPv4 =20 > NOARP MTU:1480 Metric:1 > RX packets:0 errors:0 dropped:0 overruns:0 frame:0 > TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:0=20 > RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) >=20 > --- install/run as root = -------------------------------------------------- > [root@localhost bin]# activemq start xbean:brokerB.xml=20 > INFO: Loading '/etc/default/activemq' > INFO: Using java '/usr/java/default/bin/java' > INFO: Starting - inspect logfiles specified in logging.properties and > log4j.properties to get details > INFO: pidfile created : '/opt/apache-activemq-5.5.1/data/activemq.pid' = (pid > '10647') > ---activemq.log------------------- > 2011-12-03 20:29:35,133 | INFO | Refreshing > org.apache.activemq.xbean.XBeanBrokerFactory$1@199f91c: startup date = [Sat > Dec 03 20:29:35 PST 2011]; root of context hierarchy | > org.apache.activemq.xbean.XBeanBrokerFactory$1 | main > 2011-12-03 20:29:36,233 | INFO | > PListStore:${activemq.base}/data/BrokerB/tmp_storage started | > org.apache.activemq.store.kahadb.plist.PListStore | main > 2011-12-03 20:29:36,388 | INFO | JMX consoles can connect to > service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi | > org.apache.activemq.broker.jmx.ManagementContext | JMX connector > 2011-12-03 20:29:36,407 | INFO | Using Persistence Adapter: > = KahaDBPersistenceAdapter[/opt/apache-activemq-5.5.1/bin/${activemq.base}/d= ata/BrokerB/KahaDB] > | org.apache.activemq.broker.BrokerService | main > 2011-12-03 20:29:37,316 | INFO | KahaDB is version 3 | > org.apache.activemq.store.kahadb.MessageDatabase | main > 2011-12-03 20:29:37,350 | INFO | Recovering from the journal ... | > org.apache.activemq.store.kahadb.MessageDatabase | main > 2011-12-03 20:29:37,351 | INFO | Recovery replayed 1 operations from = the > journal in 0.027 seconds. | = org.apache.activemq.store.kahadb.MessageDatabase > | main > 2011-12-03 20:29:37,363 | INFO | ActiveMQ 5.5.1 JMS Message Broker > (BrokerB) is starting | org.apache.activemq.broker.BrokerService | = main > 2011-12-03 20:29:37,364 | INFO | For help or more information please = see: > http://activemq.apache.org/ | org.apache.activemq.broker.BrokerService = | > main > 2011-12-03 20:29:37,562 | INFO | Listening for connections at: > tcp://localhost.localdomain:61617 | > org.apache.activemq.transport.TransportServerThreadSupport | main > 2011-12-03 20:29:37,562 | INFO | Connector openwire Started | > org.apache.activemq.broker.TransportConnector | main > 2011-12-03 20:29:37,565 | INFO | ActiveMQ JMS Message Broker = (BrokerB, > ID:localhost.localdomain-45075-1322972977392-0:1) started | > org.apache.activemq.broker.BrokerService | main > --- brokerB.xml---------------------------- > xmlns=3D"http://www.springframework.org/schema/beans" > xmlns:amq=3D"http://activemq.apache.org/schema/core" > xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation=3D"http://www.springframework.org/schema/beans > http://www.springframework.org/schema/beans/spring-beans-2.0.xsd > http://activemq.apache.org/schema/core > http://activemq.apache.org/schema/core/activemq-core.xsd"> >=20 > brokerName=3D"BrokerB" dataDirectory=3D"${activemq.base}/data"> >=20 > > /> > >=20 > >=20 > >=20 >=20 >=20 > [[[[[[[[[[[[[[[Windows]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]] > =3D=3D=3D ipconfig =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > c:\>ipconfig /all >=20 > Windows IP Configuration >=20 > Host Name . . . . . . . . . . . . : lca8pce00269417 > Primary Dns Suffix . . . . . . . : northgrum.com > Node Type . . . . . . . . . . . . : Hybrid > IP Routing Enabled. . . . . . . . : No > WINS Proxy Enabled. . . . . . . . : No > DNS Suffix Search List. . . . . . : Northgrum.com > NGIT.Northgrum.com > NGMS.Northgrum.com >=20 > Ethernet adapter Wireless Network Connection: >=20 > Media State . . . . . . . . . . . : Media disconnected > Description . . . . . . . . . . . : Intel(R) Centrino(R) = Advanced-N > 620 > AGN > Physical Address. . . . . . . . . : 18-3D-A2-73-0A-BC >=20 > Ethernet adapter Northrop Grumman LAN: >=20 > Connection-specific DNS Suffix . : sd.cox.net > Description . . . . . . . . . . . : Intel(R) 82577LM Gigabit = Network > Co > nection > Physical Address. . . . . . . . . : 88-AE-1D-AE-96-6F > Dhcp Enabled. . . . . . . . . . . : Yes > Autoconfiguration Enabled . . . . : Yes > IP Address. . . . . . . . . . . . : 192.168.0.107 > Subnet Mask . . . . . . . . . . . : 255.255.255.0 > Default Gateway . . . . . . . . . : 192.168.0.1 > DHCP Server . . . . . . . . . . . : 192.168.0.1 > DNS Servers . . . . . . . . . . . : 192.168.0.1 > Lease Obtained. . . . . . . . . . : Saturday, December 03, 2011 > 10:53:4 > AM > Lease Expires . . . . . . . . . . : Saturday, December 10, 2011 > 10:53:4 > AM >=20 > =3D=3D=3D output =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > c:\apache-activemq-5.5.1\bin>activemq xbean:brokerA.xml > Java Runtime: Sun Microsystems Inc. 1.6.0_29 > C:\Progra~1\Java\jdk1.6.0_29\jre > Heap sizes: current=3D15872k free=3D14525k max=3D506816k > JVM args: -Dcom.sun.management.jmxremote -Xmx512M > -Dorg.apache.activemq.UseD > edicatedTaskRunner=3Dtrue = -Djava.util.logging.config.file=3Dlogging.properties > -Dact > = ivemq.classpath=3Dc:\apache-activemq-5.5.1\bin\../conf;c:\apache-activemq-= 5.5.1\bi > n\../conf; -Dactivemq.home=3Dc:\apache-activemq-5.5.1\bin\.. > -Dactivemq.base=3Dc:\ap > ache-activemq-5.5.1\bin\.. > ACTIVEMQ_HOME: c:\apache-activemq-5.5.1\bin\.. > ACTIVEMQ_BASE: c:\apache-activemq-5.5.1\bin\.. > Loading message broker from: xbean:brokerA.xml > INFO | Refreshing = org.apache.activemq.xbean.XBeanBrokerFactory$1@13f3045: > start > up date [Sat Dec 03 20:25:48 PST 2011]; root of context hierarchy > INFO | PListStore:${activemq.base}\data\BrokerA\tmp_storage started > INFO | Using Persistence Adapter: > KahaDBPersistenceAdapter[c:\apache-activemq-5 > .5.1\bin\${activemq.base}\data\BrokerA\KahaDB] > INFO | JMX consoles can connect to > service:jmx:rmi:///jndi/rmi://localhost:1099 > /jmxrmi > INFO | ActiveMQ 5.5.1 JMS Message Broker (BrokerA) is starting > INFO | For help or more information please see: = http://activemq.apache.org/ > INFO | Listening for connections at: tcp://localhost:61616 > INFO | Connector openwire Started > INFO | Establishing network connection from > vm://BrokerA?async=3Dfalse&network=3Dtr > ue to tcp://192.168.0.106:61617 > INFO | Connector vm://BrokerA Started > INFO | Connector vm://BrokerA Stopped > INFO | BrokerA Shutting down > WARN | Could not start network bridge between: > vm://BrokerA?async=3Dfalse&network > =3Dtrue and: tcp://192.168.0.106:61617 due to: > java.net.NoRouteToHostException: No > route to host: connect > INFO | BrokerA bridge to Unknown stopped > INFO | Network Connector > DiscoveryNetworkConnector:NC:BrokerService[BrokerA] St > arted > INFO | Establishing network connection from > vm://BrokerA?async=3Dfalse&network=3Dtr > ue to tcp://192.168.0.106:61617 > INFO | Connector vm://BrokerA Started > INFO | ActiveMQ JMS Message Broker (BrokerA, > ID:lca8pce00269417-3490-1322972748 > 875-0:1) started > INFO | BrokerA Shutting down > INFO | BrokerA bridge to Unknown stopped > INFO | Connector vm://BrokerA Stopped > WARN | Could not start network bridge between: > vm://BrokerA?async=3Dfalse&network > =3Dtrue and: tcp://192.168.0.106:61617 due to: > java.net.NoRouteToHostException: No > route to host: connect > INFO | Establishing network connection from > vm://BrokerA?async=3Dfalse&network=3Dtr > ue to tcp://192.168.0.106:61617 > INFO | Connector vm://BrokerA Started > INFO | BrokerA Shutting down > INFO | BrokerA bridge to Unknown stopped > INFO | Connector vm://BrokerA Stopped > WARN | Could not start network bridge between: > vm://BrokerA?async=3Dfalse&network > =3Dtrue and: tcp://192.168.0.106:61617 due to: > java.net.NoRouteToHostException: No > route to host: connect > INFO | Establishing network connection from > vm://BrokerA?async=3Dfalse&network=3Dtr > ue to tcp://192.168.0.106:61617 > INFO | Connector vm://BrokerA Started > INFO | BrokerA Shutting down > INFO | BrokerA bridge to Unknown stopped > INFO | Connector vm://BrokerA Stopped > WARN | Could not start network bridge between: > vm://BrokerA?async=3Dfalse&network > =3Dtrue and: tcp://192.168.0.106:61617 due to: > java.net.NoRouteToHostException: No > route to host: connect > INFO | Establishing network connection from > vm://BrokerA?async=3Dfalse&network=3Dtr > ue to tcp://192.168.0.106:61617 > INFO | Connector vm://BrokerA Started > =3D=3D=3D=3D brokerA.xml > xmlns=3D"http://www.springframework.org/schema/beans" > xmlns:amq=3D"http://activemq.apache.org/schema/core" > xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation=3D"http://www.springframework.org/schema/beans > http://www.springframework.org/schema/beans/spring-beans-2.0.xsd > http://activemq.apache.org/schema/core > http://activemq.apache.org/schema/core/activemq-core.xsd"> >=20 > brokerName=3D"BrokerA" dataDirectory=3D"${activemq.base}/data"> >=20 > > > >=20 > > /> > >=20 >=20 > >=20 > >=20 >=20 >=20 >=20 > -- > View this message in context: = http://activemq.2283324.n4.nabble.com/newbie-can-t-get-brokers-on-two-comp= uters-to-connect-tp4156142p4156142.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com.