Hi,

Thanks for your reply. I wasn't able to test earlier, but I've tried with
ServiceMix 3.3 and I'm getting the same behavior, file poller picks up the
file before it's completely copied. Unfortunately, I wasn't able to deploy
the 3.3.1 version, because I'm getting a web.xml parse error. For some
reason, even though the web.xml file found inside
apache-servicemix-web-3.3.1.war states the servlet version as 2.4, the
geronimo console error message says that it's 2.5, so I'm getting "error:
cvc-complex-type.2.4a: Expected elements
'servlet-cl...@http://java.sun.com/xml/ns/javaee
jsp-f...@http://java.sun.com/xml/ns/javaee' instead of
'display-n...@http://java.sun.com/xml/ns/javaee' here in element
serv...@http://java.sun.com/xml/ns/javaee";

Thanks again.


Lars Heinemann-2 wrote:
> 
> 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
> 
> 

-- 
View this message in context: 
http://old.nabble.com/File-poller-with-large-files-tp27819849p28080331.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to