User: user57  
  Date: 02/02/12 20:26:39

  Modified:    jboss.net/src/main/org/jboss/net/axis/server
                        AxisService.java
  Log:
   o These are all kinda related, so I am commiting them together
   o This is the second half of the migration to using ObjectName OBJECT_NAME
   o Not using jboss.system.* properties anywhere (one place in testsuite
     which I am ignoring for now)
   o StateManager will now read its config from a url (configURL), and only
     attempt to write it back out if that is a file URL.  Need to fix this
     to not need to write back to a config file.
   o Still setting jboss.home & jboss.system.home, but use ServerConfigMBean
     to get the proper bits, will eventually abstract all file access out
   o Added a simple locator to find a mbean server.  This is trivial code,
     but helps clean up client code and makes it obvious what it does.
  
  Revision  Changes    Path
  1.8       +8 -4      
contrib/jboss.net/src/main/org/jboss/net/axis/server/AxisService.java
  
  Index: AxisService.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/contrib/jboss.net/src/main/org/jboss/net/axis/server/AxisService.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- AxisService.java  7 Feb 2002 09:49:32 -0000       1.7
  +++ AxisService.java  13 Feb 2002 04:26:39 -0000      1.8
  @@ -5,7 +5,7 @@
    * See terms of license at gnu.org.
    */
   
  -// $Id: AxisService.java,v 1.7 2002/02/07 09:49:32 cgjung Exp $
  +// $Id: AxisService.java,v 1.8 2002/02/13 04:26:39 user57 Exp $
   
   package org.jboss.net.axis.server;
   
  @@ -30,6 +30,7 @@
   
   import org.jboss.naming.Util;
   import org.jboss.metadata.MetaData;
  +import org.jboss.system.ServerConfigMBean;
   
   import org.w3c.dom.Document;
   import org.w3c.dom.Element;
  @@ -66,7 +67,7 @@
    *   A deployer service that installs and manages Axis within JMX.
    *   @created 27. September 2001
    *   @author <a href="mailto:[EMAIL PROTECTED]";>Christoph G. Jung</a>
  - *   @version $Revision: 1.7 $
  + *   @version $Revision: 1.8 $
    *   Change notes:
    *   <ul>
    *     <li> 01.02.02: CGJ, Adapted to jboss3.0.0DR1 deployment changes. Arrgh! <li>
  @@ -632,8 +633,11 @@
      }
   
      protected String getDeployDir() {
  -    return System.getProperty("jboss.system.home")+
  -      File.separator+"tmp"+File.separator+"deploy"+File.separator+AXIS_DEPLOY_DIR;
  +      File systemTempDir = (File)
  +         server.getAttribute(ServerConfigMBEan.OBJECT_NAME, "TempDir");
  +
  +      return new File(new File(systemTempDir, "deploy"),
  +                      AXIS_DEPLOY_DIR).getCanonicalPath();
      }
   
      protected void copy(InputStream in, OutputStream out)
  
  
  

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

Reply via email to