Configuring the server
The VFS implementation that uses the Enterprise Integrator server is based on the Apache Commons VFS implementation deployed in the commons-vfs2_2.0.0.wso2v15.jar
library that contains the required resources to work with files.
The use of the VFS transport is disabled in the server by default, so we need to enable it in the <EI_HOME>/conf/axis2/axis2.xml
file and restart the server in order to apply the changes. We have two different implementations that we can enable: one for reading the files and the other for writing the files:
<transportReceiver name="vfs" class="org.apache.synapse.transport.vfs.VFSTransportListener"/>
<transportSender name="vfs" class="org.apache.synapse.transport.vfs.VFSTransportSender"/>
Large files
Sometimes when we work with large files with the VFS transport, we can get out of memory errors. To avoid these errors, we need to configure the EI server with the following properties.
The first file that we need to set up is <EI_HOME...