I have a spring boot application that is deployed on a WebLogic server, on that server there is a JmsModule defined that I need to use to send messages. I have the following as my sending class: The queue has a JNDI name and is retrieved via spring properties, it’s defined as: When starting the applicat…
Tag: jms
ActiveMQ – Applications unable to connect for a minute on localhost. Eventual reconnect using failover
I’m running an ActiveMQ broker (version 5.15.12 and later downgraded to 5.15.8) on a windows server on which several local applications are running that are connecting. During heavier than average load on ActiveMQ, it happens regularly that the initial connection to ActiveMQ cannot be made by the applic…
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 …
How can I acknowledge a JMS message on another thread and request for redelivery of unacknowledged messages?
Step 1: I need to receive message by one thread. Step 2: Process and sending ack and redelivery request (throwing exception) by another thread. Sample code: Now another thread will start and process the list which contains data then how can I send an acknowledgement or throw an exception for redelivery? Answe…
JMS Topic – Weblogic to Wildfly / JBoss migration
I have one of my Topics in WebLogic with overrides properties “Time-To Deliver Override” and “Delivery Mode Override” I’m working on a migration to WildFly server. I’ve declared the Topics in the standalone.xml under the ActiveMQ subsystem tag as following But, I have no id…
How to configure JmsMessagingTemplate to use MappingJackson2MessageConverter
I am looking at using JmsMessagingTemplate instead of JmsTemplate because I would like to use convertSendAndReceive. The messages should be send in JSON format. I am having difficulties convincing JmsMessagingTemplate to use MappingJackson2MessageConverter instead of the SimpleMessageConverter. The documentat…
Gatling JMS scenario does not terminate
I am trying to loadtest a simple request/reply scenario over a rabbitmq broker. This scenario sends a simple text message to the defined queue and then wait on the defined replyQueue for an answer. On the other side of the request queue is simple message listener that reads the JMSReplyTo field and sends a me…
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…
IBMMQ consumer application unable to consume TextMessage ( JMSCMQ1049: The character set ‘1208(UTF-8) Unmappable Action: REPORT)
I have a consumer application that uses IBMMQ to consume messages from the queue manager. I have no control over the publisher, only the consumer. Here is the part of the code for my consumer: This code works fine and is able to retrieve the message as a TextMessage object for almost all of my queues except f…