Re: CamelContext autoStartup="false" not working

2012-08-24 Thread livensn
I see. Thanks for the explanation Claus -- View this message in context: http://camel.465427.n5.nabble.com/CamelContext-autoStartup-false-not-working-tp5717994p5718009.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: CamelContext autoStartup="false" not working

2012-08-24 Thread livensn
I edited my original post with my camel version : 2.10.0 Here's the code of my route : public class ContactReportRoute extends RouteBuilder { private static final Logger LOGGER = Logger.getLogger(ContactReportRoute.class); @Override public void configure() throws Exception {

CamelContext autoStartup="false" not working

2012-08-24 Thread livensn
Hi all, I have this configuration : http://camel.apache.org/schema/spring";> http://camel.apache.org/schema/spring"; autoStartup="false"> The first camelcontext should start automatically as it does. The second shouldn't start automatically because of autoStartup="false". Bu

Re: Validator component + onException

2012-08-21 Thread livensn
As you said, I updated to the most recent version (2.10.0) through maven, but this didn't do the job. :) -- View this message in context: http://camel.465427.n5.nabble.com/Validator-component-onException-tp5717756p5717767.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Validator component + onException

2012-08-21 Thread livensn
Hi, I'm using Windows 7. The .converBodyTo(String.class) part worked :) Thank you Claus! -- View this message in context: http://camel.465427.n5.nabble.com/Validator-component-onException-tp5717756p5717764.html Sent from the Camel - Users mailing list archive at Nabble.com.

Validator component + onException

2012-08-21 Thread livensn
Hi all, I got the following camel route : from("direct:customerroute") .log("File was found in directory: " + customersFolder) .choice() .when(simple("${file:ext} == 'xml' || ${file:ext} == 'XML'")) .log("XML file recognized")

File Component : Route not picking up files

2012-08-21 Thread livensn
Hi all, I got my camel route which is picking up all files perfectly except for the ones starting with a "." So for example: I got a file named ".Contacts.xml". I would think camel would pick up this file, but instead ignores it. If I rename the file to "Contacts.xml" it gets picked up. Is this s

Re: Unmarshal csv with missing quotes

2011-09-26 Thread livensn
Update : We found the problem with the doublue quotes, it's in the encoding of the file. New problem : How to set the encoding of the unmarshal method? We tried to set the encoding of the exchange to UTF-8, we tried to set the encoding of the route to UTF-8. Both were unsuccessful. Any suggestio

Unmarshal csv

2011-09-26 Thread livensn
Hi all, This is our route, everything works fine. CsvDataFormat csv = new CsvDataFormat(); csv.setDelimiter(";"); onException(RuntimeException.class).handled(false).to("bean:exceptionProcessor", "direct:readData").stop(); from(from) .to("seda:fileQueue");

PollingConsumer

2011-09-23 Thread livensn
Hi all, At the moment, we have this route : onException(RuntimeException.class).handled(false).to("bean:exceptionProcessor").stop(); from(from).noAutoStartup() .routeId("csvProcessingRoute") .unmarshal(csv) .p

Re: Camel onException()

2011-09-22 Thread livensn
Thanks for your answer Ngoc, We tried that already. But nothing seems to work. Our route retries to consume the same file over and over again until it reaches its timeout. Any other suggestions? Thanks -- View this message in context: http://camel.465427.n5.nabble.com/Camel-onException-tp48298

Camel onException()

2011-09-22 Thread livensn
Hi all, In our project, we need to validate a csv file, we do this in a camel route. But if something is wrong with the csv, we throw an exception. Is it possible to stop the route right after this exception is thrown? We've tried onException(RuntimeException.class).stop() We've tried onExceptio