I have an mbean that needs to know when an associated web application is
available. I have the context of the war as an attribute to the mbean. The
mbean is deployed before the war.
Currently, I loop for a certain amount of time, using HttpClient to tell me
when the context is responding. The
I have a question concerning scheduling something to happen in a cluster. The
clustering doc describes how you can configure the schedule providers to only
provide their schedules to one of the schedule managers by using the
HASingleton attribute set to true. This would then only run the
I understand that a new node will be picked to be the cluster's schedule
manager, but what I?m wondering is will this new schedule manager know of the
dead one?s schedule? If the schedule provider only provided its schedules to
the now dead schedule manager, how can the newly picked schedule
After some playing around with clustering, I found out that when the picked
schedule manager gets notified that he?s it, he also gets the schedules
automatically. He then continues scheduling everything as if there was no
problem. Good design!
View the original post :
Is there a javax.management.Notification that can be listened for that fires when a
deployment of an EAR or WAR is finished?
I'm trying to detect when a WAR has been deployed so that I can now, through an mbean,
ask a servlet in the WAR something. The mbean is being deployed inside the same