Flush aggregator on

2017-02-01 Thread morten
Scenario: I split a csv file. A record in this file can consist of several lines. I therefore use an aggregator to concatenate lines until i have a complete record and then flush by setting: exchangeProperty(AGGREGATION_COMPLETE_CURRENT_GROUP, True) This works fine, but sadly it also causes every

Re: dynamic endpoint with dynamic encoding

2016-11-30 Thread morten
I get no exception when building this: .toD("file://" + outputDirectory + File.separator + "?fileExist=Append&charset=$(header.inputFileEncoding)"); The code only breaks when i try to write to the file due to NoSuchFileException. I would have expected to get a camel.FailedToCreateRouteException

Re: dynamic endpoint with dynamic encoding

2016-11-30 Thread morten
Thank you for pointing out my stupid mistake -- View this message in context: http://camel.465427.n5.nabble.com/dynamic-endpoint-with-dynamic-encoding-tp5790768p5790793.html Sent from the Camel - Users mailing list archive at Nabble.com.

dynamic endpoint with dynamic encoding

2016-11-29 Thread morten
I am hoping to pass the encoding dynamically to a file component. Basically I need to store an error record in a file with the same encoding as the inputfile (encoding is changed during processing). The original encoding is stored in a header called inputFileEncoding here what i have tried: 1) .re

Drop aggregate

2016-11-25 Thread morten
I have a scenario where i am parsing a large csv file that contains a lot of orderrows. I process each orderrow individually in different steps and then use an aggregator to collect all orderows for a given order. The problem is that during the processing an exception can occur which will move the

RE: Camel SQS interface throw error with attributeNames as parameter

2014-12-31 Thread Morten Raahede Knudsen
ed the value to something like attributeList: registry.put("attributeList", Collections.singletonList("All")); aws-sqs://product-scraper-file-list?amazonSQSClient=%23amazonSQSClient&attributeNames=attributeList&deleteAfterRead=false&maxMessagesPerPoll=1&visibilityTimeout=20

Re: Redelivery is not disabled when maximumRedeliveries is set to 0

2011-06-16 Thread Morten Holm
https://issues.apache.org/jira/browse/CAMEL-4106 > > On Wed, Jun 15, 2011 at 11:43 AM, Claus Ibsen wrote: >> On Tue, Jun 14, 2011 at 9:18 PM, Morten Holm wrote: >>> On Tue, Jun 14, 2011 at 6:13 PM, Claus Ibsen wrote: >>> >>>> On Tue, Jun 1

Re: Redelivery is not disabled when maximumRedeliveries is set to 0

2011-06-14 Thread Morten Holm
On Tue, Jun 14, 2011 at 6:13 PM, Claus Ibsen wrote: > On Tue, Jun 14, 2011 at 5:08 PM, Morten Holm wrote: > > Hi > > > > Redelivery is not disabled when maximumRedeliveries is set to 0. I > experience that one redelivery is always attempted. > > > &g

Redelivery is not disabled when maximumRedeliveries is set to 0

2011-06-14 Thread Morten Holm
return true; } // redeliver until we hit the max return redeliveryCounter <= getMaximumRedeliveries(); } Am I doing something wrong ? Are there some properties that I have to set ? -- camel version: 2.7.1 -- Morten Holm Developer Voice: +45 31 18 91 08 Skype: morten.

Re: onException and .process()

2010-08-30 Thread Morten Engel
Thank you very much Claus! Got it working now. -- View this message in context: http://camel.465427.n5.nabble.com/onException-and-process-tp2740331p2796799.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: onException and .process()

2010-08-30 Thread Morten Engel
Well, what I really want to do is something along the lines of editing the body, to include both the original content, as well as info on the exception, along the lines of: public void process(Exchange exchange) { Message in = exchange.getIn(); Exception ex = exchange.getException(); in.

Re: onException and .process()

2010-08-27 Thread Morten Engel
Sorry, by http-endpoint I meant an smtp-endpoint, not that it matters much to my problem, but it might cause some confusement as to what I'm trying to do. -- View this message in context: http://camel.465427.n5.nabble.com/onException-and-process-tp2740331p2740337.html Sent from the Camel - Users

onException and .process()

2010-08-27 Thread Morten Engel
Hi, I'm having a problem using a .process inside my onException handling. I enter the Processor just fine, but exiting it, causes the original exception to be thrown. What I want to do is basicly; onException(ExceptionType.class) .useOriginalBody() .handled(true) .setHeader("subject", constant(

Re: Problems deleting or moving files from FTP source

2010-07-07 Thread Morten Engel
to whether there's any known FTP DELE issues from win 2003. Thank you for the help, and the push in the right direction! Sincerely, Morten Engel -- View this message in context: http://camel.465427.n5.nabble.com/Problems-deleting-or-moving-files-from-FTP-source-tp911101p1044758.html Sent

Re: Problems deleting or moving files from FTP source

2010-07-07 Thread Morten Engel
Oh, I should probably add, that it seems the files are being referenced to the same way on RETR and DELE, an example of a RETR line (which works fine) is : 305 27.250223 192.168.98.84 195.215.57.203 FTP Request: RETR Export/test3.txt I'm guessing it's not a question of relative/

Re: Problems deleting or moving files from FTP source

2010-07-07 Thread Morten Engel
what this can be caused by, or would like additional information, I'd appreciate hearing from you. Sincerely, Morten Engel -- View this message in context: http://camel.465427.n5.nabble.com/Problems-deleting-or-moving-files-from-FTP-source-tp911101p1044751.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Problems deleting or moving files from FTP source

2010-07-07 Thread Morten Engel
This resulted in the exact same log pattern on my side, except the 4 lines below missing: 11:47:49,906 | TRACE | 0: FtpComponent | GenericFileProducer | mponent.file.GenericFileProducer 69 | Processing Exchange[Message: GenericFile[test3.txt]] 11:47:49,906 | TRACE | 0: FtpCompone

Re: Problems deleting or moving files from FTP source

2010-07-07 Thread Morten Engel
why the delete messages are not showing up remotely? Thank you, Morten Engel -- View this message in context: http://camel.465427.n5.nabble.com/Problems-deleting-or-moving-files-from-FTP-source-tp911101p1044664.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Problems deleting or moving files from FTP source

2010-07-06 Thread Morten Engel
I better add, that it's not a user restriction problem, as I can add, change and delete files as much as I want, through other means, using the same credentials. I've also tried exactly the same on another FTP server with the exact same result. -- View this message in context: http://camel.4654