Our FileURLConnection should be picked due to the org.jboss.net.protocol package being placed into the java.protocol.handler.pkgs by thiscode in org.jboss.system.server.ServerImpl.doInit:
// Include the default JBoss protocol handler package String handlerPkgs = System.getProperty("java.protocol.handler.pkgs"); if (handlerPkgs != null) { handlerPkgs += "|org.jboss.net.protocol"; } else { handlerPkgs = "org.jboss.net.protocol"; } System.setProperty("java.protocol.handler.pkgs", handlerPkgs); xxxxxxxxxxxxxxxxxxxxxxxx Scott Stark Chief Technology Officer JBoss Group, LLC xxxxxxxxxxxxxxxxxxxxxxxx ----- Original Message ----- From: "Alex Loubyansky" <[EMAIL PROTECTED]> To: "JBoss-Dev" <[EMAIL PROTECTED]> Sent: Monday, January 13, 2003 4:10 AM Subject: [JBoss-dev] URLConnection and opened files > 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 > ------------------------------------------------------- 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