-
1. Re: How process enriching message : pipeline / process / content-enricher ?
stlewis Nov 3, 2009 11:29 AM (in response to jcs_jean-claude.souvignet)With regards to your camel routes can you post the endpoints that you're using? Have you turned on tracing to see if you can get more information from the logging? Set trace="true" on the camelContext element. Seems like you'd be getting an exception if the message doesn't make it to your "SERVICE_ENDPOINT" in the flow, any indication in the logging of this happening? What does your processor do? Have you tried replacing it with a dummy processor that does nothing to see if the flow still fails or not?
-
2. Re: How process enriching message : pipeline / process / content-enricher ?
jcs_jean-claude.souvignet Dec 3, 2009 8:24 AM (in response to stlewis)Hello slewis,
trace="true" in camel context don't give me information in servicemix.log. Where logs should be found ?
I try with ummy processor ans i have same result. I try also with just camel log and
my process is not done. my SERVICE_ENDPOINT is a web service.
1. this route is good :
from(SERVICE_PROCESS).to(SERVICE_ENDPOINT).to("log:PartDeuxRouteBuilderZ");
Service is well done and result is correctly log in servicemix.log.
2. this route is not good :
from(SERVICE_PROCESS).to("log:PartDeuxRouteBuilder").to(SERVICE_ENDPOINT).to("log:PartDeuxRouteBuilderZ");
MessageIn is the returned message. Loggue messages display MessageIn befrore en after call SERVICE_ENDPOINT. SERVICE_ENDPOINT is called.
With a dummy processor, I have the same result as 2.
Thanks in advance for your help,
Edited by: jcs on Dec 3, 2009 1:23 PM
-
3. Re: How process enriching message : pipeline / process / content-enricher ?
joe.luo Dec 3, 2009 9:31 AM (in response to jcs_jean-claude.souvignet)trace="true" in camel context don't give me information in servicemix.log. Where logs should be found ?
You are using Java DSL, then in your RouteBuilder configure() function, you need to add a line:
getContext().addInterceptStrategy(new Tracer());
For more details about Camel tracer, please have a look at this link
-
4. Re: How process enriching message : pipeline / process / content-enricher ?
jcs_jean-claude.souvignet Dec 3, 2009 10:29 AM (in response to joe.luo)Thanks ,
with this trace from camel I have identify that exchange pattern have bean modify to inOnly during log endpoint.
When I reset Echange pattern to InOut before call my end service, everything work fine :
from(SERVICE_PROCESS).to("log:PartDeuxRouteBuilder").to(ExchangePattern.InOut,SERVICE_ENDPOINT).to("log:PartDeuxRouteBuilderZ");
Thanks for the help..