具有Websphere默认消息提供程序的Mule JMS连接器

时间:2015-03-22 13:09:31

标签: jms websphere mule sibus

我们正在尝试从我们的mule服务连接到队列。此队列位于Websphere应用程序服务器上,我们使用的是Websphere默认消息提供程序。

我们如何设置连接器配置以匹配此队列? 我们使用默认的JMS连接器.. enter image description here

2 个答案:

答案 0 :(得分:1)

您需要参阅IBM Knowledge Center的解释JNDI Connections to SiBus的部分。

enter image description here

答案 1 :(得分:0)

如果您使用EE,那么我建议使用WMQ连接器。文档可用于:http://www.mulesoft.org/documentation ...

如果必须使用JMS,则需要为WebSphere连接工厂创建一个spring bean,并在JMS连接器connectionFactory-ref属性中使用它。

<spring:bean name="MQConnectionFactory" class="com.ibm.mq.jms.MQQueueConnectionFactory">
<spring:property name="hostName" value="localhost"/>
<spring:property name="port" value="1414"/>
<spring:property name="queueManager" value="localmanager"/>
<spring:property name="transportType" value="1"/>
</spring:bean>

不要忘记将com.ibm.mqjms.jar复制到Mule的类路径中。

如果您正在使用XA事务,则需要使用com.ibm.mq.jms.MQXAQueueConnectionFactory类。

相关问题