[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test/naming/test ExternalContextUnitTestCase.java

2002-01-02 Thread Jason Dillon

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

  Modified:src/main/org/jboss/test/naming/test
ExternalContextUnitTestCase.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.5   +2 -2  
jbosstest/src/main/org/jboss/test/naming/test/ExternalContextUnitTestCase.java
  
  Index: ExternalContextUnitTestCase.java
  ===
  RCS file: 
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/naming/test/ExternalContextUnitTestCase.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- ExternalContextUnitTestCase.java  2001/10/11 01:42:00 1.4
  +++ ExternalContextUnitTestCase.java  2002/01/03 04:01:01 1.5
  @@ -26,7 +26,7 @@
* A test of the ExternalContext naming mbean. To test there needs to be one or
* more ExternalContex mbeans setup. An example filesystem context setup would
* be: 
  -  
  +  
   external/fs/Scott
   tmp.fs
   true
  @@ -39,7 +39,7 @@
   
*
* @author[EMAIL PROTECTED]
  - * @version   $Revision: 1.4 $
  + * @version   $Revision: 1.5 $
*/
   public class ExternalContextUnitTestCase extends JBossTestCase
   {
  
  
  

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



[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test/naming/test ExternalContextUnitTestCase.java

2001-09-12 Thread Mad

  User: schaefera
  Date: 01/09/12 13:43:01

  Modified:src/main/org/jboss/test/naming/test
ExternalContextUnitTestCase.java
  Log:
  Fixed some problems with the deployer.
  
  Revision  ChangesPath
  1.2   +4 -4  
jbosstest/src/main/org/jboss/test/naming/test/ExternalContextUnitTestCase.java
  
  Index: ExternalContextUnitTestCase.java
  ===
  RCS file: 
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/naming/test/ExternalContextUnitTestCase.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ExternalContextUnitTestCase.java  2001/09/12 04:55:40 1.1
  +++ ExternalContextUnitTestCase.java  2001/09/12 20:43:01 1.2
  @@ -12,7 +12,7 @@
   import javax.naming.NamingEnumeration;
   import javax.naming.NamingException;
   
  -import org.jboss.jmx.interfaces.JMXAdaptor;
  +import org.jboss.jmx.connector.JMXConnector;
   
   /** A test of the ExternalContext naming mbean. To test there needs to be
   one or more ExternalContex mbeans setup. An example filesystem context
  @@ -30,12 +30,12 @@
   java.naming.provider.url=file:/tmp
   
   @author [EMAIL PROTECTED]
  -@version $Revision: 1.1 $
  +@version $Revision: 1.2 $
   */
   public class ExternalContextUnitTestCase extends junit.framework.TestCase
   {
   private ObjectName[] contextNames;
  -private JMXAdaptor server;
  +//private JMXConnector server;
   
   public ExternalContextUnitTestCase(String name)
   {
  @@ -48,7 +48,7 @@
   {
   contextNames = null;
   String serverName = InetAddress.getLocalHost().getHostName();
  -JMXAdaptor server = (JMXAdaptor) new InitialContext().lookup("jmx");
  +JMXConnector server = (JMXConnector) new InitialContext().lookup( 
"jmx:" + serverName + ":rmi" );
   ObjectName pattern = new ObjectName("*:service=ExternalContext,*");
   Set names = server.queryMBeans(pattern, null);
   Iterator iter = names.iterator();
  
  
  

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