camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jimi Hullegård <>
Subject Route stops executing/polling input folder after first "run"
Date Tue, 16 Mar 2010 18:45:04 GMT

I'm just getting started with Camel, and I have a very basic question that hopefully someone
here can answer.

If I set up a simple test route, like this:

   <from uri="file:C:/somepath/in"/>
   <to uri="file:C:/somepath/out"/>

then this route works just fine. If I copy a bunch of files to the in-folder, the gets moved
to the out-folder, and it can be repeated over and over again.

If I, however, expand this route using a custom component "shs" like this:

   <from uri="file:C:/shs/test-install/nod1/cameltest/in"/>
   <setExchangePattern pattern="InOut"/>
   <to uri="log:camel_shs_input?level=ERROR"/>
   <to uri="shs:localhost_nod2?productId=2ff045ca-16a6-476b-a350-e9397c07fef1&amp;to=1111111111"/>
   <to uri="log:camel_shs_output?level=ERROR"/>
   <setHeader headerName="">
   <to uri="file:C:/shs/test-install/nod1/cameltest/out"/>

then the route only works only once. That is, if I copy a bunch of files to the in-folder
they gets processed successfully and the resulting files are written to the out-folder, but
if I try do to it again then nothing happens. The files remain in the in-folder, and nothing
is logged in the console running camel (using "mvn camel:run").

The only way to get it working again is to stop camel, and then start it again.

Does anyone have any idéa of what could be wrong? Why does it stop polling the in-folder
(with out any logged errors)? What are the best way to troubleshoot this?

View raw message