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]
