-
1. Re: camel route based on operation name
davsclaus Aug 5, 2011 5:23 AM (in response to chandraprabha)Just to be sure, you have spaces around the == operator, right? That is required
And if you log the message before the
-
2. Re: camel route based on operation name
chandraprabha Aug 5, 2011 10:40 AM (in response to davsclaus)Thanks a lot for reply .
I gave the space and added otherwise also ..so now all request goes to otherwise.
The log did not print any thing .. Please let me know if i need to add some thing in wsdl for this.
-
3. Re: camel route based on operation name
chandraprabha Aug 5, 2011 3:06 PM (in response to chandraprabha)I saw in this example http://www.slideshare.net/trenaman/implementing-webservices-with-camel-and-cxf-in-servicemix
they use payload and then they get the operation name. I tried changing the format in <camelContext from MESSAGE to PAYLOAD but still does not work.
Please help.
-
4. Re: camel route based on operation name
njiang Aug 5, 2011 10:56 PM (in response to chandraprabha)You should be able to access the operation header when using the PAYLOAD.
Can you check the log after the cxf consumer, if you enable the trace feature of the camel?
<camelContext trace="true" xmlns="http://activemq.apache.org/camel/schema/spring">
Willem
-
5. Re: camel route based on operation name
eruiz_eruiz Sep 14, 2011 10:19 AM (in response to chandraprabha) -
6. Re: camel route based on operation name
eruiz_eruiz Sep 14, 2011 11:23 AM (in response to chandraprabha)Hi, we had the same problem and changing to ognl language solved it.
The route below worked for us:
To use OGNL in your camel routes you have to install camel-ognl feature.
Hope it helps.