send message from java program to activemq using mule -


Iam is trying to send a string message in the queue in ActiveMQ using MULE.Iam from a Java program. The mule is -config.xml

  & lt ;? XML version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Mule xmlns = "http://www.mulesoft.org/schema/mule/core" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xmlns: jms = "http: // Www.mulesoft.org/schema/mule/jms "xsi: schema location =" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans- 3.0 .xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd http://www.springframework.org/schema/tool ​​Http : //www.springframework.org/schema/tool/spring-tool-3.0.xsd http://www.mulesoft.org/schema/mule/jms http://www.mulesoft.org/schema/mule/ Jms / 3.1 / mule-jms.xsd http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/3.1/mule.xsd"> & Lt; Jms: activemq-connector name = "jmsconnector" specification = "1.1" brokerURL = "tcp: // localhost: 61616" /> & Lt; Model name = "JMMdale" & gt; & Lt; Service name = "jms service" & gt; & Lt; Inner & gt; & Lt; / Inner & gt; & Lt; Outbound & gt; & Lt; Pass-through-router & gt; & Lt; JMS: Outbound-Endpoint Qi = "Micueview" /> & Lt; / Pass-through-router & gt; & Lt; / Outbound & gt; & Lt; / Services & gt; & Lt; / Model & gt; & Lt; / Mule & gt;   

and the following is my java class

  public class MuleCaller {public static zero main (string agr []) {original wallor spring colon = new mulecaller () ; SpringCaller.runListner (); // spAsync.onMessage (empty); } Public Zero RunListener () {ClassPath Xml Application Contex Ap contex = new classpath XML application context (new string [] {"bangle-config.xml"}); }   

What are the mistakes here, and what is not written in iam is unclear

thanks and relationship

   & Lt; / Jms: inner-end point & gt; & Lt; Echo component / & gt; & Lt; / Flow & gt;   

Using the ActiveMQ console, you can create a queue named jmsQueue and send it manually. The crisp process using the configuration given above should print whatever text is in the message given in the queue.

Comments