User: user57  
  Date: 02/02/27 01:24:27

  Modified:    src/main/org/jboss/test/jmx/mbean TestDeployer.java
                        TestDeployerMBean.java
  Log:
   o Release structure and server config changes
  
  Revision  Changes    Path
  1.5       +14 -16    jbosstest/src/main/org/jboss/test/jmx/mbean/TestDeployer.java
  
  Index: TestDeployer.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/jmx/mbean/TestDeployer.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- TestDeployer.java 3 Jan 2002 04:01:01 -0000       1.4
  +++ TestDeployer.java 27 Feb 2002 09:24:27 -0000      1.5
  @@ -16,35 +16,33 @@
   import javax.management.RuntimeMBeanException;
   import javax.management.loading.MLet;
   
  +import java.io.File;
   
   import org.jboss.system.Service;
   import org.jboss.system.ServiceMBeanSupport;
   
  +import org.jboss.system.server.ServerConfigImplMBean;
  +
   /**
  - *  This is a do-nothing mbean to test service archive deployment.
  - *
  - * @author     <a href="mailto:[EMAIL PROTECTED]";>David Jencks</a>
  - * @version    $Revision: 1.4 $ <p>
  + * This is a do-nothing mbean to test service archive deployment.
    *
  - *      <b>20010901 david jencks</b>
  - *      <ul>initial import
  - *        <li>
  - *      </ul>
  + * @author <a href="mailto:[EMAIL PROTECTED]";>David Jencks</a>
  + * @version <tt>$Revision: 1.5 $</tt>
    *
  + * <b>20010901 david jencks</b>
  + * <ul>
  + *    <li>initial import
  + * </ul>
    */
   public class TestDeployer
          extends ServiceMBeanSupport
          implements TestDeployerMBean
   {
  -   public String getName()
  +   public String getBaseDir() throws Exception
      {
  -      return "TestDeployer";
  -   }
  +      File file = (File)
  +         server.getAttribute(ServerConfigImplMBean.OBJECT_NAME, "ServerHomeDir");
   
  -   public String getBaseDir()
  -   {
  -      log.warn("using jboss.system.home property");
  -      return System.getProperty("jboss.system.home");
  +      return file.getCanonicalPath();
      }
  -
   }
  
  
  
  1.5       +2 -2      
jbosstest/src/main/org/jboss/test/jmx/mbean/TestDeployerMBean.java
  
  Index: TestDeployerMBean.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/jmx/mbean/TestDeployerMBean.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- TestDeployerMBean.java    15 Feb 2002 06:15:53 -0000      1.4
  +++ TestDeployerMBean.java    27 Feb 2002 09:24:27 -0000      1.5
  @@ -20,7 +20,7 @@
    * This is a little class to test deploying jsrs
    *   
    * @author <a href="mailto:[EMAIL PROTECTED]";>David Jencks</a>
  - * @version $Revision: 1.4 $
  + * @version $Revision: 1.5 $
    *
    * <p><b>david jencks:</b>
    * <ul>
  @@ -34,5 +34,5 @@
      ObjectName OBJECT_NAME = ObjectNameFactory.create("test:service=TestDeployer");
      
      /** returns where local-directory goes.. */
  -   String getBaseDir();
  +   String getBaseDir() throws Exception;
   }
  
  
  

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

Reply via email to