[jboss-dev-forums] [JBoss ESB Development] - Re: XPath Routing

mvecera@redhat.com do-not-reply at jboss.com
Wed Sep 23 06:32:12 EDT 2009


"tfennelly" wrote : "mvecera at redhat.com" wrote : I think that is should be possible to specify a message part as a location. Like this:
  |   | <property name="XPathQueryLocation" value="message.body.myQuery" />
  |   | or
  |   | <property name="XPathQueryLocation" value="message.property.myQuery" />
  |   |   | 
  |   | For the dynamic query creation...
  | 
  | Not sure I follow!  The incoming message is specifying its own filtering parameter??  Can you outline the full use case more clearly please Martin i.e. when/how would this be used?

Yes, exactly. Here is a sample scenario:
* A message contains an order. Each order item carries a store code and a weight.
* For minimizing postage cost, a custom action will compose an XPath query that points to the store code of the heaviest item in the order.
* CBR will use this query to route the message to the corresponding store for process.

Does it make sense?

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4256582#4256582

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4256582



More information about the jboss-dev-forums mailing list