【问题标题】:Mule JMS connector with Websphere default messages provider带有 Websphere 默认消息提供程序的 Mule JMS 连接器
【发布时间】:2015-05-25 12:42:05
【问题描述】:

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

我们如何设置我们的连接器配置来匹配这个队列? 我们正在使用默认的 JMS 连接器。

【问题讨论】:

    标签: jms websphere mule sibus


    【解决方案1】:

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

    【讨论】:

    • 我们没有使用 WebsphereMQ.... 我们使用的是 Websphere 默认消息传递提供程序 SIbus。 Websphere 默认消息传递提供程序的连接器配置是什么?
    • 如果您想获得相关答案,您应该在问题中提及 SiBus。
    【解决方案2】:

    如果您使用的是 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 类。

    【讨论】:

      猜你喜欢
      • 2016-08-09
      • 2015-11-23
      • 2023-04-08
      • 2017-11-24
      • 2017-07-06
      • 1970-01-01
      • 1970-01-01
      • 2015-01-25
      • 1970-01-01
      相关资源
      最近更新 更多