Skip to content
Advertisement

Tag: ibm-mq

How to replace an old ibm mq batch V7

I’m wondering what is the best way to replace and old ibm batch java application: In fact , I have a java application which contains basically two classes and can be started using two shell files; a shell to send and message and another one to consume messages present in the Queue. sendMessage.ksh => start the application and calls send

JMS, consume a message from a topic only once

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

Why does a variable of type com.ibm.jms.JMSTextMessage print truncated content and ellipses (…)?

I would like to understand why a variable of type com.ibm.jms.JMSTextMessage is printed with truncated content and ellipses (…) when converted to string. I have this code in a JSR223 Sampler in JMeter: I would like to understand why log.info(msg.toString()) does not print the whole text content and show ellipses after some point (…) If I do log.info(msg.getText()), I can

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

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: Main question: After the read message line and before moving the cursor to the next message how can I remove the message from the queue?

Advertisement