简体   繁体   中英

How is the filter implementation in JMS ActiveMQ in Mule?

How do I get an specific "JMSMessageID" from the ActiveMQ Queue? I mean, imagine that a client sends a request to the queue, gets processed and its waiting for his response (from a Response Queue, lets say).

In other words, the client is listening to the response queue. Now he wants HIS response to be returned.

As far as i've read there could be a possibility of getting it using a correlationId or messageId.

So i imagine there could be a way to set and ID to the request and the response to then be filtered by it. Right?

Haven't found much help from the Mule Documentation so far. Only the basics.

How can this be achieved?

Thanks.

It seems you are referring to the request-reply routing message processor of Mule that allows you to block a flow execution until a response is received on an asynchronous channel, Mule taking care of matching the requests and responses via correlation ID.

This would work fine with a JMS request queue and a JMS response queue.

You would get the same behaviour as with using a request-response JMS endpoint but without the use of temporary response queues.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM