Hi,

in newer servicemix-file versions there is a check which prevents the
behaviour you are talking about.
It checks for changes in file size before picking it up.

Maybe it's just as easy as switching to a more recent smx version.

Regards
Lars



2010/3/8 fnitu <[email protected]>:
>
> Hello,
>
> I'm trying to find a way to prevent the poller from picking up large files
> before they're being copied. What I've done so far is having a marshaler in
> which I check if I can get an exclusive FileLock on the file. Unfortunately,
> in Windows it doesn't work, I get the exclusive lock on the file, the
> Windows copying halts.
>
> The other option I've found searching the forum is to have a custom
> LockManager, in which I check if the file size was modified between two
> intervals. That's not an acceptable solution for me because that check might
> be inaccurate (slow network speed, so the size isn't modified, if the
> interval is too small).
>
> Configuration details:
> ServiceMix 3.2.1
> Geronimo Tomcat 2.1.1
> JDK 1.5.0_17
> Windows XP
>
> Thanks.
> --
> View this message in context: 
> http://old.nabble.com/File-poller-with-large-files-tp27819849p27819849.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>



-- 
http://lhein.blogspot.com

Reply via email to