Hi all,
I have noticed that it is not possible to put an xpath expression inside a
doTry expression:
e.g.
from("jetty:http://0.0.0.0:9000/")
.doTry()
.process(new Parser())
.convertBodyTo(String.class)
.choice()
.when()
.xpath("/ns:a...@dtc='001']",ns)
.process(new fwdConverter())
.setHeader("Content-Type",constant("text/xml; charset=utf-8"))
.to("http://172.10.10.1/")
.convertBodyTo(String.class)
.process(new backwdConverter())
.convertBodyTo(String.class)
.process(new XmlEmbedder())
.transform(body())
.doCatch(IllegalInputOrProcessingException.class)
.process(new ExceptionProcessorHandler())
.transform(body())
.process(new XmlEmbedder())
.end();
I receive this following compilation error:
"The method doCatch(Class<IllegalInputOrProcessingException>) is undefined
for the type ChoiceDefinition MyRouteBuilder.java
/Max-router/src/main/java/tutorial line 145"
Any ideas?
--
View this message in context:
http://old.nabble.com/XPath-expression-inside-doTry%28%29-tp28793165p28793165.html
Sent from the Camel - Users mailing list archive at Nabble.com.