Gordon Sim wrote:
Robert Greig wrote:
As I say selectors are 'coming soon', there is a patch for XSLT based
selectors attached to QPID-530[1] if you are interested in
previewing that.
Out of curiosity, why XSLT? Is it to handle message body selection as
well as the more traditional headers?
My apologies first of all, it's not XSLT, its XQuery. The XML exchange
plugin already had logic for matching messages using an xquery and the
initial patch for selectors just re-used that. (Instead of having to
develop a parser and evaluator for some other syntax, though I suspect
that will also be added at some point).
It can select on bodies as well, yes.
How fast is it?
Not sure to be honest. I haven't had the time to try out the patch,
though I believe some others have.
I integrated it and put it back onto the JIRA. There is one SEGV that
needs to be found and fixed, at which time it can be merged to trunk (if
you want to help out). The performance is ok for selectors, but not
fantastic. the main perf issue is the way selectors are deleting from
the queue deque. This however should be quite easy optimize.
Regards
Carl.
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:[email protected]