Hi

did you change "someHostName" value to the desired one?


Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
<http://www.tomitribe.com>

2015-12-01 18:15 GMT+01:00 mean_bcp <[email protected]>:

> I am using the out-of-the-box configuration of ActiveMQ as described here:
> http://activemq.apache.org/tomee.html, so I have no broker configured in
> tomee.xml or anywhere else.
>
> Currently, I can write messages to the JMS queue from localhost
> succesfully,
> but when I try to write from another box, I get connection refused.
>
> ConnectionFactory connFactory = new
> ActiveMQConnectionFactory("tcp://localhost:61616"); //This works
> ConnectionFactory connFactory = new
> ActiveMQConnectionFactory("tcp://10.251.116.28:61616"); //Fails
>
> javax.jms.JMSException: Could not connect to broker URL:
> tcp://10.251.116.28:61616. Reason: java.net.ConnectException: Connection
> refused: connect
>
> What configuration do I need to add to make this accessible from another
> box? Thanks!
>
>
>
> --
> View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/ActiveMQ-accessible-as-localhost-only-tp4677069.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>

Reply via email to