Reputation: 255
I was able to browse through using JmsPutGet with below browse selector for my IBM mq messages.
context.createBrowser(context.createQueue("queue:///" + QUEUE_NAME), "JMSCorrelationID='ID:c9d5e2d7c5c3e3c9d6d54040404040404040404040404040'")
I am trying to do the same using spring jms using JmsListener annotation
Update : changing selector to JMSCorrelationID='ID:c9d5e2d7c5c3e3c9d6d54040404040404040404040404040'" made it work. I tried that a day before, thought didn't work.
@JmsListener(
destination = "DevQueue01",
containerFactory = "myContainerFactory",
selector = "JMSCorrelationID='c9d5e2d7c5c3e3c9d6d54040404040404040404040404040'"
)
public void processInspection(@Valid Inspection bean) {
System.out.println("In process inspections : \n\n" + bean);
}
Upvotes: 0
Views: 530
Reputation: 255
After changing selector to below made it work. I tried that a day before, thought didn't work.
JMSCorrelationID='ID:c9d5e2d7c5c3e3c9d6d54040404040404040404040404040'"
Upvotes: 1