我正在尝试使用 MULE 将来自 java 程序的字符串消息发送到 ActiveMQ 中的队列。我是 mule 新手,这是我的 mule-config.xml
<?xml version="1.0" encoding="UTF-8"?>
<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:schemaLocation="
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">
<jms:activemq-connector name="jmsConnector"
specification="1.1"
brokerURL="tcp://localhost:61616" />
<model name="jmsModel">
<service name="jmsService">
<inbound>
</inbound>
<outbound>
<pass-through-router>
<jms:outbound-endpoint queue="myQueue" />
</pass-through-router>
</outbound>
</service>
</model>
</mule>
以下是我的java类
public class MuleCaller {
public static void main(String args[])
{
MuleCaller springCaller = new MuleCaller();
springCaller.runListner();
// spAsync.onMessage(null);
}
public void runListner(){
ClassPathXmlApplicationContext appContext = new ClassPathXmlApplicationContext(new String[] {
"mule-config.xml"
});
}
这里有什么错误,我不清楚要写什么
谢谢并恭祝安康