Thank you for this very important information ! 

-----Message d'origine-----
De : [email protected] [mailto:[email protected]] De 
la part de Asankha C. Perera
Envoyé : jeudi 18 décembre 2008 18:06
À : [email protected]
Objet : Re: [esb-java-user] VFS and custom mediator

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


_______________________________________________
Esb-java-user mailing list
[email protected]
https://wso2.org/cgi-bin/mailman/listinfo/esb-java-user

_______________________________________________
Esb-java-user mailing list
[email protected]
https://wso2.org/cgi-bin/mailman/listinfo/esb-java-user

Reply via email to