I am investingating the problem with inability remove deployed files.

First, I've found that URLDeploymentScanner uses
sun.net.www.protocol.file.FileURLConnection. For example here:
URLConnection connection;
if (watchUrl != null)
{
   connection = watchUrl.openConnection();
}
else
{
   connection = url.openConnection();
}
The connection is of type sun.net.www.protocol.file.FileURLConnection.
There are at least two problems with it:
1. incorrect last modified (occurs to be always 0)
2. after invoking connection.getLastModified() the target file can't
be removed on windows.
I guess org.jboss.net.protocol.file.FileURLConnection shuold be used
instead. But haven't figured out how to set it instead of Sun's.
Could someone hint?

Thanks,
alex




-------------------------------------------------------
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to