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

吃可爱长大的小学妹 提交于 2019-12-13 04:43:07

问题


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

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

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.


回答1:


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 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 uses TCP and doesn't require the mqjbnd native library.

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.

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).




回答2:


MQRC_MODULE_NOT_FOUND

Not sure if you got a chance to review this :
& this TechNote



来源:https://stackoverflow.com/questions/27318630/mqje001-completion-code-2-reason-2495

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!