ibm-mq

How should a Spring JMS listener handle a message with an empty payload?

╄→尐↘猪︶ㄣ 提交于 2019-12-11 13:58:19
问题 I'm working on a error queue monitoring tool for a company I work for and I have got this thing up and running using Spring Boot doing all my bean set up using annotations (as opposed to using any xml). The tool works (so far) as intended except for the fact that on our error queue (which is IBM's MQ series) some xml messages contain a new line which my JMS listener picks up as its own thing. In fact it would seem it exclusively processes xml message line by line as opposed as a whole message

How to get “saveqmgr -s” function using “dmpmqcfg” in IBM MQ

烂漫一生 提交于 2019-12-11 13:31:32
问题 I am used to dumping objects from a queue manager without system objects. But now I have to use dmpmqcfg and I cant find a flag to remove those system objects from output. MQ version is 7.5.0.1 Command I use now : dmpmqcfg -m SMQ -t all -x object Possible flags : c:\> dmpmqcfg -h Usage: dmpmqcfg [-m QMgrName] [-n ObjName] [-t ObjType] [-x ExportType] [-o Format] [-a] [-z] [-s MsgSeqNo] [-q RplQName] [-r RmtQMgrName] [-c default|-c DEFINE CHANNEL..] -m Queue manager name. -n Object name or a

Where should MQClient.ini reside for an IIS Application?

北战南征 提交于 2019-12-11 12:14:16
问题 I've got an web application (WebApi2 / c#) installed under an IIS Web Site that needs to use an IBM WebSphere MQ mqclient.ini file. Where's the ini file supposed to reside? I've tried in the application's bin folder, as well as %system32%\inetsvr , with no luck. Hoping someone can point out where this is supposed to reside, as I haven't been able to locate the correct location via IBM's documentation... 回答1: The locations where MQ Client will look for the mqclient.ini file are documented in

Issue with permission grant to domain users in IBM web sphere queue manager

…衆ロ難τιáo~ 提交于 2019-12-11 11:28:35
问题 I have domain user called xxx\herath. When I try to add this user in to queue manager's "Manage Authority Record" , It is giving me Unknown User 'herath@xxx'. (AMQ4808) Severity: 10 (Warning) Explanation: The named entity for the given type is not defined on the system. Response: Make sure the entity is defined and it matches the type of entity. This user is not in the websphere mq server machine as a local user. So my question is What is the proper way to grant permission to domain users ?

Certificate Label when fetching from Windows Cert Store for .Net MQ Client

落花浮王杯 提交于 2019-12-11 10:05:20
问题 I have set the KeyStore to *User to get the certificate from the windows certificate store.The Mq Client application is trying to find the certificate using the label name as shown in the log from the client Trace. I tried setting the CertificateLabel from the client.ini and code but it is not overriding the value. How should i change that? Even if i can override how can i change the label of the certificate which i directly imported into my certificate store? Please Help 000001B6 12:23:39

How to send JMS message over MQ in .NET?

假如想象 提交于 2019-12-11 09:50:07
问题 I'm working on something which could be described as custom WMQ message router/forwarder. At the moment I have some very confusing issue with processing JMS messages send over MQ. I'm able to receive message send from Java application over JMS (with MQ as transport) but I'm not able to send message to Java application listening on JMS endpoint. I have a testing servlet and message driven bean - both hosted in WebSphere Application Server 7.0 (with WebSphere MQ 7.0 used for message transport).

JMS doesnt work in global transaction with cachingconnectionfactory

时间秒杀一切 提交于 2019-12-11 09:25:31
问题 I am using IBM mq(p800-005-160516.2) and Spring JMS template to post messages to MQ.My application is having one database resource and one MQ resource in global transaction.Problem is that it fails if i configure CachingConnnectionFactory public class Xa { public ConnectionFactory connectionFactory() throws Exception { AtomikosConnectionFactoryBean atomikosConnectionFactoryBean = new AtomikosConnectionFactoryBean(); atomikosConnectionFactoryBean.setUniqueResourceName("pavan"); Properties

setting ReplyToQ attribute of MQMD of IBM MQ request message with Camel

假装没事ソ 提交于 2019-12-11 07:36:27
问题 I use Camel with Fuse, and I have trouble with setting JMSReplyTo. Here is an excerpt from my route: <setHeader headerName="JMSReplyTo" id="_setHeader2"> <constant>QTEST</constant> </setHeader> <setHeader headerName="CamelJmsDestinationName" id="_setHeader1"> <constant>queue://QM_TEST/SYSTEM.DEFAULT.LOCAL.QUEUE?targetClient=1</constant> </setHeader> <to id="_to1" uri="websphere:queue:SYSTEM.DEFAULT.LOCAL.QUEUE?replyTo=QTEST"/> I took as an example the code given here: Implementing native

Issue in Correlating request message to resp message in Java Client to access MQ Series

柔情痞子 提交于 2019-12-11 07:17:42
问题 I have used wmqjava sample program to connect to MQ manager and put message in REQUEST queue and get response from RESPONSE queue. I can put and get the messages. I couldn't get the correct message when there is muliple messages arrived in RESPONSE QUEUE. Please advice whether there is a way to correlate request and response in this approach. Please also advice whether this approach is recommended one. 回答1: Correlation id is the best way to correlate request and response messages. You will

How to clear the issue “com.ibm.mq.MQException: MQJE001: Completion Code 2, Reason 2040”

被刻印的时光 ゝ 提交于 2019-12-11 07:17:18
问题 I have used the below code to inhibit the queue but when I try to inhibit I got the error. I have tried various open options for the particular queue but still i have the issue. what else i missed in my code; public void control(String mgrName, String queueName, int openOptions, string option)throws MQException{ qMgr = new MQQueueManager(mgrName); mqQueue = qMgr.accessQueue(queueName, openOptions); if (option.equalsIgnoreCase("stop")){ System.out.println("Stop mesage received"); mqQueue