将jms消息发布到WMQ mule

时间:2014-10-27 06:19:38

标签: mule

我想将jms消息发布到Websphere MQ,所以我在我的mule配置文件中进行了配置更改

targetClient =“JMS_COMPLIANT”specification =“1.1”/>

但我仍然无法发布jms消息,我收到的错误如

Root异常堆栈跟踪: com.ibm.msg.client.jms.DetailedJMSException:JMSCMQ0004:值'-999999999'对属性'targetClient'无效。 属性“targetClient”的值不是此属性的有效值。 将属性设置为有效值。     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)     + 3个以上(设置调试级别日志记录或'-Dmule.verbose.exceptions = true'用于所有内容)

根据我的项目要求,我不能在这里使用Jms连接器, 任何人都可以帮助我在不使用Jms连接器的情况下将JMS消息发布到WMQ

以下是我的配置

<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns:ftp="http://www.mulesoft.org/schema/mule/ee/ftp" xmlns:data-mapper="http://www.mulesoft.org/schema/mule/ee/data-mapper" xmlns:wmq="http://www.mulesoft.org/schema/mule/ee/wmq" xmlns:file="http://www.mulesoft.org/schema/mule/file" xmlns:tracking="http://www.mulesoft.org/schema/mule/ee/tracking" xmlns:jms="http://www.mulesoft.org/schema/mule/jms" xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation"
xmlns:spring="http://www.springframework.org/schema/beans" version="EE-3.5.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-current.xsd
http://www.mulesoft.org/schema/mule/core     http://www.mulesoft.org/schema/mule/core/current/mule.xsd
http://www.mulesoft.org/schema/mule/ee/wmq http://www.mulesoft.org/schema/mule/ee/wmq/current/mule-wmq-ee.xsd
http://www.mulesoft.org/schema/mule/file http://www.mulesoft.org/schema/mule/file/current/mule-file.xsd
http://www.mulesoft.org/schema/mule/jms http://www.mulesoft.org/schema/mule/jms/current/mule-jms.xsd
http://www.mulesoft.org/schema/mule/ee/tracking http://www.mulesoft.org/schema/mule/ee/tracking/current/mule-tracking-ee.xsd
http://www.mulesoft.org/schema/mule/ee/data-mapper http://www.mulesoft.org/schema/mule/ee/data-mapper/current/mule-data-mapper.xsd
http://www.mulesoft.org/schema/mule/ee/ftp http://www.mulesoft.org/schema/mule/ee/ftp/current/mule-ftp-ee.xsd">
<wmq:connector name="MyQueue" hostName="XXX" port="XXX" transportType="CLIENT_MQ_TCPIP" validateConnections="true" doc:name="WMQ" channel="SYSTEM.DEF.SVRCONN" queueManager="DevQueueManager1" password="XXX" username="XXX" targetClient="JMS_COMPLIANT"/>
<jms:object-to-jmsmessage-transformer name="Object_to_JMSMessage" doc:name="Object to JMSMessage"/>
<flow name="mqconnectorflowFlow" doc:name="mqconnectorflowFlow">
    <file:inbound-endpoint path="D:\Mule-Documents\MyTasks\WMQ\In" responseTimeout="10000" doc:name="File"/>
    <wmq:outbound-endpoint queue="DevQueue"  connector-ref="MyQueue" doc:name="WMQ" targetClient="JMS_COMPLIANT"/>
</flow>

0 个答案:

没有答案