1 Reply Latest reply on Aug 17, 2002 1:29 PM by Adrian Brock

    multiple scheduled mbeans not always working

    roger Newbie

      I've got multiple mbeans running under the scheduler (Jboss 3.0), but it seems that sometimes the second scheduled service doesn't always run sucessfully. Sometimes this thread will complete, and other times it will be stuck in an 'active' state. Is there anything obviously wrong with my configuration?

      For reference, the second scheduled service calls a method to register that mbean as a notification listener of the first mbean. Could the second bean be attempting to add itself as a notification listener before the first mbean is up and running? Or asking another way, does the scheduler sequentially start the mbeans? Is there a way for me to insure that the first mbean is up before the scheduler runs the second service?

      Thanks
      -Roger


      true


      <!-- Continuously run this service every 5 mins, beginning now -->

      true
      :name=myApp
      doOperation()
      NOW
      300000
      -1




      myApp


      <!-- run this service once, beginning now -->

      true
      :name=testListener
      init()
      NOW
      1
      1

        • 1. Re: multiple scheduled mbeans not always working
          Adrian Brock Master

          I'm not 100% sure what you are doing.

          Yes the ordering will be important.

          Put your listener before the scheduling of the
          broadcaster.

          You might want to add tags in case you
          need to cycle the mbeans. The ordering is unimportant
          then.

          Why schedule the listener?
          Can't you make a start() method to register the
          NotificationListener.

          Regards,
          Adrian