简体   繁体   English

JMS连接需要哪些WebSphere MQ连接属性?

[英]Which WebSphere MQ connection attributes are required for JMS connectivity?

While establishing connection to WebSphere MQ over JMS using MQ 7.0 libraries, I am able to set following WMQ-specific connection attributes: 在使用MQ 7.0库通过JMS建立到WebSphere MQ的连接时,我能够设置以下特定于WMQ的连接属性:

  • Hostname 主机名
  • Port 港口
  • Channel 渠道
  • Queue Manager 队列管理器
  • Queue Name 队列名称
  • User ID 用户身份
  • Password 密码

I am pretty sure I would need send things to specific queue, so I believe the Queue Name and Hostname will be always necessary. 我很确定我需要将内容发送到特定的队列,因此我相信始终需要队列名称和主机名。

Which of the remaining are typically always required while establishing a connection via JMS? 通过JMS建立连接时,通常总是需要其余哪些? For example, does it make sense to setup WebSphere MQ in such a way, that no Queue Manager or Channels would exist or be necessary to send messages to specific queue? 例如,以这样一种方式设置WebSphere MQ是否有意义,即不存在队列管理器或通道,也不需要将消息发送到特定队列的通道?

Is it common for such MQ/JMS setup to not use UserID/Password at all? 这种MQ / JMS设置完全不使用UserID / Password是常见的吗?

Depends on the type of connection, server bindings or client bindings . 取决于连接, server bindingsclient bindings In server bindings the queue manager and application communicate using shared memory and in client bindings, the communication is over sockets. server bindings ,队列管理器和应用程序使用共享内存进行通信,而在客户端绑定中,通信通过套接字进行。

When using server bindings only queue manager name is required for establishing a connection whereas host name , port , channel name are required for client bindings . 使用server bindings时,建立连接只需要队列管理器名称,而client bindings则需要host nameportchannel name

UserID and Password are optional for MQ JMS. 用户ID和密码对于MQ JMS是可选的。 As of v7.5, MQ validates only the UserID and not password. 从v7.5开始,MQ仅验证UserID而不验证密码。 If UserID is not specified, MQ JMS will pass the logged in UserID of the machine to the queue manager. 如果未指定UserID,则MQ JMS会将登录的计算机的UserID传递给队列管理器。 Additional components like Security Exit is required for password validation. 密码验证需要其他组件(如Security Exit )。

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

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