Use Filter condition and XPATH for to uri
<filter>
<simpleconditions for uri or use xpath instead of
simple</simple>
<to uri="uri 1 or 2 depending on condition" />
<log message="Message Sent to desired uri" />
</filter>
Thanks and Regards,
Vanshul Chawla
From: Parikshit Singh [mailto:[email protected]]
Sent: Friday, March 27, 2015 3:58 PM
To: [email protected]; [email protected]; [email protected]
Subject: URHENT HELP/POC- Hit URL1 or URL2 based on xml data using Apache Camel
Importance: High
Hi Team,
Can you help me with minimum code to automate the following usecase:-
User will hit camel application URL
Camel will process the xml request and based one some specific tag value it
will hit other application URL 1 or URL2
URL1 and URL2 will also respond with xml, Camel should be able to get that
request and send it back
EXPECTATION:
Camel code should be mostly controllable through camelContext.xml may be using
XQuery/XPATH/OGNL/RegEX plugin.
Please share code/ example/explanation.
Regards,
[cid:[email protected]]
Parikshit Singh| +91 22 6718 2728 (O) | 11130 2728 (VOIP) | +91 9167610374 (M)|
[email protected]<mailto:[email protected]>
Senior Consultant| Agile, Java, UX | Prime Sourcing
Oracle Financial Services Software Ltd.
Mumbai-GO | India
[Green Oracle]<http://www.oracle.com/commitment>Oracle is
committed to developing practices and products that help protect the environment