Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 89999 invoked from network); 7 Apr 2010 12:06:50 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 7 Apr 2010 12:06:50 -0000 Received: (qmail 61662 invoked by uid 500); 7 Apr 2010 12:06:50 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 61635 invoked by uid 500); 7 Apr 2010 12:06:50 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 61627 invoked by uid 99); 7 Apr 2010 12:06:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Apr 2010 12:06:50 +0000 X-ASF-Spam-Status: No, hits=-1.0 required=10.0 tests=AWL,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of claus.ibsen@gmail.com designates 209.85.220.228 as permitted sender) Received: from [209.85.220.228] (HELO mail-fx0-f228.google.com) (209.85.220.228) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Apr 2010 12:06:46 +0000 Received: by fxm28 with SMTP id 28so1296669fxm.36 for ; Wed, 07 Apr 2010 05:06:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:received:message-id:subject:to:content-type :content-transfer-encoding; bh=G7SpqEr7wWU/9NTOwdAzU11qwpJ+2NqnxFhvzJTBpxM=; b=Z1vLHSx7pkKtwpDtKWYmB/ZQ3FE9zSxWTnHFS0QG+S2eprdMV9jwtfEOsHpl6FY3Hk 9tWB3uqn7udS0c25M2hLl9J1HCbdaMfkyUwKL+g7SS08L1Beridg+vgUbHbjzyYaLETK V5iEhyRr7pIsJqsxcy3JPAFahCMcEVON44fEE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=XrZwWaD7Dc3AJ+GUFy3JVVGaCH81dL8Bcqy2XwE2nHDaLcn0h0bCfV7PJxtjlAL4EQ t0VwIAT5F8uHyUkMDhbUip+s5DpLcIJEavYoPdvqUxnVee+TDO447tgtObJrOnlbBAJ3 r0vitHq2HMMve3RfohFzahgA8PrPxg03XYXeQ= MIME-Version: 1.0 Received: by 10.223.109.11 with HTTP; Wed, 7 Apr 2010 05:06:04 -0700 (PDT) In-Reply-To: <28162632.post@talk.nabble.com> References: <28154602.post@talk.nabble.com> <28155375.post@talk.nabble.com> <28162033.post@talk.nabble.com> <28162146.post@talk.nabble.com> <28162632.post@talk.nabble.com> From: Claus Ibsen Date: Wed, 7 Apr 2010 14:06:04 +0200 Received: by 10.223.68.13 with SMTP id t13mr2851240fai.69.1270641984204; Wed, 07 Apr 2010 05:06:24 -0700 (PDT) Message-ID: Subject: Re: FileComponent Camel 2.2 To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Try using the Tracer and/or add this logging to the end of your route .to("log:foo?showAll=3Dtrue") It could be something in all your processors and whatnot which messes with the headers. I have created an unit test on my system and it works all the time. On Wed, Apr 7, 2010 at 11:35 AM, Nick Mitchell wr= ote: > > from(cronTriggerExpression) > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 .pollEnrich(ebookRemoteFTPIn,= 0) > =A0 =A0 =A0 =A0.idempotentConsumer(header("CamelFileName"),filenameReposi= tory) > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0.to(ebookIn); > > =A0 =A0 =A0 =A0 =A0 from(ebookIn) > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0.process( new SetupChildRo= uteRuntime(metaRouteId,childRouteId+0, > baseDao) ) > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0.unmarshal(new XMLebookDat= aFormat()) > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0.process(new CSVebookProce= ssor(ebookOut, > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0ebookTable, > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0authorTable, > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0drminfoTable, > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0ebookSubjectTable, > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0abstractBook2BiccodeTable, > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0bisacBicDao, > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A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0 =A0 =A0 =A0productDao, > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0composedTypeDao, > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0etlStats, > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0true, > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0currentVatRate > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0) ) > =A0 =A0 =A0 =A0.setHeader("FILE_ID", > SimpleLanguage.simple("${file:onlyname.noext}")) > =A0 =A0 =A0 =A0.process(new ZipProcessorHybris(ebookOut, ebookZipOut, > ebookOutFileName, true, ebookZipIn, > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A00L, "[_.]","_{0}_{date}",e= tlStats)) > =A0 =A0 =A0 =A0.process(new EmailProcessor(mailService,etlStats,ebookZipI= n)) > =A0 =A0 =A0 =A0.process( new EtlProcessSuccess(baseDao)) > =A0 =A0 =A0 =A0 =A0 =A0.process(new CleanExchange()) > =A0 =A0 =A0 =A0 =A0 =A0.delay().method( "com.lbi.etl.utils.beans.Delayer"= , "forceGC" ); > > I've tried to fill in some constants so it makes a bit more sense to you. > The processors in the route don't really do much. Basically the route pol= ls > for an XML file, processes the XML file, converts to a csv format, puts t= he > output file in a different directory and emails to say successful. > > Cheers > Nick > > > Claus Ibsen-2 wrote: >> >> Hi >> >> Could you post your route? I will then use it to reproduce the issue >> on my laptop. >> >> >> On Wed, Apr 7, 2010 at 10:45 AM, Nick Mitchell >> wrote: >>> >>> We are setting FILE_ID in the header >>> >>> .setHeader(FILE_ID, SimpleLanguage.simple("${file:onlyname.noext}")) >>> >>> If I change the file expression to ${file:name.ext} then it does move i= t >>> to >>> .camel folder. I confused as to why it worked before and not now though= . >>> -- >>> View this message in context: >>> http://old.nabble.com/FileComponent-Camel-2.2-tp28154602p28162146.html >>> Sent from the Camel - Users mailing list archive at Nabble.com. >>> >>> >> >> >> >> -- >> Claus Ibsen >> Apache Camel Committer >> >> Author of Camel in Action: http://www.manning.com/ibsen/ >> Open Source Integration: http://fusesource.com >> Blog: http://davsclaus.blogspot.com/ >> Twitter: http://twitter.com/davsclaus >> >> > > -- > View this message in context: http://old.nabble.com/FileComponent-Camel-2= .2-tp28154602p28162632.html > Sent from the Camel - Users mailing list archive at Nabble.com. > > --=20 Claus Ibsen Apache Camel Committer Author of Camel in Action: http://www.manning.com/ibsen/ Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus