Details
-
New Feature
-
Status: Resolved
-
Trivial
-
Resolution: Fixed
-
servicemix-vfs-2009.02
-
None
-
Windows XP, service pack 3
Servicemix 4.0, Kernel 1.1.0
-
Patch Available
Description
Under certain conditions a user of the VFSPollingEndpoint may need to guarantee that the endpoint will only send one message exchange at a time, regardless of how many files it has polled, or the number of threads that the ExecutorImpl instance has been configured with. An example of this is when the polling endpoint must deliver files in a specific order, and there cannot be any risk of out-of-order exchanges being sent. The user of the endpoint should be allowed to set the option of having exchanges sent in a concurrent or sequential fashion by the normal setter methods.
I've modified and tested the servicemix-vfs-2009.02-SNAPSHOT to support asynchronous(concurrent) or synchronous exchange sending. I have performed minor testing of these changes and they appear to work as expected. The patch is included. By default exchanges are sent asynchronously as before. If these changes are acceptable the xml schema for servicemix-vfs should probably also be changed to expose the new setter.