Re: Camel route exchange intermediate call

2013-12-11 Thread sdelanghe
Thanks for your feedback. It looked like i do not know my patterns to well ;-) I simply had to use the enrich pattern and combine back my original and resource exchange. Thanks for the feedback -- View this message in context: http://camel.465427.n5.nabble.com/Camel-route-exchange-intermediat

Camel route exchange intermediate call

2013-12-10 Thread sdelanghe
Hey everyone, I have an web service endpoint. This message i need to keep. Before actually passing this message on to the next component i need to call another web service which changes the message entirely. Looks as i lost my entire first message (body). How can i keep my endpoint body while exe

Re: Test exception thrown in junit test

2013-11-11 Thread sdelanghe
Thnx for the advise, My purpose was to test my general exception handling in routes. -- View this message in context: http://camel.465427.n5.nabble.com/Test-exception-thrown-in-junit-test-tp5742984p5743006.html Sent from the Camel - Users mailing list archive at Nabble.com.

Test exception thrown in junit test

2013-11-10 Thread sdelanghe
Hey, i am wondering how testing exception throwing in junit. I have my mock endpoint defined and the exchange received with a processor that throws an error. Now the template.sendBody on the endpoint does throw an error but still has a normal exchange message. How can i do this last part to ass

Re: onException convertions to soapFault

2013-11-07 Thread sdelanghe
Thanks for the suggestion. Is it possible to do this directly in the route (onException) , based on thrown exception? Can i avoid using the processor? thnx Stefaan -- View this message in context: http://camel.465427.n5.nabble.com/onException-convertions-to-soapFault-tp5742775p5742788.html Sen

poll change files in directory and get file

2013-11-07 Thread sdelanghe
hey i am facing an issue. An endpoint is constructed to poll for modified files in a directory. Endpoint: from("file:" + mainFolderLocation+OUTDATA_OK_FOLDER+"?preMove=./inprogress&move=../done&moveFailed=../error&delay=3&maxMessagesPerPoll=25"+maxMessages) After this i which to get the file