On 11/14/06, mart <[EMAIL PROTECTED]> wrote:

I set the output name file from the message's FILE_NAME_PROPERTY:

this.setFileName(new
ConstantExpression(message.getProperty(FILE_NAME_PROPERTY)));

I don''t really understand this code.
The ConstantExpression will always return the same value, so this
may be related to your problem.
The default expression will already retrieve the file name from
the FILE_NAME_PROPERTY property on the exchange.

Also, the writeMessage is given an OutputStream, so the name has
to be chosen before by (eventually) overriding the getOutputName
method.

--
Cheers,
Guillaume Nodet

Reply via email to