User: user57  
  Date: 02/02/26 20:47:23

  Modified:    src/main/org/jboss Main.java
  Log:
   o jboss.home is used in some config files which can't talk to ServerConfig instance
     directly
  
  Revision  Changes    Path
  1.2       +4 -5      jboss-system/src/main/org/jboss/Main.java
  
  Index: Main.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-system/src/main/org/jboss/Main.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Main.java 24 Feb 2002 10:24:33 -0000      1.1
  +++ Main.java 27 Feb 2002 04:47:23 -0000      1.2
  @@ -37,7 +37,7 @@
    *
    * @author <a href="mailto:[EMAIL PROTECTED]";>Marc Fleury</a>
    * @author <a href="mailto:[EMAIL PROTECTED]";>Jason Dillon</a>
  - * @version $Revision: 1.1 $
  + * @version $Revision: 1.2 $
    */
   public class Main
   {
  @@ -74,9 +74,7 @@
         // Set a jboss.home property from the location of the Main.class jar
         // if the property does not exist.
         //
  -      // marcf: we don't use this property at all for now
  -      // it should be used for all the modules that need a file "anchor"
  -      // it should be moved to an "FileSystemAnchor" MBean
  +      // Should let ServerConfigImpl handle setting these
         //
         if (System.getProperty("jboss.home") == null)
         {
  @@ -296,7 +294,8 @@
         }
   
         // Load the server
  -      Server server = loader.load(Thread.currentThread().getContextClassLoader());
  +      ClassLoader parentCL = Thread.currentThread().getContextClassLoader();
  +      Server server = loader.load(parentCL);
   
         // Initialize & make sure that shutdown exits the VM
         server.init(props);
  
  
  

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

Reply via email to