Hello,
I have a project requirement that needs files to be polled in an ordered
fashion and synchronously from a remote directory. I've been looking at
using servicemix-vfs (for Servicemix 4.0) because it offers so many possible
file systems. However, the one problem I've had so far is that vfs will
always send message exchanges using the asynchronous call. The fact that
multiple threads are used at the same time has lead to vfs delivering files
so quickly that it overloads receiving services and eventually consumes all
of the JVM's heap memory. So my question is this: is there a way
(presently or in planning) to force vfs to wait until a message exchange is
done before it trys to send the next exchange? I've reviewed the
VFSPollingEndpoint and related classes and it seems almost trivial to set
the endpoint to use the sendSync() method in combination with the
synchronous-bypass options of the ExecutorImpl class. Would this be a good
approach, or is there a better way? Thanks.
--
View this message in context:
http://www.nabble.com/Synchronous-exchanges-with-servicemix-vfs-tp24613615p24613615.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.