Re: Debugging file component - breakpoint

2012-12-21 Thread ltsallas
Thanks for the answers. I used an extended Thread.sleep and it works fine. -- View this message in context: http://camel.465427.n5.nabble.com/Debugging-file-component-breakpoint-tp5724468p5724486.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Debugging file component - breakpoint

2012-12-20 Thread Willem jiang
That's it, If you want to debug the unit test, you may consider to add Thread.sleep(xxx) to make the unit test wait for you. Otherwise, camel context will be shutdown when the test is finished. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com |

Re: Debugging file component - breakpoint

2012-12-20 Thread Raul Kripalani
Are you by any chance running this inside a unit test? Beware that the assertion waits for some time for expectations to be fulfilled (I think 10 secs). Therefore it's possible that your test code is finalising while you debug. Check out the setAssertPeriod method in Mock endpoint [1]. Regards,

Re: Debugging file component - breakpoint

2012-12-20 Thread Christian Müller
Read the doc http://camel.apache.org/graceful-shutdown.html Best, Christian On Thu, Dec 20, 2012 at 9:09 PM, ltsallas wrote: > DefaultShutdownStrategy --