ibm-mq

IBM MQ issue with cluster queue

萝らか妹 提交于 2019-12-06 15:47:44
Not able to put a message to a cluster queue on a remote queue manager. I am using MQGetMessageOptions and MQPutMessageOptions. I am using 7.5 MQ server and client (7.5.0.1) It throws reason code - 2085- message -CompCode: 2, Reason: 2085 The queue and queue manager are connected using MQ clusters. mqQueue = mqQueueMgr.AccessQueue("queue name", MQC.MQOO_FAIL_IF_QUIESCING | MQC.MQOO_INPUT_SHARED | MQC.MQOO_BROWSE); I tried to put a test message using amqsput.exe it works fine there. Any thoughts? This call: mqQueue = mqQueueMgr.AccessQueue("queue name", MQC.MQOO_FAIL_IF_QUIESCING | MQC.MQOO

MQ Explorer - Could not load SWT library

妖精的绣舞 提交于 2019-12-06 15:37:42
Installed IBM MQ 8.0.0.4 developer instance in Linux VM (Centos). When launching MQ explorer, using command strmqcfg (getting the following error). !ENTRY org.eclipse.osgi 4 0 2016-01-14 13:33:43.226 !MESSAGE Application error !STACK 1 java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons: /home/mqm/.eclipse/com.ibm.mq.explorer.ui.rcp.RcpApplication_8.0.0.201510171407_1624510073_linux_gtk_x86_64/configuration/org.eclipse.osgi/bundles/500/1/.cp/libswt-pi-gtk-4333.so (libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory) swt-pi-gtk (Not found in java

On Windows - where is a mqji.properties for me to use?

时间秒杀一切 提交于 2019-12-06 15:18:50
My application is a stand alone Java app, that customers download, install and run. It uses MQ to communicate with a host, which has been working for years. Neither myself nor customers have anything MQ installed on their Windows machines; we include and use com.ibm.mq.jar to do the work. Apparently though, MQ needs a mqji.properties file in the classpath to prevent this : Unable to load message catalog - mqji com.ibm.mq.MQException: Message catalog not found So my question is : Where do I get one?? Here is a copy of my mqji.properties file. Copy and paste into a text editor. Save as mqji

Upgrade of Java 8 and MQ - NoClassDEfFoundError

旧城冷巷雨未停 提交于 2019-12-06 14:58:27
we recently upgraded our code to Java 8. As part of it MQ was also upgraded to MQ 9. We are using two components jms(7.0.1.6) and jmqi(7.0.1.6) earlier. Now we replaced both the jars with allclient and tracecontrol of MQ 9.0.0.0 JAR. 2017-10-24 02:30:07 INFO server.SqlService<start:29> - SQL Exception in thread "main" java.lang.NoClassDefFoundError: javax/jms/JMSRuntimeException at com.ibm.mq.jms.MQDestination.<clinit>(MQDestination.java:71) at com.epo.core.server.config.LdapConfig.getQueue(LdapConfig.java:213) at com.epo.core.server.MqService.start(MqService.java:77) at com.epo.core.service

Setting WMQ_MDCTX_SET_IDENTITY_CONTEXT impact the COD message

我与影子孤独终老i 提交于 2019-12-06 14:00:11
问题 I had asked this question before :MQDestination overriding accounting token value According to the response I was even able to set the MQ Accounting token. But the changes have resulted in an impact on the COD which we used to receive earlier. We set the reply to Q and reply to Q Manager as follows Destination codeDestination = session.createQueue("queue://" + replyToQueueMgr + "/" +replyToQueueName); logger.info(":::: codeDestination :::"+ codeDestination); msg.setJMSReplyTo(codeDestination)

.replyToQueueManagerName and replyToQueueName on different MqEnvironment

回眸只為那壹抹淺笑 提交于 2019-12-06 12:37:25
问题 How do I go about if my replyToQueueManagerName and replyToQueueName is not in the same MQEnvironment as my requestQueueuManagerName and requestQueueName? Example: //MQEnvironment for requestMessage MQEnvironment.hostname = requestMessageHost; MQEnvironment.channel = requestMessageChannel; MQEnvironment.port = requestMessagePort MQQueueManager qMgr = new MQQueueManager(requestQueueuManagerName); MQQueue inputQueue = qMgr.accessQueue(requestQueueName,MQC.MQOO_OUTPUT); MQMessage requestMessage

To display a read error when the source file is used by other applications while transfering using MQFTE?

ぃ、小莉子 提交于 2019-12-06 12:29:56
问题 I need to display a read error when the source file is being used by other applications. For example : Source filename: test.txt Content: Test file. The above content is stored in the txt file and saved. The txt file is opened and is modified as below but not saved. Test file is modified. When i invoke the transfer now i should get a read error, instead the file gets transferred with the last saved content(Test file). What can i do to display a error message? This case was tested in unix and

Logging MQ Messages

浪尽此生 提交于 2019-12-06 09:52:01
问题 I want to log messages that come into MQ Queue to database/file or another logging queue and I can not modify existing code. Are there any methods to implement some kind of message logging utility that will act like HTTP sniffer? Or maybe MQ have some built-in finctionality to log messages? Thanks in advance for your ansers. 回答1: I think this is possible by creating ALIAS QUEUE that points to a topic. Assuming RECV.Q as the queue that your application currently receives messages from and

CCSID on MQ Managers on different platforms

旧城冷巷雨未停 提交于 2019-12-06 09:23:16
If a Solaris based MQ Manager is sending messages to an intermediate Windows MQ Manager that then sends on messages to a Linux MQ manager, does the CCSID need to be changed on them all to be the same? I don't think so but I am being pushed to do so... I have an issue where a client is sending messages from an application on Solaris via an intermediate MQ Manager on Windows but the Linux MQ Manager final destination based application receives the message with CR/LF line ending characters it can't deal with. Should the receiver end group write a conversion exit program? Or an MCA? IBM MQ does

How to Get-Inhibit the WebSphere MQ Queue?

女生的网名这么多〃 提交于 2019-12-06 07:22:17
问题 There is a property for WebSphere MQ queue to inhibit GET from the queue. To set this property I found two ways. Just set the property using WebSphere MQ Explorer GUI. Alter the queue with the MQSC command ALTER QLOCAL(TEST) GET(DISABLED) . Is there any way to enable or disable GET on a WebSphere MQ queue through a Java Program? 回答1: You can use PCF Change, Copy, and Create Queue command to change the attributes of the queue. This can be used from Java with the aid of the PCF Java helper