in camel example here : <camelContext id="xpathHeaderNameTest"<b> xmlns="http://camel.apache.org/schema/blueprint"*> <route> <from uri="direct:in"/> <choice> <when> <xpath headerName="invoiceDetails">/invoice/@orderType = 'premium'</xpath> <to uri="mock:premium"/> </when> <when> <xpath headerName="invoiceDetails">/invoice/@orderType = 'standard'</xpath> <to uri="mock:standard"/> </when> <otherwise> <to uri="mock:unknown"/> </otherwise> </choice> </route> </camelContext>
my example uses <camelContext <b>xmlns="http://camel.apache.org/schema/spring*"> <propertyPlaceholder id="properties" location="classpath:lims-osp.properties" /> <onException> <exception>com.cgi.horizon.exception.HorizonException</exception> <exception>com.cgi.horizon.exception.HorizonServiceException </exception> <redeliveryPolicy maximumRedeliveries="0" /> <to uri="log:HorizonErrors" /> </onException> <route id="proxy"> <from uri="jetty:http://0.0.0.0:{{proxy.port}}?matchOnUriPrefix=true" /> <convertBodyTo type="java.lang.String" /> <log message="*** starting route configuration" /> <process ref="routeConfiguratorProcessor" /> <log message="+++++${headers}" /> <log message="***************** ${headers.RouteConfiguration}***************" /> <log message="***************** ${headers.Authorization}***************" /> <doTry> <choice> <when> <xpath headerName="ROUTE_CONFIGURATION_HEADER">authorizationCheck/text()='enabled'</xpath> Could this be the issue?? -- View this message in context: http://camel.465427.n5.nabble.com/camel-xpath-tp5749754p5750071.html Sent from the Camel - Users mailing list archive at Nabble.com.