THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
i.e. cut and paste the XPath annotation code to your own project in a different package and/or annotation name then add whatever namespace prefix/uris you want in scope when you use your annotation on a method parameter. Then when you use your annotation on a method parameter all the namespaces you want will be available for use in your XPath expression.
NOTE Your annotation should extend the XPath this feature is supported from Camel 1.6.1.
For example
Code Block |
---|
public class Foo { @MessageDriven(uri = "activemq:my.queue") public void doSomething(@Path("/foo/bar/text()") String correlationID, @Body String body) { // process the inbound message here } } |
...