JIRA created:

https://issues.apache.org/jira/browse/CAMEL-5269

/Bengt

2012/5/10 Claus Ibsen <claus.ib...@gmail.com>

> On Thu, May 10, 2012 at 12:59 PM, Bengt Rodehav <be...@rodehav.com> wrote:
> > I think it would be a good feature to have. Our integration counterparts
> > often require that the name of the file we send to them is hardcoded (i e
> > it should always be the same name) or conform to a naming standard
> defined
> > by the receiver. But internally, on the sending side, the original file
> is
> > often named completely differently. We then put files that we have
> > correctly handled in an archive directory and the  ones we could not
> handle
> > in a failed directory. In those cases it is important that we locally
> > archive with the original file name to have full traceability.
> >
> > In short, yes support for this would be useful.
> >
>
> Fell free to create a JIRA ticket.
>
> > /Bengt
> >
> > 2012/5/10 Claus Ibsen <claus.ib...@gmail.com>
> >
> >> On Thu, May 10, 2012 at 11:23 AM, Bengt Rodehav <be...@rodehav.com>
> wrote:
> >> > I do this in Camel 2.7.1 and it definitely changes the name of the
> file
> >> > before ftp:ing:
> >> >
> >> > *theExchange.getIn().setHeader(Exchange.FILE_NAME, "newfilename");*
> >> >
> >>
> >> Yeah you need to store the original file in another header before hand,
> >> and then restore it back again afterwards.
> >>
> >> We may wonder some way of making this easier if this is more commonly
> >> used use-case.
> >> Anyone else picking up files, and storing them using a different file
> >> name, and then have to preserve
> >> the original file name afterwards ?
> >>
> >> > Hope that helps,
> >> >
> >> > /Bengt
> >> >
> >> > 2012/5/10 qwerty5000 <yuki.tan...@barclays.com>
> >> >
> >> >> Thanks guys, but the solution you suggested would rename the files
> after
> >> >> the
> >> >> ftp step so doesn't work.
> >> >>
> >> >> Anyway to retain the original file name? This is necessary as I need
> to
> >> >> perform some local processing after the file has been ftpd, and I
> need
> >> to
> >> >> use the file name as some sort of an uid.
> >> >>
> >> >> --
> >> >> View this message in context:
> >> >>
> >>
> http://camel.465427.n5.nabble.com/how-to-specify-remote-file-name-when-using-FTP-endpoint-tp5697227p5699472.html
> >> >> Sent from the Camel - Users mailing list archive at Nabble.com.
> >> >>
> >>
> >>
> >>
> >> --
> >> Claus Ibsen
> >> -----------------
> >> CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com
> >> FuseSource
> >> Email: cib...@fusesource.com
> >> Web: http://fusesource.com
> >> Twitter: davsclaus, fusenews
> >> Blog: http://davsclaus.blogspot.com/
> >> Author of Camel in Action: http://www.manning.com/ibsen/
> >>
>
>
>
> --
> Claus Ibsen
> -----------------
> CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com
> FuseSource
> Email: cib...@fusesource.com
> Web: http://fusesource.com
> Twitter: davsclaus, fusenews
> Blog: http://davsclaus.blogspot.com/
> Author of Camel in Action: http://www.manning.com/ibsen/
>

Reply via email to