Ask a Question

How to read specific message using correlation ID from the JMS Queue?

SOLVED
mukulgupta
Occasional Contributor

How to read specific message using correlation ID from the JMS Queue?

Hi Team,

 

I am not able to read the specific message from the JMS queue.

 

I am keeping request section blank and entering correlation ID of the message to be read and then running the request. Random message is getting picked from the queue as response,

 

 

E.g. Correlation ID- CO:CO-XXXX:EnrichDetail:XXXX:

End point- jms://dev5_qcf ::-:: outQueue

 

Thanks in advance.

 

1 ACCEPTED SOLUTION

Accepted Solutions
AntonE
Staff

Re: How to read specific message using correlation ID from the JMS Queue?

Hi mukulgupta,

 

You should use Message Selector field in request JMS Headers tab. It doesn't matter whether you send a message or not, the selector will be used to receive a message anyway. The format is the same as in JMS API, so for your Correlation ID you should use:

 

JMSCorrelationID='CO:CO-XXXX:EnrichDetail:XXXX:'


Anton Egorov
ReadyAPI developer

View solution in original post

2 REPLIES 2
AntonE
Staff

Re: How to read specific message using correlation ID from the JMS Queue?

Hi mukulgupta,

 

You should use Message Selector field in request JMS Headers tab. It doesn't matter whether you send a message or not, the selector will be used to receive a message anyway. The format is the same as in JMS API, so for your Correlation ID you should use:

 

JMSCorrelationID='CO:CO-XXXX:EnrichDetail:XXXX:'


Anton Egorov
ReadyAPI developer

View solution in original post

mukulgupta
Occasional Contributor

Re: How to read specific message using correlation ID from the JMS Queue?

Thanks AntonE

cancel
Showing results for 
Search instead for 
Did you mean: