This code retrieve the file name (String) in the message -which is set as a property when it is created: message.getProperty(FILE_NAME_PROPERTY)
The fileName property of the Marshaler is an Expression and not a String, so I create an Expression from this String. This seems to work well before. This is a ConstantExpression but the name in this scope is constant (the string) and I create a new one each time the writeMessage is executed. I don't really see the problem in this. Anyway as you say this is not needed but in 3.0, I think it was. It didn't set the fileName automatically. I use the same marshaler with lw FTP and vfs without problem with file names. I tested without it. this doesn't solve my problem...so...Weird. Concerning lw in 3.1 and vfs it works really well if I have 1, 2, 5, or max. 10 files in my FTP repository but more files will make smix act crazy... gnodet wrote: > > 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 > > -- View this message in context: http://www.nabble.com/Problem-using-VFS-with-FTP-tf2602487s12049.html#a7339221 Sent from the ServiceMix - User mailing list archive at Nabble.com.
