[jboss-dev-forums] [Design of POJO Server] - Re: Installing VFS* Protocol Handlers

alesj do-not-reply at jboss.com
Mon May 11 02:39:56 EDT 2009


"ALRubinger" wrote : 
  | I'd been expecting the VFS.init() call to be enough...who knows the missing piece?
This should work afaik.
As this code initializes our vfs protocols:

  |       String pkgs = System.getProperty("java.protocol.handler.pkgs");
  |       if (pkgs == null || pkgs.trim().length() == 0)
  |       {
  |          pkgs = "org.jboss.virtual.protocol";
  |          System.setProperty("java.protocol.handler.pkgs", pkgs);
  |       }
  |       else if (pkgs.contains("org.jboss.virtual.protocol") == false)
  |       {
  |          pkgs += "|org.jboss.virtual.protocol";
  |          System.setProperty("java.protocol.handler.pkgs", pkgs);
  |       }
  | 

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4229941#4229941

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4229941



More information about the jboss-dev-forums mailing list