对集群/高可用性IBM MQ管理器的Spring集成支持 [英] Spring integration support for Clustered/high availability IBM MQ manager

查看:150
本文介绍了对集群/高可用性IBM MQ管理器的Spring集成支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用spring集成与IBM MQ连接.我的spring集成应用程序已成功与IBM MQ连接.现在,MQ团队使MQ管理器成为集群管理器,即队列管理器包含2台主机,一台是主动的,一台是被动的,因为如果一台主机宕机了,那一台将启动并运行. 下面是我针对MQ的spring集成配置,我只能传递一个主机.

I am using spring integration to connect with the IBM MQ. My spring integration application is connecting successfully with IBM MQ. Now the MQ team made the MQ manager as the clustered manager i.e. queue manager is containing 2 host one active and one passive because if one host is down the passive one will up and running. Below is my spring integration configuration for MQ and I can pass only one host.

<bean id="mqQueueConnectionFactory" class="com.ibm.mq.jms.MQQueueConnectionFactory">
        <property name="hostName" value=""/>
        <property name="port" value=""/>
        <property name="channel" value=""/>
        <property name="queueManager" value=""/>
        <property name="transportType" value="1"/>
    </bean>

是否可以通过任何方式从配置中传递主动主机和被动主机.我尝试在主机中使用逗号,但是不支持.

Is there any way by which we can pass both the active and passive host's from the configuration. I tried with the comma in host but that is not supported .

请提出建议

推荐答案

ConnectionNameList将允许传递主动和被动主机

The ConnectionNameList will allow to pass the active and passive host

 <bean id="mqQueueConnectionFactory" class="com.ibm.mq.jms.MQQueueConnectionFactory">
        <property name="connectionNameList" value="activeHost(port),passiveHost(port)"/>
        <property name="channel" value="channel Name"/>
        <property name="queueManager" value="Queue Manager name"/>
        <property name="transportType" value="transport type"/>
  </bean>

这篇关于对集群/高可用性IBM MQ管理器的Spring集成支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆