[HEADS UP] - File component changes in Camel 2.0

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[HEADS UP] - File component changes in Camel 2.0

Claus Ibsen-2

As some of you know the file component have had a major refactor ...
actually you can nearly consider it as a rewrite in Camel 2.0.

This mail is about a few remaining issues I want to give a heads up
upon and feedback:

Force a filename to be provided when wring a file

I want to force file producer always requiring a header value with the
filename to write.
What we have in Camel 1.x is that if no filename header is provided it
will fallback to use the message id as the filename.

For me that has no use, as its kinda like telling a database here is
some data store it somewhere, without providing, schema, table, column

So I want it to reject writing a file and report an exception that the
filename is missing.

The file language supports you if you want to use the message id as
the filename. Just set the header value as: ${id}

And also remove option: ignoreFileNameHeader


Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/