[esb-java-user] VFS and custom mediator

SEGUINOT Christophe christophe.seguinot-partner at arcelormittal.com
Fri Dec 19 00:14:35 PST 2008


Thank you for this very important information ! 

-----Message d'origine-----
De : esb-java-user-bounces at wso2.org [mailto:esb-java-user-bounces at wso2.org] De la part de Asankha C. Perera
Envoyé : jeudi 18 décembre 2008 18:06
À : esb-java-user at wso2.org
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
Esb-java-user at wso2.org
https://wso2.org/cgi-bin/mailman/listinfo/esb-java-user



More information about the Esb-java-user mailing list