[rabbitmq-discuss] sub-request a message using a message batch

Jon Brisbin jon.brisbin at npcinternational.com
Tue Mar 23 13:19:28 GMT 2010

I have a situation where remote sites need to send messages to a central set of load-balanced RabbitMQ servers. Due to low network bandwidth at the these sites, I have to zip up a series of requests into a zip file, which is the body of the message. When the batch listener gets a new batch message, it opens it up, then dumps each individual request back into the appropriate queue for that request. 

Now comes the part I'm having trouble with...

When I'm in my handleDelivery() method of my batch message listener, it seems I can't create a new, anonymous queue which I can listen to for the results of this "sub-request", which I will grab, put into a new zip file, and send back to the requestor, along with the results from all their other requests.

I'm using Spring to create ConnectionFactorys, Connections, and Channels, but I'm wondering if there isn't some per-thread something going on that I receive errors to the effect that I can only do one thing at a time during a synchronous request.

Can someone point me to some guidance on how I can have a listener create a new queue which it listens to, so it can intercept the results of a sub-request and respond to the original requestor?

I hope what I'm trying to do here makes sense. I may not have explained it well...

Jon Brisbin
Portal Webmaster
NPC International, Inc.

More information about the rabbitmq-discuss mailing list