Re: [JBoss-dev] URLConnection and opened files

2003-01-13 Thread Scott M Stark
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);


Scott Stark
Chief Technology Officer
JBoss Group, LLC


- 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



Re: [JBoss-dev] URLConnection and opened files

2003-01-13 Thread Adam Heath
On Mon, 13 Jan 2003, Scott M Stark wrote:

 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);

Wouldn't it be better to prepend it?  Maybe some implementations have a file
url handler before jboss'.



---
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



Re: [JBoss-dev] URLConnection and opened files

2003-01-13 Thread Scott M Stark
No, then you have no way to override it.


Scott Stark
Chief Technology Officer
JBoss Group, LLC


- Original Message - 
From: Adam Heath [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, January 13, 2003 1:31 PM
Subject: Re: [JBoss-dev] URLConnection and opened files


 On Mon, 13 Jan 2003, Scott M Stark wrote:
 
  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);
 
 Wouldn't it be better to prepend it?  Maybe some implementations have a file
 url handler before jboss'.



---
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