User: schaefera
  Date: 01/06/18 14:07:42

  Modified:    src/docs howtotimer.xml
  Log:
  Some small fixes like the lookup of the MBeanServer.
  
  Revision  Changes    Path
  1.6       +9 -5      manual/src/docs/howtotimer.xml
  
  Index: howtotimer.xml
  ===================================================================
  RCS file: /cvsroot/jboss/manual/src/docs/howtotimer.xml,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- howtotimer.xml    2001/05/31 05:47:33     1.5
  +++ howtotimer.xml    2001/06/18 21:07:42     1.6
  @@ -27,12 +27,16 @@
                  Main.java class). This mbean tag looks like this:
                  <programlisting><![CDATA[
     <mbean code="javax.management.timer.Timer" name="DefaultDomain:service=timer"/>
  -               ]]></programlisting> 
  +               ]]></programlisting>
  +               Keep in mind that there will be no notification about the startup. 
To check use the JMX
  +               HTML-Adaptor on port 8082 by default. The timer is loaded from the 
jmxri.jar file in /lib
  +               directory.
               </para> 
            </listitem>       
            <listitem>   
               <para>
  -               If you are not using JBoss then to the following: 
  +               If you are not using JBoss then to the following (which means that 
you want to use a timer
  +               outside of JBoss (maybe on the client or administration side): 
                  <orderedlist>              
                     <listitem>
                        <para>
  @@ -75,11 +79,11 @@
                  This is quite simple if your are in a MBean registered to the same 
JMX server because
                  then you get it when you overwrite preRegister() method. 
                  When you are in the same JVM as the JMX server (in JBoss is any 
instance running
  -               within JBoss like EJBs or other classes). Then you can obtain the 
MBeanServer throug:
  +               within JBoss like EJBs or other classes). Then you can obtain the 
MBeanServer through:
               </para>                      
               <programlisting>
      MBeanServer lServer =
  -      MBeanServerFactory.createMBeanServer();
  +      (MBeanServer) MBeanServerFactory.findMBeanServer( null ).get( 0 );
               </programlisting>                
               <para>
                  For the rest it is a little bit more complicated. In a Java client 
you can use JBoss RMI
  @@ -183,7 +187,7 @@
            "I call you with this timer once",
            // No user object
            null,
  -         // I one minute from now
  +         // In one minute from now
            lNext,
            Timer.ONE_MINUTE,
            10
  
  
  

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

Reply via email to