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