Using camel-bindy manually from within a processor on a single record

2013-05-15 Thread cwhistler
In my route processor, I am extracting some data from a database into a POJO. I need to send a record to another utility but the utility requires a comma-delimited string. I would like to use camel-bindy directly to have it parse my POJO so I can pass the results to the utility class. I then hav

Re: Making a route depend on multiple criteria

2013-05-15 Thread cwhistler
I'm a bit concerned about performance and memory management with enriching the existing route. That would in effect hold 2 files in memory wouldn't it? I think I will just configure that last route but not start it. I'll use the onCompletion API on the third route to start the fourth route. -

Making a route depend on multiple criteria

2013-05-14 Thread cwhistler
I need a way to create a Camel route that uses a file "from" endpoint but cannot start processing that file until some other things are complete. So here's a simplified scenario just to provide an example: A camel route extracts data from a database and writes the records to a file on the file sy

How to setup JProbe

2012-01-27 Thread cwhistler
Does anyone have any tips for setting up JProbe on a camel process? We are obviously doing something wrong. We setup Jprobe to start the application with our Spring class, which does work but then we only get overall statistics. We are not able to drill down into the actual processes that camel

Re: Route does not shut down if there is no message on poll.

2011-08-05 Thread cwhistler
just wanted to see if anyone had any other suggestions or help getting this to work? I just noticed that Camel originally had something on the file endpoint to handle this. consumer.generateEmptyExchangeWhenIdle false @deprecated. Option only for the FileConsumer. If this option is true and the

Re: Route does not shut down if there is no message on poll.

2011-08-02 Thread cwhistler
sorr but I don't understand where I would put that code. -- View this message in context: http://camel.465427.n5.nabble.com/Route-does-not-shut-down-if-there-is-no-message-on-poll-tp476108p4659580.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Route does not shut down if there is no message on poll.

2011-08-01 Thread cwhistler
I think I have this worked out now. I found the PollingConsumerPollStrategy interface so I created an EmptyPollStrategy class. I changed the begin() method to simply return true. In the commit() method I checked the numberPolled parameter and if it is 0 then I just stop the consumer. I left the

Re: Route does not shut down if there is no message on poll.

2011-07-29 Thread cwhistler
I realize this is an old post but it relates my exact issue. i have used quartz to schedule a route at a specific time of day. the route should poll a file folder and process any files in it and then shut down. The problem is if there are no files in that folder then the route never shuts down.

Re: file move option not working when using split

2011-07-26 Thread cwhistler
FYI the answer to this issue is the same as the problem I had yesterday, I simply needed to close my BufferedReader at the end of the process! -- View this message in context: http://camel.465427.n5.nabble.com/file-move-option-not-working-when-using-split-tp4616425p4634904.html Sent from the Came

Re: file delete doesn't work when using filter

2011-07-25 Thread cwhistler
yes that was the answer!! -- View this message in context: http://camel.465427.n5.nabble.com/file-delete-doesn-t-work-when-using-filter-tp4632063p4632124.html Sent from the Camel - Users mailing list archive at Nabble.com.

file delete doesn't work when using filter

2011-07-25 Thread cwhistler
I have the following java route: from("c:/temp/files?delete=true&filter=#errorFileFilter") .processRef("processAcceptedFiles") .to("c:/temp/output") ; The errorFileFilter reference simply returns false if the file name contains some

Re: file move option not working when using split

2011-07-21 Thread cwhistler
Do you mean to propagate the entire inbound message into the outbound List so that it is available when this List is returned? public List splitBody(Exchange exchange) { String fileName = (String) exchange.getIn().getHeader(Exchange.FILE_NAME_ONLY);

file move option not working when using split

2011-07-20 Thread cwhistler
I am using camel version 2.7.2 I am watching an inbound folder for files. when I pick up a file I need to determine if I should do anything with it or just ignore it. If it's a file I want then I need to split the data in the file into multiple output files. After a file is processed I want to