4 Replies Latest reply on Oct 16, 2002 9:51 AM by thinh

    tutorial for timer mbean

    moschen

      hi,
      does anybody know, where i can get more information about the timer mbean? i would like to know, what kind of functions it provides and how i exactly schedule jobs.
      i have allready read the timer explanation in the jboss maual, but it did not tell much about the provided methods and the use of the parameters. where can i get more information about it?
      is there something like an api doc for this mbean?

      best regards,
      lordi

        • 1. Re: tutorial for timer mbean
          minamoto

          Hi,

          Timer MBean is a standard service provided by JMX.
          So you can get the information from the JMX api doc.

          http://jcp.org/aboutJava/communityprocess/final/jsr003/index.html

          Miki

          • 2. Re: tutorial for timer mbean
            geraldthewes

            Timer does not seem to start. I followed the online
            doc by deploying a timer-service.xml file

            But I don't see the timer service listed in the list
            of mbeans and the message I have is

            19:47:45,430 INFO [MainDeployer] Deployment of package: file:/u2/src/jboss/jboss-3.0.0RC2/server/default/deploy/jboss-timer.xml is waiting for an appropriate deployer.

            DO I need to add a class path or something? The doc says
            it's builtin.

            • 3. Re: tutorial for timer mbean
              geraldthewes

              I figured it out. Seems like it's critical that the
              xml mbean configuration file end in -service.xml.

              So jboss-timer.xml did not work, but
              jboss-timer-service.xml did!

              23:02:32,524 INFO [MainDeployer] Starting deployment of package: file:/u2/src/jboss/jboss-3.0.0RC2/server/default/deploy/jboss-timer-service.xml
              23:02:32,681 INFO [MainDeployer] Successfully completed deployment of package: file:/u2/src/jboss/jboss-3.0.0RC2/server/default/deploy/jboss-timer-service.xml

              • 4. Re: tutorial for timer mbean
                thinh

                does anybody has the complet source code for scheduler example ?

                Thank you