`
sqiutz
  • 浏览: 70107 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

WAS 集成 MQ 方式

阅读更多

通常,在 WAS 中连接 WebSphere MQ 的方式有以下三种方式:
1. 使用 WebSphere MQ 链路
使用 WAS 的管理控制台来配置和管理 WebSphere MQ 链路(WebSphere MQ Link)。该方式在WAS的服务集成总线(SI BUS)与 WebSphere MQ 消息传递网络中的队列管理器之间提供直接连接。连接方式类似 WebSphere MQ 的 server 和 server 的连接,这里把WAS 看作一个 WebSphere MQ Server 来进行配置。
2. 在 WebSphere Application Server 中配置WebSphere MQ 服务器
使用WAS 的管理控制台配置一个 WebSphere MQ 服务器。该方式在 WebSphere Application Server 中的服务集成消息传递引擎与 z/OS WebSphere MQ 队列管理器或队列共享组之间提供直接连接。但是,配置在 WAS 中的 WebSphere MQ 服务器已设计为利用 WebSphere MQ on z/OS 网络提供的高可用性和最优负载均衡特征。所以,这种方式适用于在 WAS 中连接在 z/OS 上的 WebSphere MQ 的情况。
3. 将 WebSphere MQ 用作 WAS 的外部 JMS 提供者
在这种方式中,作为外部 JMS 提供者的 WebSphere MQ 不会将服务集成总线消息传递连接至 WebSphere MQ 网络,它允许直接从 WebSphere Application Server 中访问 WebSphere MQ。采用这种方式,WAS 不需要配置 WebSphere MQ 服务器,也不需要设置SI BUS 相关的内容,只需要在创建 JMS 资源时,选择创建 WebSphere MQ 的资源(MQQueueConnectionFactory和MQQueue)即可。针对 WAS 和 WebSphere MQ 是否安装在同一台机器上,分别有两种配置方法:
(1) 如果 WAS 和 WebSphere MQ 在同一台服务器上,在配置 MQQueueConnectionFactory 的时候,其属性“transportType”选择“BINDING”。
(2) 如果 WAS 和 WebSphere MQ 不在同一台服务器上,在配置 MQQueueConnectionFactory 的时候,其属性“transportType” 选择“CLIENT”。
以上几种方式的详细描述参考WAS InfoCenter:[url=http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=/com.ibm.websphere.pmc.nd.doc/tasks/tjfp0015_.html]http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=/com.ibm.websphere.pmc.nd.doc/tasks/tjfp0015_.html[/url] 
综上所述,通过结合客户实际应用案例,连接 WebSphere MQ 的最佳方式为第三种,尤其当 WAS 和 WebSphere MQ 在同一台服务器上的情况下,即3-(1)。这种配置模式从 WAS 的角度来说最为简单,而且可靠性和性能也都是最佳的。如果 WAS 和 WebSphere MQ 不能在同一台服务器上则推荐3-(2),性能仅次于3-(1)的方式。关于 WAS 与 WebSphere MQ 连接的更多资源,请访问 developerWorks 中国站点文章《保证 WebSphere Application Server 和 WebSphere MQ 之间连接的安全》:[url=http://www.ibm.com/developerworks/cn/websphere/techjournal/0601_ratnasinghe/0601_ratnasinghe.html]第 1 部分[/url] /[url=http://www.ibm.com/developerworks/cn/websphere/techjournal/0601_smithson/0601_smithson.html]第 2 部分[/url] 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics