ibm-mq

ibmcom/mq docker image backward compatibility issue

此生再无相见时 提交于 2020-05-17 06:56:26
问题 I was using docker image ibmcom/mq . My compose file was: FROM ibmcom/mq USER root # create another client user # default is app without password RUN useradd user1 -G mqclient && \ echo user1:passwd | chpasswd Then suddenly it was stopped working when I build latest image again. Error is : useradd: group 'mqclient' does not exist ERROR: Service 'mq' failed to build: The command '/bin/sh -c useradd user1 -G mqclient && echo user1:passwd | chpasswd' returned a non-zero code: 6 Now compose is

How to send message with RFH2 format?

前提是你 提交于 2020-04-30 06:32:47
问题 Question I need to inject messages in IBM MQ with JMeter. Format should be RFH2. I need to set Format field to empty and also change content of the header. Which kind of JMeter object should I used to do that? Can you help me please? Thanks a lot. Update n°1 Thank to @DmitriT answer I'm able to send message in queue. However, it seems that header content is not put in the header but before the message. Please find below an example: Server logs with message sent with MQ Visual Edit Header 2020

MQ JMS Topic Equivalent in C/C++

自作多情 提交于 2020-03-24 02:38:07
问题 I don't have a clear knowledge about MQ using TOPICS and I have searched in IBM documentation and I can't find the way to subscribe with C++ to a Topic. In Java I have seen that you can go to the Websphere Control Panel and you configure it there. Programmatically how is possible to do it in C++? In C++ I have connected to queues using the functions MQCONN, MQOPEN and to get the messages I use MQGET and MQPUT, but I think I am only connected to queues not TOPICS. I want too to figure it out

How Can I Use Backout and Commit at IBM MQ .on Net Core Platform

為{幸葍}努か 提交于 2020-02-25 05:16:07
问题 I want to use Backout and Commit at IBM MQ Client. Process Order Put 10 messages to queue Get 10 messages from queue and Backout() I expect 10 messages exist in the queue because of Backout, but there is no messages exist in the queue. So I think Backout does not work properly. Why? Platform: .Net Core 2.1 IBM Client DLL: amqmdnetstd.dll v 9.1.2 Code string hostName = "TX32"; int port = 5566; string channelName = "TESTTRY"; string queueName = "TESTTRY"; int numberOfMsgs = 10; string

IBM MQ v8 and Glassfish local setup port configuration issue

点点圈 提交于 2020-02-24 12:44:06
问题 Given the following local setup: IBM WebSphere MQ Advanced for Developers V8.0 Payara 4.1.2.172 I'd like to connect to the local queue manager via JMS on other than the default port (1414). In spite I added several properties to the connection factory to configure port 1415, it seems that the server is still trying to connect via port 1414, as Payara constantly throws java.net.ConnectException . The relevant part of my domain.xml: <connector-connection-pool resource-adapter-name="wmq.jmsra"

WSO2 ESB Multiple instances of proxy service

依然范特西╮ 提交于 2020-02-05 08:12:07
问题 We are using WSO2 ESB and as transport we have WebSphere MQ which is accessed using JMS. Problem is that each proxy service works in one thread with WebSphere MQ and because of that we have performance issues. How can we start multiple instances of proxy service without deploying multiple copies of it? Maybe there are some hidden configuration parameters? 回答1: In addition to already mentioned parameter <parameter name="transport.jms.ConcurrentConsumers">2</parameter> you might need to add

IBM MQ v8 - real time consumption of a published message

 ̄綄美尐妖づ 提交于 2020-01-30 08:31:07
问题 In a sandbox environment, I'm testing out the IBM MQ. I already have experience with RabbitMq. With IBM MQ, I lack the possibility to directly consume a message in the queue. This is the case with RabbitMQ (Consume() methods). But with IBM MQ I have to explicitly look in the queue with following code: var queue = _queueManager.AccessQueue("queueName", MQC.MQOO_INPUT_AS_Q_DEF + MQC.MQOO_FAIL_IF_QUIESCING); This is what I know about reading a message from the queue right now. But is there

WebSphere Message Broker - how to send a PCF message

偶尔善良 提交于 2020-01-29 19:02:27
问题 We need to issue some MQ commands from a MB flow. The way to go is to send a PCF command, but I dont know how to create it. Any pointers ? Sebastian. 回答1: To issue commands to an MQ Queue Manager via PCF messages you can look at the examples in /opt/mqm/samp/pcf/samples on *nix or where ever you have installed MQ. (On Windows try "C:\Program Files (x86)\IBM\WebSphere MQ\tools\pcf\samples"). To issue the commands 'from' broker you can use a Java compute node and use methods in the supplied

Exception: com.ibm.mq.MQException: MQJE001: Completion Code 2, Reason 2009

一世执手 提交于 2020-01-25 10:16:22
问题 I am trying to write my test message to MQ, but failed to do so. Sharing the source-code and error: source-code import com.ibm.mq.MQEnvironment; import com.ibm.mq.MQMessage; import com.ibm.mq.MQPutMessageOptions; import com.ibm.mq.MQQueueManager; import com.ibm.mq.MQQueue; import com.ibm.mq.MQC; public class MQResponseWriter { public static void main(String[] args) { try { int openOptions = MQC.MQOO_INQUIRE | MQC.MQOO_INPUT_AS_Q_DEF | MQC.MQOO_OUTPUT; MQEnvironment.hostname = "myserver_name";

Migrating IBM MQ to javax.jms.* implementation - How does MQOPEN translate to JMS API?

自闭症网瘾萝莉.ら 提交于 2020-01-25 01:55:45
问题 How do you get the same effect as ibm's proprietary mq api's openOptions when using MQ with JMS api? Is there even a concept of openOptions in the JMS API? If so, what is the equivilent in terms of the API classes/methods? Related stackoverflow question - migrating-from-ibm-mq-to-javax-jms-weblogic 回答1: You are comparing apples and oranges. Yes, both are fruit but they are completely different fruit. There is no direct comparison between the 2. 1) A JMS session with "transacted" and