MQJE001:完成代码"2",原因为"2495" [英] MQJE001: Completion Code '2', Reason '2495'

查看:410
本文介绍了MQJE001:完成代码"2",原因为"2495"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试将消息放入MQ时,出现以下错误.

When i try to put message into the MQ, I get the following error.

MQJE001:完成代码"2",原因为"2495".

MQJE001: Completion Code '2', Reason '2495'.

我试图用Google搜索它.我能够找到的解决方案是,如果JRE,Eclipse和MQ不兼容(兼容32位和64位),则可能会出现此问题.

I tried to Google it up. The solution I was able to find is that this issue might arise if the JRE, Eclipse and the MQ are not compatible (Compatible as in 32 and 64 bit).

在此先感谢您指出问题可能在何处,以及有关如何解决该问题的任何建议.

Thanks in advance for pointing out where the problem could be and any suggestion regarding how to solve it will be appreciated.

推荐答案

当您将应用程序配置为以BINDINGS模式(而不是CLIENT模式)进行连接,并且Java MQ类无法找到该问题时,通常会发生此问题.以BINDINGS模式连接所需的本机库mqjbnd.

This problem usually occurs when you've configured your application to connect in BINDINGS mode (rather than CLIENT mode), and the Java MQ classes are unable to find the native library mqjbnd which is required to connect in BINDINGS mode.

BINDINGS使用共享内存与队列管理器而不是TCP进行通信,并且需要mqjbnd库来执行此操作. BINDINGS模式比CLIENT更快.

BINDINGS uses shared memory to communicate with the queue manager rather than TCP, and requires the mqjbnd library to do this. BINDINGS mode is faster than CLIENT.

CLIENT使用TCP,不需要mqjbnd本机库.

CLIENT uses TCP and doesn't require the mqjbnd native library.

要使mqjbnd库可用,您的应用程序必须与队列管理器在同一台物理计算机上运行.如果不是,则必须使用CLIENT.

To have the mqjbnd library available, your application must be running on the same physical machine as the queue manager. If you're not, you must use CLIENT.

如果您使用的是7.1+版本,那么最简单的方法是在运行应用程序之前运行setmqenv来设置您的环境.如果您使用的是7.0,则需要通过设置Java库路径-MQ_JAVA_LIB_PATH =/path/to/mqinstall/java/lib(如果是64位JVM,则为lib64)来手动执行此操作.

If you're on 7.1+, then the easiest way is to run setmqenv to setup your environment prior to running your application. If you're on 7.0 then you need to do this manually by setting the Java library path - MQ_JAVA_LIB_PATH=/path/to/mqinstall/java/lib (or lib64 if you're a 64-bit JVM).

这篇关于MQJE001:完成代码"2",原因为"2495"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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