ibm-mq

What is an MQ and why do I want to use it?

自闭症网瘾萝莉.ら 提交于 2019-12-02 17:16:59
On my team at work, we use the IBM MQ technology a lot for cross-application communication. I've seen lately on Hacker News and other places about other MQ technologies like RabbitMQ . I have a basic understanding of what it is (a commonly checked area to put and get messages), but what I want to know what exactly is it good at? How will I know where I want to use it and when? Why not just stick with more rudimentary forms of interprocess messaging? All the explanations so far are accurate and to the point - but might be missing something: one of the main benefits of message queueing:

IBM MQManager as XA Transaction Manager with Spring-jms and Spring-tx

浪子不回头ぞ 提交于 2019-12-02 17:05:10
问题 We are trying to use IBM MQ manager as XA Transaction manager with spring-jms and spring transaction support. Does IBM MQ manager play well with spring-jta support? 回答1: You can't use the WMQ JMS client (which is what spring-jms would use) with the MQ QueueManager acting as the XA transaction manager. The intention is that a JMS application would be controlled via a JTA implemented transaction manager (i.e. a Java EE application server). You can however use the WMQ Java client (i.e. non JMS)

Connecting to the MQ Server using CCDT

萝らか妹 提交于 2019-12-02 16:34:55
问题 I'm trying to connect to the MQ using the information present in the CCDT file. I can currently connect to the MQ using all the details, and get and put messages from and to the queue. After extensive googling, I've been unable to find any sample code which allows me to connect using the CCDT file. One of my colleagues forwarded me his JMS connection code, but I've been unable to port it to C# . The JAVA code is as follows - public class MQTest { public static void main(String[] args) {

Is it a good practice to use JMS Temporary Queue for synchronous use?

倾然丶 夕夏残阳落幕 提交于 2019-12-02 16:18:17
If we use JMS request/reply mechanism using "Temporary Queue", will that code be scalable? As of now, we don't know if we will supporting 100 requests per second, or 1000s of requests per second. The code below is what I am thinking of implementing. It makes use of JMS in a 'Synchronous' fashion. The key parts are where the 'Consumer' gets created to point a 'Temporary Queue' that was created for this session. I just can't figure out whether using such Temporary Queues is a scalable design. destination = session.createQueue("queue:///Q1"); producer = session.createProducer(destination);

How to use Java JMS with MQseries

点点圈 提交于 2019-12-02 15:10:59
I am trying to develop a JMS standalone application to read and write to a Queue on MQSeries. My boss asked me to use pure java JMS (not ibm.mq lib) to do that. Here is the information that need to make the jms connection: mq.hostname=10.10.10.10 mq.channel=API.CLIENTCHL mq.queueManager=MQPETAPI mq.port=1422 Do you know how to do that Or do you have any link that teach me to do that. T.Rob The issue here is the requirement that "My boss asked me to use pure java JMS (not ibm.mq lib) to do that." JMS is a specification and each implementation must comply with the API and the semantics, but is

MQ header - Identifier context - ApplIdentityData

北慕城南 提交于 2019-12-02 14:30:45
问题 We want to extract information from ApplIdentityData on MQ Header. But on the consumer side, we dont see corresponding JMS header for ApplIdentityData. I did trace on the logs and i dont find any information related to ApplIdentityData. I am using Apache Camel to read the MQ and process the Queue Message. In the camel trace logs, i dont find anything to ApplIdentityData. Could you please help me ? Below is the MQ Message Header and Camel File : StrucId : 'MD ' Version : 2 Report : 0 MsgType :

2538 error on MQ for SSL channel connection

随声附和 提交于 2019-12-02 14:06:39
问题 I am using IBM WebSphere MQ 8.0 version. I have configured one of my channels with "TLS_RSA_WITH_AES_256_CBC_SHA256" Cipher Spec encryption along with valid certificates installed and mapped to key store path correctly. My .NET client code is not able to connect with this secured channel. It gives 2538 error continuously. I have another channel configured without encryption (unsecured). The client code can connect to this channel without any errors. This is my .NET client code: Hashtable

How to read values out of the WebSphrere MQ MQMD header with the IBM MQ libraries

↘锁芯ラ 提交于 2019-12-02 12:26:33
问题 Let's take this code snippet as a starting point: import com.ibm.mq.MQEnvironment; import com.ibm.mq.MQException; import com.ibm.mq.MQGetMessageOptions; import com.ibm.mq.MQMessage; ... int openOptions = MQConstants.MQOO_INPUT_AS_Q_DEF; MQQueue queue = qMgr.accessQueue(qName, openOptions); ... MQMessage rcvMessage = new MQMessage(); MQGetMessageOptions gmo = new MQGetMessageOptions(); queue.get(rcvMessage, gmo); Now I want to get the message type and the reply to queue manager for example. It

MQQueueManager message pooling

元气小坏坏 提交于 2019-12-02 11:27:31
问题 I've used in the past RabbitMq as MessageQueue and it was really simple to have an event fired when a message has been received. I've looked at the .NET sources provided with IBM installer but I've found a not good way to handle it. Looking at the sample SimpleSubscribe it does such a thing to pool // getting messages continuously for (int i = 1; i <= numberOfMsgs; i++) { // creating a message object message = new MQMessage(); try { topic.Get(message); Console.WriteLine("Message " + i + " got

Shared memory across docker containers

孤街醉人 提交于 2019-12-02 09:56:18
If Websphere MQ is used as a XA(Distributed Transaction) Transaction Manager using Java MQ classes, not JTA, the Java application and the WMQ, both need to reside on the same host machine. I have been told this is because shared memory is used as Inter Process Communication mechanism. The Java application and the Websphere MQ both need access to shared memory to make XA work. If we deploy WMQ in a docker container and keep our Java application in another docker container, both on the same host, will we be able to use the WMQ as a XA coordinator? Will we have to use certain special