Thank you for your help it works now. If someone is interested in the
solution, here it is:
1) I updated to Camel version 2.10-Snapshot (to use the
consumer.bridgeErrorHandler=true option)
2) implemented my own PollingConsumerPollStrategy which forwards Exceptions
to the Camel route:
public class
On Wed, Jun 27, 2012 at 3:02 PM, stefzar wrote:
> The consumer.bridgeErrorHandler option would be great, but I don't exactly
> get how to use it. My route looks like this now and the Exception still is
> not caught by the .onException clause. Should this code work if the folder
> "Notification1" d
The consumer.bridgeErrorHandler option would be great, but I don't exactly
get how to use it. My route looks like this now and the Exception still is
not caught by the .onException clause. Should this code work if the folder
"Notification1" does NOT exist?
context.addRoutes(new RouteBuilder() {
Hi
See the pollStrategy option at
http://camel.apache.org/polling-consumer.html
And from Camel 2.10 onwards you can bridge this consumer error with
the Camel error handler in the route using the new
consumer.bridgeErrorHandler option
http://camel.apache.org/file2
On Wed, Jun 27, 2012 at 2:14 PM
I have tried it with exception handling now.
My route looks like this:
context.addRoutes(new RouteBuilder() {
public void configure() {
onException(org.apache.camel.component.file.GenericFileOperationFailedException.class).log("Exception
caught");
from("
On Tue, Jun 26, 2012 at 11:34 AM, stefzar wrote:
> Thank you for your answer so far but it is a bit more difficult.
>
> In our program it may happen that we are polling on folders which do not
> exist. With the file Component it sends an emptyMessage if the folder should
> not exist, but with the
Thank you for your answer so far but it is a bit more difficult.
In our program it may happen that we are polling on folders which do not
exist. With the file Component it sends an emptyMessage if the folder should
not exist, but with the FTP Component we get an Exception instead which
tells us th
On Tue, Jun 26, 2012 at 5:01 PM, stefzar wrote:
> Hello Camel Users,
>
> I have a Camel route consisting of a Polling Consumer and a Custom
> Processor. The Polling Consumer is configured by a "file:" URI. The Custom
> Processor recieves all polled messages and its logic relies on the
> "sendEmpty