[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test/jmx/mbean TestDeployer.java

2002-04-03 Thread Jason Dillon

  User: user57  
  Date: 02/04/03 20:33:30

  Modified:src/main/org/jboss/test/jmx/mbean TestDeployer.java
  Log:
   o Using ServerConfigLocator instead of ServerConfigImplMBean
  
  Revision  ChangesPath
  1.6   +3 -4  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.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- TestDeployer.java 27 Feb 2002 09:24:27 -  1.5
  +++ TestDeployer.java 4 Apr 2002 04:33:29 -   1.6
  @@ -21,13 +21,13 @@
   import org.jboss.system.Service;
   import org.jboss.system.ServiceMBeanSupport;
   
  -import org.jboss.system.server.ServerConfigImplMBean;
  +import org.jboss.system.server.ServerConfigLocator;
   
   /**
* This is a do-nothing mbean to test service archive deployment.
*
* @author mailto:[EMAIL PROTECTED]";>David Jencks
  - * @version $Revision: 1.5 $
  + * @version $Revision: 1.6 $
*
* 20010901 david jencks
* 
  @@ -40,8 +40,7 @@
   {
  public String getBaseDir() throws Exception
  {
  -  File file = (File)
  - server.getAttribute(ServerConfigImplMBean.OBJECT_NAME, "ServerHomeDir");
  +  File file = ServerConfigLocator.locate().getServerHomeDir();
   
 return file.getCanonicalPath();
  }
  
  
  

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



[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test/jmx/mbean TestDeployer.java TestDeployerMBean.java

2002-02-27 Thread Jason Dillon

  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  ChangesPath
  1.5   +14 -16jbosstest/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 -   1.4
  +++ TestDeployer.java 27 Feb 2002 09:24:27 -  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 mailto:[EMAIL PROTECTED]";>David Jencks
  - * @version$Revision: 1.4 $ 
  + * This is a do-nothing mbean to test service archive deployment.
*
  - *  20010901 david jencks
  - *  initial import
  - *
  - *  
  + * @author mailto:[EMAIL PROTECTED]";>David Jencks
  + * @version $Revision: 1.5 $
*
  + * 20010901 david jencks
  + * 
  + *initial import
  + * 
*/
   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.java15 Feb 2002 06:15:53 -  1.4
  +++ TestDeployerMBean.java27 Feb 2002 09:24:27 -  1.5
  @@ -20,7 +20,7 @@
* This is a little class to test deploying jsrs
*   
* @author mailto:[EMAIL PROTECTED]";>David Jencks
  - * @version $Revision: 1.4 $
  + * @version $Revision: 1.5 $
*
* david jencks:
* 
  @@ -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



[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test/jmx/mbean TestDeployer.java

2002-01-02 Thread Jason Dillon

  User: user57  
  Date: 02/01/02 20:01:01

  Modified:src/main/org/jboss/test/jmx/mbean TestDeployer.java
  Log:
   o migrated all components to a new JMX domain name model.  jboss.system
 is now where to core/spine components live.  moved all components that
 were in JBOSS-SYSTEM that did not move into a jboss.* domain into
 jboss (where the server is now registered).  The point was to limit the
 members of jboss.system to core bits only.
   o Created org.jboss.system.Server, which does the work of initialization
 that org.jboss.Main used to do.  Main now only parses the command line,
 sets up basic legecy properties and creates a Server instance.
   o Moved functionality of Shutdown (component not cl tool) into Server (
 which is bound as jboss.system:service=Server)
   o Moved more Runtime access from Info into Server.  Exposed memory info
 as attributes.
   o Logging a WARN everywhere that uses System.getProperty("jboss.system.home")
 as that should go away soon/eventually.
   o Initialized the invokerMap in the harmi impl to avoid NPE
   o Made getopt.jar a member of the lib/* dir instead of adding it to the
 run.jar and shutdown.jars each time.
   o Minor cosmetic changes along the way.
  
  Revision  ChangesPath
  1.4   +2 -1  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.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- TestDeployer.java 2001/11/19 06:59:13 1.3
  +++ TestDeployer.java 2002/01/03 04:01:01 1.4
  @@ -24,7 +24,7 @@
*  This is a do-nothing mbean to test service archive deployment.
*
* @author mailto:[EMAIL PROTECTED]";>David Jencks
  - * @version$Revision: 1.3 $ 
  + * @version$Revision: 1.4 $ 
*
*  20010901 david jencks
*  initial import
  @@ -43,6 +43,7 @@
   
  public String getBaseDir()
  {
  +  log.warn("using jboss.system.home property");
 return System.getProperty("jboss.system.home");
  }
   
  
  
  

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



[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test/jmx/mbean TestDeployer.java TestDeployerMBean.java

2001-11-18 Thread David Jencks

  User: d_jencks
  Date: 01/11/18 22:59:13

  Modified:src/main/org/jboss/test/jmx/mbean TestDeployer.java
TestDeployerMBean.java
  Log:
  Fixed broken jmx deployment tests and added some new ones
  
  Revision  ChangesPath
  1.3   +6 -1  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.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- TestDeployer.java 2001/09/20 18:23:41 1.2
  +++ TestDeployer.java 2001/11/19 06:59:13 1.3
  @@ -24,7 +24,7 @@
*  This is a do-nothing mbean to test service archive deployment.
*
* @author mailto:[EMAIL PROTECTED]";>David Jencks
  - * @version$Revision: 1.2 $ 
  + * @version$Revision: 1.3 $ 
*
*  20010901 david jencks
*  initial import
  @@ -39,6 +39,11 @@
  public String getName()
  {
 return "TestDeployer";
  +   }
  +
  +   public String getBaseDir()
  +   {
  +  return System.getProperty("jboss.system.home");
  }
   
   }
  
  
  
  1.2   +3 -1  
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.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TestDeployerMBean.java2001/09/08 16:57:04 1.1
  +++ TestDeployerMBean.java2001/11/19 06:59:13 1.2
  @@ -18,7 +18,7 @@
   *   
   * @author mailto:[EMAIL PROTECTED]";>David Jencks
   *
  -* @version $Revision: 1.1 $
  +* @version $Revision: 1.2 $
   *
   *   david jencks:
   *   
  @@ -33,5 +33,7 @@
  
  /** The default object name. */
  public static final String OBJECT_NAME = "test:service=TestDeployer";
  -   
  +   //returns where local-directory goes.
  +   String getBaseDir();
  +
   }
  
  
  

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



[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test/jmx/mbean TestDeployer.java

2001-09-20 Thread David Jencks

  User: d_jencks
  Date: 01/09/20 11:23:41

  Modified:src/main/org/jboss/test/jmx/mbean TestDeployer.java
  Log:
  fixed my mailto address
  
  Revision  ChangesPath
  1.2   +1 -1  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.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TestDeployer.java 2001/09/08 16:57:04 1.1
  +++ TestDeployer.java 2001/09/20 18:23:41 1.2
  @@ -23,8 +23,8 @@
   /**
*  This is a do-nothing mbean to test service archive deployment.
*
  - * @author David Jencks
  - * @version$Revision: 1.1 $ 
  + * @author mailto:[EMAIL PROTECTED]";>David Jencks
  + * @version$Revision: 1.2 $ 
*
*  20010901 david jencks
*  initial import
  
  
  

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



[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test/jmx/mbean TestDeployer.java TestDeployerMBean.java

2001-09-08 Thread David Jencks

  User: d_jencks
  Date: 01/09/08 09:57:04

  Added:   src/main/org/jboss/test/jmx/mbean TestDeployer.java
TestDeployerMBean.java
  Log:
  Added tests for sar deployment, *-service.xml deployment, sar dependency management, 
and recursive .sar deployment
  
  Revision  ChangesPath
  1.1  jbosstest/src/main/org/jboss/test/jmx/mbean/TestDeployer.java
  
  Index: TestDeployer.java
  ===
  /*
   * JBoss, the OpenSource J2EE webOS
   *
   * Distributable under LGPL license.
   * See terms of license at gnu.org.
   */
  package org.jboss.test.jmx.mbean;
  
  import javax.management.InstanceNotFoundException;
  import javax.management.MBeanException;
  import javax.management.MBeanServer;
  import javax.management.MalformedObjectNameException;
  
  import javax.management.ObjectName;
  import javax.management.ReflectionException;
  import javax.management.RuntimeMBeanException;
  import javax.management.loading.MLet;
  
  
  import org.jboss.system.Service;
  import org.jboss.system.ServiceMBeanSupport;
  
  /**
   *  This is a do-nothing mbean to test service archive deployment.
   *
   * @author David Jencks
   * @version$Revision: 1.1 $ 
   *
   *  20010901 david jencks
   *  initial import
   *
   *  
   *
   */
  public class TestDeployer
 extends ServiceMBeanSupport
 implements TestDeployerMBean
  {
 public String getName()
 {
return "TestDeployer";
 }
  
  }
  
  
  
  1.1  
jbosstest/src/main/org/jboss/test/jmx/mbean/TestDeployerMBean.java
  
  Index: TestDeployerMBean.java
  ===
  /*
  * JBoss, the OpenSource J2EE server
  *
  * Distributable under LGPL license.
  * See terms of license at gnu.org.
  */
  package org.jboss.test.jmx.mbean;
  
  import javax.management.ObjectName;
  
  import org.w3c.dom.Element;
  import org.w3c.dom.Document;
  
  import org.jboss.system.Service;
  import org.jboss.system.ServiceMBean;
  /** 
  * This is a little class to test deploying jsrs
  *   
  * @author mailto:[EMAIL PROTECTED]";>David Jencks
  *
  * @version $Revision: 1.1 $
  *
  *   david jencks:
  *   
  *  initial import
  *
  *   
  */
  public interface TestDeployerMBean
  extends Service, ServiceMBean
  {
 // Public 
 
 /** The default object name. */
 public static final String OBJECT_NAME = "test:service=TestDeployer";
 
  }
  
  
  

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