Hi,
Yesterday I downloaded and extracted ActiveMQ and ran the consumer/producer example and it worked. Today I did the exact same thing but I get the following feedback:
C:\Java\apache-activemq-5.3.2\example>ant consumer
Buildfile: C:\Java\apache-activemq-5.3.2\example\build.xml
init:
compile:
[javac] C:\Java\apache-activemq-5.3.2\example\build.xml:146: warning: 'includeantruntime' was not set, defaulting to
build.sysclasspath=last; set to false for repeatable builds
consumer:
[echo] Running consumer against server at $url = tcp://localhost:61616 for subject $subject = TEST.FOO
[java] Connecting to URL: tcp://localhost:61616
[java] Consuming queue: TEST.FOO
[java] Using a non-durable subscription
[java] Caught: javax.jms.JMSException: Could not connect to broker URL: tcp://localhost:61616. Reason: java.net.Con
nectException: Connection refused: connect
[java] javax.jms.JMSException: Could not connect to broker URL: tcp://localhost:61616. Reason: java.net.ConnectExce
ption: Connection refused: connect
[java] at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:35)
[java] at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java
:286)
[java] at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java
:230)
[java] at org.apache.activemq.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:178)
[java] at ConsumerTool.run(Unknown Source)
[java] at ConsumerTool.main(Unknown Source)
[java] Caused by: java.net.ConnectException: Connection refused: connect
[java] at java.net.PlainSocketImpl.socketConnect(Native Method)
[java] at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
[java] at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
[java] at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
[java] at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
[java] at java.net.Socket.connect(Socket.java:529)
[java] at org.apache.activemq.transport.tcp.TcpTransport.connect(TcpTransport.java:436)
[java] at org.apache.activemq.transport.tcp.TcpTransport.doStart(TcpTransport.java:402)
[java] at org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:53)
[java] at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:57)
[java] at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:57)
[java] at org.apache.activemq.transport.WireFormatNegotiator.start(WireFormatNegotiator.java:72)
[java] at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:57)
[java] at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:57)
[java] at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java
:266)
[java] ... 4 more
BUILD SUCCESSFUL
Total time: 16 seconds
I've tried to telnet into the port 61616 and it says:
Connecting To 172.16.1.156...Could not open connection to the host, on port 61616: Connect failed
Thanks,
Ashton.