Hi,

Lurk mode off..

Jason Dillon wrote:

>    o ServerImpl uses org.jboss.net.protocol.URLStreamHandlerFactory
>      instead of setting system prop


Setting the system property will work but the seperator char is '|' not 
':'. The system property is a better solution as there can be only one
StreamHandlerFactory registered (but the URL class only tries to load 
resource handlers using Class.forName() and the system-classloader so
that might not work with custom classloaders).


>          // Setup JBoss URL handlers
>   -      String handlerPkgs = System.getProperty("java.protocol.handler.pkgs", null);
>   -      if (handlerPkgs == null)
>   -         handlerPkgs = "org.jboss.net.protocol";
>   -      else
>   -         handlerPkgs += ":org.jboss.net.protocol";
>   -      System.setProperty("java.protocol.handler.pkgs", handlerPkgs );
>   +      URL.setURLStreamHandlerFactory(new 
>org.jboss.net.protocol.URLStreamHandlerFactory());


regards,

Marcel Ammerlaan




_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to