inline ...

On Wed, Nov 27, 2013 at 12:08 AM, Claus Ibsen <claus.ib...@gmail.com> wrote:

> See the red box on the page about pollEnrich - its not dynamic.
> There is a JIRA ticket to improve this in the future (but its a bit
> harder due API changes)
>

Bummer it would have been perfect.
I assume you refer to CAMEL-4596.
Please forgive my ignorance, but would/should the file component not parse
the expression for the file name argument itself when the endpoint is
created by pollEnrich? Am I missing something?


> You can though use a java bean and use consumer template where you can
> do dynamic.
>

I need to study consumer templates. I am fairly new to Camel.


> Or if you dont need to move/delete the file or do any custom
> aggregation strategy, then its much easier to just do a message
> transformation and set the body type to java.io.File and the body
> content as the file name.
>

My fall back strategy was to scan the directory manually in a processor and
split the list of files found with a splitter, but I would have preferred
to (re)use the file component instead of coding t in Java myself.


> <transform>
>    <simple resultType="java.io.File">${header.someName}</simple>
> </transform>
>
>
> --
> Claus Ibsen
> -----------------
> Red Hat, Inc.
> Email: cib...@redhat.com
> Twitter: davsclaus
> Blog: http://davsclaus.com
> Author of Camel in Action: http://www.manning.com/ibsen
>



-- 

Lothar Werzinger

Principal Architect

Tradescape, Inc. - Enabling Efficient Digital Marketplaces

+1-650-931-6719 (direct)

+1-800-697-6068 (main) Ext. 116

lot...@tradescape.biz

http://www.tradescape.biz

-- 


This message and any attachment (the "message") is intended solely for the 
addressees and is confidential. If you receive this message by mistake, 
please delete it and notify the sender immediately. Any use not 
in accordance with its purpose, any out-spread or disclosure, either as a 
whole or partially, is prohibited except with formal approval. Internet 
cannot guarantee the integrity of this message, therefore Tradescape will 
not be liable for the message if modified.

-

Reply via email to