camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Apache Camel enrich message with file content on request
Date Mon, 15 Apr 2013 16:36:26 GMT
If you know the name of the file to pickup, then its much easier to
transform the message body to java.io.File of that file.

For example something like:
<transform>
  <simple type="java.io.File">/somepath/${header.filenameToPickup}</simple>
</transform>



On Mon, Apr 15, 2013 at 8:57 AM, nikagra <nikagra@gmail.com> wrote:
> Hello
> I've already asked this question on stackoverflow ( link
> <http://stackoverflow.com/questions/15947523/apache-camel-enrich-message-with-file-content-on-request>
> ) but without any success.
> Basically, the problem is next:
> I want to consume files by request (one at a time) and possibly several
> times. Camel allows me to get file only once, I got
> DEBUG o.a.c.c.f.FileConsumer - Took 0.000 seconds to poll \xml
> log message multiple times.
> Are there ways to do this or maybe better solutions of this problem?
> Thanks in advance
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Apache-Camel-enrich-message-with-file-content-on-request-tp5730866.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Mime
View raw message