I have a requirement to establish a point to point communication with publisher and consumer in my application. What I’m given is a topic. So I should make sure the message in the topic will be consumed only once and only one instance should consume it. (There are multiple instances of the consumer.) I understand message queue is the solution
Tag: ibm-mq
Connect to IBM MQ using JmsListener
I have a Spring application and I want to connect to IBM MQ using JmsListener. This is my configuration: This is my consumer: I have deployed the application into TomEE plus container, and I have sent few messages to the queue: I have also added the below entries in the servlet-context.xml However, application did not consume these messages. How do
Message contains escape character in the message sent to MQ and cause exception when converting to JSON
I have a method: and my DTO’s toString(): I realise when the other application received the MQ message (using Spring Boot with JMS), the escape char appeared, causing errors. I tried to do replaceAll(“\\”, “”) but it couldnt find anything to replace. How can I get rid of the in the message sent to the MQ? Answer The
IBM MQ client preventing garbage into the console output
we are using IBM MQ client (com.ibm.mq.allclient-9.1.3.0.jar) from a Spring-Boot project sending mq messages, the problem is the too many (tons) garbage output into the console: ….. —-+—-+- } &…
Browse, read, and remove a message from a queue using IBM MQ classes
I’m writing a simple Java application using MQ classes for Java with Eclipse. Right now I’m able to browse a remote queue without removing the messages stored. Here is the code of the reading cycle: …