I have verified the logs by setting the DEBUG mode for org.apache.camel
module in log4j.xml but still there are no extra information. Also I have
already taken into consideration namespaces.
I need to implement logic in Camel to route a request to a specific service
based on which application is making a request. I can identify an
application based on principals set in security subject of the message. The
problem is that I am not able to get access to security subject in the Camel
routing. Is this something which is specific to XML configuration ?
Also can anybody suggest other better alternatives of how we can identify an
application making request to ServiceMix other than looking for security
subject of the message.
Thanks,
Sandeep.
tmi wrote:
>
> Also in case your incoming XML message uses namespaces you need to handle
> them in your xpath expression inside your Camel route.
>
> E.g. consider the following example:
>
> public void configure() {
> Namespaces ns = new Namespaces("tns",
> "http://servicemix.apache.org/samples/wsdl-first/types");
> ns.add("soapenv", "http://schemas.xmlsoap.org/soap/envelope/");
>
> from("jbi:endpoint:http://test.org/company/camel/Myendpoint").
> choice().
> when().xpath("//GetPerson", ns).to("jbi:service:blah").
> otherwise().to("jbi:service:blah2").
> end();
> }
>
--
View this message in context:
http://www.nabble.com/Problem-regarding-XPath-in-camel-tp17866139p18009658.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.