服务器绑定模式,用于连接Websphere MQ7而不在同一服务器上安装WAS [英] Server binding mode to connect Websphere MQ7 without WAS installed on the same server

查看:179
本文介绍了服务器绑定模式,用于连接Websphere MQ7而不在同一服务器上安装WAS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试设置连接到MQ7中的本地队列管理器的Java应用程序,而不是在绑定模式下在我的机器上安装WebSphere Application Server。如果没有在.bindings文件中指定主机,运行我的应用程序将在以下某处抛出一个java异常:

I've being trying to setup my java application that connects to a local queue manager in MQ7 without a WebSphere Application Server installed on my machine in binding mode. Without specifying the host in the .bindings file, running my application will throw an java exception somewhere along the lines of:


com.ibm。 msg.client.jms.DetailedIllegalStateException:JMSWMQ0018:
无法使用连接模式
'Client'和主机名''连接到队列管理器'TBUKKKNN'。检查队列管理器是否已启动,如果
在客户端模式下运行,请检查是否有运行的侦听器。有关更多信息,请参阅
链接的异常。

com.ibm.msg.client.jms.DetailedIllegalStateException: JMSWMQ0018: Failed to connect to queue manager 'TBUKKKNN' with connection mode 'Client' and host name ''. Check the queue manager is started and if running in client mode, check there is a listener running. Please see the linked exception for more information.

尽管WebSphere MQ的文档明确否定了连接到MQ7的可能性WAS安装在同一台机器上,我的同事非常有信心为此提供解决方法。

Although documentation for WebSphere MQ has explicitly denied possibility of connecting to MQ7 without WAS installed on same machine, my colleagues are very confident that there are workarounds for this.

非常感谢有人能帮我解决这个问题。或者让我知道是否需要对我的问题进行更多澄清。

Much appreciated if anyone could help me with this issue. Or let me know if more clarification on my question is required.

推荐答案

我写了一篇文章,后来解释了如何做到这一点,所以我对任何说明这一点的文档感到有些困惑它无法完成。不仅有解决方法,而且它得到官方支持,WMQ Client安装媒体附带的示例程序包括几个使用Java和JMS但不使用Java EE服务器的程序。如果由于某种原因你只是抓住jar文件而不是安装供应商发行版,你可以免费下载它来获取样本。 v7.0客户端在这里和v7.1客户端在这里。此外,请确保使用与您的客户端版本匹配的文档版本。 v7.0信息中心在这里和v7.1信息中心在这里。顺便说一句,任何客户端版本都可以连接到v7.0 QMgr。

I wrote an article a while back that explains how to do this so I'm a little puzzled about any documentation stating that it can't be done. Not only is there a "workaround" but it is officially supported and the sample programs that come with the WMQ Client install media include several that use Java and JMS but do not use a Java EE server. If for some reason you just grabbed the jar files instead of installing the vendor distribution, you can download it for free to get the samples. The v7.0 client is here and the v7.1 client is here. Also, make sure to use the version of the docs that matches your client version. The v7.0 Infocenter is here and the v7.1 Infocenter is here. Any client version can connect to a v7.0 QMgr, by the way.

无论如何,您的错误消息表明您的连接工厂传输类型仍设置为客户端。您需要将其更改为BIND。这些属性描述为此处。登录页面包含所有受管对象的所有属性列表在这里

Anyway, your error message indicates that your Connection Factory transport type is still set to Client. You'll need to change it to BIND. The properties are described here. The landing page with the list of all the properties of all the administered objects is here.

这篇关于服务器绑定模式,用于连接Websphere MQ7而不在同一服务器上安装WAS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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