Yes, the setup of the URL handlers should be the very first thing done in doInit.
There is nothing in that layer that can rely on ServerConfig information as this
is just standard URL protocol handler extension stuff.

xxxxxxxxxxxxxxxxxxxxxxxx
Scott Stark
Chief Technology Officer
JBoss Group, LLC
xxxxxxxxxxxxxxxxxxxxxxxx

----- Original Message ----- 
From: "Jeremy Boynes" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 15, 2003 11:42 AM
Subject: Re[6]: [JBoss-dev] URLConnection and opened files


> Alex
> 
> The light went on and I'm now wondering if I triggered this with the changes
> for deployment scanning.
> 
> IIRC the code used to generate new URLs from the File paths returned during
> the scan, basically using the URL(String) constructor with the path.
> 
> It now creates URLs relative to the location being scanned using the
> URL(URL, String) version. The context URL is the one obtained from
> ServerConfig.getServerHomeURL().
> 
> If this is set before the custom handler factory is set up, then all
> deployed URLs would be using Sun's handler :-(
> 
> I think this is happening because ServerImpl.doInit() creates the
> ServerConfigImpl before setting up the URLStreamHandlerFactory.
> 
> Would it make sense just to move the factory set-up to the very start of
> doInit()?
> 
> Jeremy



-------------------------------------------------------
This SF.NET email is sponsored by: A Thawte Code Signing Certificate 
is essential in establishing user confidence by providing assurance of 
authenticity and code integrity. Download our Free Code Signing guide:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to