[esb-java-user] VFS and custom mediator
Asankha C. Perera
adroitlogic at gmail.com
Thu Dec 18 09:05:37 PST 2008
Hi Christophe
> I'm loading a file from the filesystem using vfs. This is a text file. I'm developping a custom mediator to convert this text file to an xml file and then I want to write the xml file to the filesystem again:
> .......
>
> So I can't manipulate the content of the file loaded by vfs but this content is correctly written as a response.xml by the send mediator configured with a vfs endpoint. (the response.xml contains simply my text data).
>
> Do you know a way to manipulate the content of the file loaded by vfs in a mediator ?
>
I would suggest that you stay away from trying to read the whole file
into a String.. which could easily cause an out of memory exception..
cheers
asankha
--
Asankha C. Perera
http://adroitlogic.org
http://esbmagic.blogspot.com
More information about the Esb-java-user
mailing list