简体   繁体   English

Websphere MQ JMS-配置选项

[英]Websphere MQ JMS - Configuration Options

I am currently successfully using an MQConnectionFactory to connect and post to a Websphere MQ queue using JMS. 我目前已成功使用MQConnectionFactory使用JMS连接并发布到Websphere MQ队列。

However I'm getting a requirement from a client that I must use mqclient.ini instead. 但是,我从客户端得到的要求是必须使用mqclient.ini代替。

So my question is, for a 'standard' JMS setup, should I be using: 所以我的问题是,对于“标准” JMS设置,我应该使用:

? What would one use one over the other? 一个会比另一个有什么用? Does one take precedence over another? 一个优先于另一个吗?

The mqclient.ini and JMSconfig files are used setting attributes like what client side exits to use, TCP level overrides etc. They are basically used for configuring the client libraries/jars. mqclient.ini和JMSconfig文件用于设置属性,例如要使用的客户端出口,TCP级别覆盖等。它们基本上用于配置客户端库/ jar。 They are not meant for application configuration for example what queue manager or queue to use. 它们并不用于应用程序配置,例如要使用的队列管理器或队列。 This sort of info, connection factory or destination info, is typically pulled from a JNDI so that the configuration can be modified without affecting application. 通常从JNDI中提取此类信息(连接工厂或目标信息),以便可以修改配置而不影响应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM