skip to Main Content

I was trying to run Apache Activemq , broker ran successfully at localhost. At same machine JMS producer , consumer Java applications ran successfully . BUT I changed Uri to tcp://192.168.1.1:61616 in activemq.xml and ran the broker in machine 1( 192.168.1.1) . I ran consumer in machine 1. I ran producer from machine 2 in LAN. But producer caused jms exception. ConnectException. Connection refused. As a result producer and consumer can not communicate in LAN . Please guide.

2

Answers


  1. Chosen as BEST ANSWER

    Thank you very much. It was firewall that was preventing connection. I disabled firewall, things is running fine. Regards.


  2. If I understand this correctly you have this setup:

    • Machine1: ActiveMQ Broker and Consumer
    • Machine2: Producer

    Then you need to setup your configurations like this:

    1. ActiveMQ Broker: in activemq.xml set to tcp://192.168.1.1:61616
    2. Consumer: tcp://192.168.1.1:61616
    3. Producer: tcp://192.168.1.1:61616
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search