Hi think Headers exchange might be the one I need. Unfortunately I can't find any developer-friendly docs on it. MRG manual doesn't mention it and qpid.apache.org doesn't seem to describe how to use it from a Java client (google doesn't help much).
Any pointers on how I can access Headers exchange from java? Or perhaps I can just continue to use the JMS api, but pass in sql-where clause like selector expressions to createConsumer(destination, <selector>)? Thanks 2009/3/24 falconair <[email protected]>: > After sending the original message, I realized that I might be able to take > advantage of selectors or 'where clause' like functionality. In other words, > I could subscribe to level1 but limit the values to "symbol=MSFT" (which > means only MSFT should travel down the wire to the client, nothing else). > Can't find if qpid has this capability or not though. You could use the Headers exchange. This allows you to bind a queue to an exchange and routing to the queue is only done when one or more message headers match. So in your message header you could have a common header called (e.g.) RIC and then just bind the queue to the exchange with RIC=MSFT (or whatever). You can OR multiple values together to check for values in a set. Selectors would also work but are not implemented in the C++ broker yet (on the server, they do have client selectors but not a good idea for your use case). RG --------------------------------------------------------------------- Apache Qpid - AMQP Messaging Implementation Project: http://qpid.apache.org Use/Interact: mailto:[email protected] -- View this message in context: http://n2.nabble.com/how-to-programatically-create-thousands-of-topics-%28for-marketdata%29--tp2528658p2530724.html Sent from the Apache Qpid users mailing list archive at Nabble.com. --------------------------------------------------------------------- Apache Qpid - AMQP Messaging Implementation Project: http://qpid.apache.org Use/Interact: mailto:[email protected]
