In a system where one client sends a message to one specific peer out of thousands, is it appropriate to use a single queue and have the peers find their messages using selectors?
Location: http://www.jguru.com/faq/view.jsp?EID=86702 Created: Jun 26, 2000 Modified: 2000-06-26 06:51:20.237 Author: Andreas Mueller (http://www.jguru.com/guru/viewbio.jsp?EID=23179) Question originally posed by Henrik Hermansson (http://www.jguru.com/guru/viewbio.jsp?EID=44407 This is one possibility, but very slow, I think. Every message has to pass every receiver to check if the specific message selector does match. Also, not every vendor supports multiple receivers on a single queue. I would suggest, use publish/subscribe and map your selection criteria to topics or, if your vendor supports this, to topic hierarchies. But your sender client has to perform some pre-selection to publish to the right topic.
Related Questions
- In a system where one client sends a message to one specific peer out of thousands, is it appropriate to use a single queue and have the peers find their messages using selectors?
- Are the GlassFish Message Queue, Sun Java System Message Queue, iPlanet Message Queue for Java, Sun ONE Message Queue and Sun Java System Message Queue products related?
- What is GlassFish Message Queue (formerly Sun Java System Message Queue)?