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?
<!-- Continuously run this service every 5 mins, beginning now -->
<!-- run this service once, beginning now -->
I'm not 100% sure what you are doing.
Yes the ordering will be important.
Put your listener before the scheduling of the
You might want to add tags in case you
need to cycle the mbeans. The ordering is unimportant
Why schedule the listener?
Can't you make a start() method to register the