activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Tully <gary.tu...@gmail.com>
Subject Re: Could not connect starting broker as localhost.
Date Wed, 20 Jan 2010 19:47:22 GMT
localhost binds to the loopback address, an interface that is local to a
host. You can bind to a particular IP address or all interfaces with the
wildcard address 0.0.0.0
For more detail see: https://issues.apache.org/activemq/browse/AMQ-2094

2010/1/20 JPfernandes <jpaulo.melo@gmail.com>

>
> Im using activeMQ and starting my server broker like:
> //----------------------------------------------------------------
> BrokerService broker = new BrokerService();
> broker.addConnector("tcp://localhost:61616");
> broker.start();
>
> why when i try to connect to my server using:
> connectionFactory = new ActiveMQConnectionFactory(
> "tcp://192.168.0.4:61616");
>
> javax.jms.JMSException: Could not connect to broker URL:
> tcp://192.168.0.4:61616. Reason: java.net.ConnectException: Connction
> refused
>
> and  if i start the server broker with IP instead of 'localhost' it works
> well ?
>
> Thanks, JP
> --
> View this message in context:
> http://old.nabble.com/Could-not-connect-starting-broker-as-localhost.-tp27247367p27247367.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>


-- 
http://blog.garytully.com

Open Source Integration
http://fusesource.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message