camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexey <>
Subject xpath for header
Date Tue, 28 Aug 2012 12:00:49 GMT
hello, i'm trying to use xpath expression for the header message in the

my route:

<route id="delayedDecline"  errorHandlerRef="DELAYERRORE">
    <from uri="activemq:queue:RESTRUCT.IDENTBEFORE?concurrentConsumers=1"/>
    <bean ref="headerExtender" />
        <xpath>/history/p[@id = 'RESTSYBRIGE' and @state != 'NN']</xpath> 
        <to uri="activemq:queue:RESTRUCT.DECLINE"/>

bean "headerExtender" put to message header this xml:

<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
    <p datO='20120822132650' datI='20120822132650' datC='20120822132647'
data='' lgSt='FINISH' state='AN' order='0' num='3329' id='RESTSYBRIGE' />
    <p datO='20120822135229' datI='20120822132650' datC='20120822135229'
data='' lgSt='FINISH' state='AN' order='0' num='3330' id='IDENTEDITPHYS' />

but this don't work :(

Please help! How to correctly write this expression?

View this message in context:
Sent from the Camel Development mailing list archive at

View raw message