Skip to content
Advertisement

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:

JavaScript

This is my consumer:

JavaScript

I have deployed the application into TomEE plus container, and I have sent few messages to the queue:

enter image description here

I have also added the below entries in the servlet-context.xml

JavaScript

However, application did not consume these messages. How do I fix this?

Update#1 I have annotated the consumer class with @EnableJMS

JavaScript

still I am not getting the messages

Advertisement

Answer

can you try adding @EnableJms on QueueConsumer class?

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement