After adding the JMS connection flow I get the below error when trying to run the package as Mule Application in Anypoint studio
ERROR 2016-05-03 13:41:12,935 [ActiveMQ Connection Executor: tcp:///54.69.115.37:61616] org.mule.exception.DefaultSystemExcep tionStrategy:
Message : Connection reset (javax.jms.JMSException)
Type : org.mule.transport.ConnectException
Code : MULE_ERROR--2
JavaDoc : h.ttp://www.mulesoft.org/docs/site/current3/apidocs/org/mule/transport/ConnectException........
JMS Code : null
How do I resolve this issue?
Please re-check Broker URL: tcp://54.69.115.37:61616
If still not working, please also check if activemq jar file already added on your build path.
See my sample project below:
<jms:activemq-connector name="Active_MQ" specification="1.1" brokerURL="tcp://54.69.115.37:61616" validateConnections="true" doc:name="Active MQ"/>
<flow name="postTopicMessgeFlow">
<http:listener config-ref="HTTP_Listener_Configuration" path="/jms" doc:name="HTTP"/>
<set-payload value="# [message.inboundProperties.'http.query.params'.message]" doc:name="Set Payload"/>
<set-property propertyName="name" value="Max" doc:name="Set Name"/>
<jms:outbound-endpoint topic="apessentials" connector-ref="Active_MQ" doc:name="JMS"/>
</flow>