Spring 对 Clustered/high 可用性 IBM MQ 管理器的集成支持
Spring integration support for Clustered/high availability IBM MQ manager
我正在使用 spring 集成来连接 IBM MQ。我的 spring 集成应用程序已成功连接到 IBM MQ。现在 MQ 团队将 MQ 管理器作为集群管理器,即队列管理器包含 2 台主机,一台是主动主机,一台是被动主机,因为如果一台主机关闭,那么被动主机将启动并且 运行。
下面是我的 spring MQ 集成配置,我只能传递一个主机。
<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>
有什么方法可以让我们从配置中同时传递主动主机和被动主机。我尝试在主机中使用逗号,但不支持。
请推荐
您应该在 属性 connectionNameList 下指定主机,不要使用主机名和端口。
http://www-01.ibm.com/support/docview.wss?uid=swg21397867
Multi Instance MQ set up
ConnectionNameList 将允许传递主动和被动主机
<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>
我正在使用 spring 集成来连接 IBM MQ。我的 spring 集成应用程序已成功连接到 IBM MQ。现在 MQ 团队将 MQ 管理器作为集群管理器,即队列管理器包含 2 台主机,一台是主动主机,一台是被动主机,因为如果一台主机关闭,那么被动主机将启动并且 运行。 下面是我的 spring MQ 集成配置,我只能传递一个主机。
<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>
有什么方法可以让我们从配置中同时传递主动主机和被动主机。我尝试在主机中使用逗号,但不支持。
请推荐
您应该在 属性 connectionNameList 下指定主机,不要使用主机名和端口。
http://www-01.ibm.com/support/docview.wss?uid=swg21397867
Multi Instance MQ set up
ConnectionNameList 将允许传递主动和被动主机
<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>