Sorry but I cant get it working with xpath - I could get it working now with
jxpath - I found a test case:

http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-jxpath/src/test/java/org/apache/camel/language/jxpath/JXPathTest.java?view=markup

this route works for me now: 

                <route>
                        <from ref="input1" />
                        <to uri="counter" />
                        <to uri="createProcessor" />
                        <to uri="realtimeProcessor" />
                        <to uri="queueSwitchProcessor" />
                        <choice>
                      <when>
                        <jxpath>in/headers/@queueid = '0'</jxpath>
                        <to ref="output1"/>
                      </when>
                      <when>
                        <jxpath>in/headers/@queueid = '1'</jxpath>
                        <to ref="output2"/>
                      </when>
                      <otherwise>
                        <to ref="output3"/>
                      </otherwise>
                    </choice>
                </route>

although I think jxpath is much slower than xpath or??? so I am looking
forward to solve it another way 

Thanks for the fast reply - greetings max
-- 
View this message in context: 
http://www.nabble.com/how-to-use-xpath-in-spring-xml-and-query-header-fields-tp18567110s22882p18570337.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to