commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cos...@apache.org
Subject cvs commit: jakarta-commons/modeler/src/java/org/apache/commons/modeler package.html
Date Sun, 13 Apr 2003 17:32:52 GMT
costin      2003/04/13 10:32:52

  Modified:    modeler/src/java/org/apache/commons/modeler package.html
  Log:
  Few updates to the doc
  
  Revision  Changes    Path
  1.3       +6 -6      jakarta-commons/modeler/src/java/org/apache/commons/modeler/package.html
  
  Index: package.html
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/modeler/src/java/org/apache/commons/modeler/package.html,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- package.html	13 Mar 2003 07:02:56 -0000	1.2
  +++ package.html	13 Apr 2003 17:32:52 -0000	1.3
  @@ -32,7 +32,8 @@
   described in detail below.  You can find some simple usage code in the unit
   tests that come with Modeler (in the <code>src/test</code> subdirectory of
the
   source distribution), and much more complex usage code in Tomcat 4.1 (in the
  -<code>org.apache.catalina.mbeans</code> package).</p>
  +<code>org.apache.catalina.mbeans</code> package).</p>. More advanced
uses can
  +be found in Tomcat 5 and jakarta-tomcat-connectors.
   
   
   <h3>1.  Acquire a JMX Implementation</h3>
  @@ -42,7 +43,7 @@
   <li>JMX Reference Implementation (version 1.0.1 or later) -
       <a href="http://java.sun.com/products/JavaManagement/download.html">
       http://java.sun.com/products/JavaManagement/download.html</a></li>
  -<li>MX4J (version 1.0-beta-3 or later) -
  +<li>MX4J (version 1.1 or later) -
       <a href="http://mx4j.sourceforge.net/">http://mx4j.sourceforge.net</a></li>
   <li>JBoss MX
       <a href="http://www.jboss.org/">http://www.jboss.org</a></li>
  @@ -186,11 +187,10 @@
   containing the MBean implementation classes themselves, and loaded as follows:
   </p>
   <pre>
  -    InputStream stream = this.getClass().getResourceAsStream
  +    URL url= this.getClass().getResource
         ("/com/mycompany/mypackage/mbeans-descriptors.xml");
       Registry registry = Registry.getRegistry();
  -    registry.loadDescriptors(stream);
  -    stream.close();
  +    registry.loadMetadata(url);
   </pre>
   
   <p>Besides using the configuration file, it is possible to configure the
  @@ -219,7 +219,7 @@
   
     MBeanServer mserver = registry.getMBeanServer();
   
  -  ObjectName oname="myDomain:type=Group,name=myGroup";
  +  String oname="myDomain:type=Group,name=myGroup";
   
     registry.registerComponent( group, oname, "Group" );
   </pre>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message