I am currently trying to implement a singleton service over WebLogic, using a WebLogic cluster. I've read some literature about clustered singleton services on WebLogic, and I know I have to implement weblogic.cluster.singleton.SingletonService interface on the object I want to clusterize as a singleton.
import weblogic.cluster.singleton.SingletonService;
public class SingletonOrchestrator implements SingletonService {
public void activate() {
System.out.println(":: activate CALLED FOR SingletonOrchestrator");
}
public void deactivate() {
System.out.println(":: deactivate CALLED FOR SingletonOrchestrator");
}
(...)
}
I'm able to deploy this as an application on WebLogic, although it doesn't seem to invoke activate()
and deactivate()
methods after deployment. I don't know what else I have to do in order to have this working as a singleton service in my WebLogic cluster.
Does anybody have experience with this? Can anyone provide a working example and explain to me what else I have to do?
The installation steps are detailed in Automatic Migration of User-Defined Singleton Services:
Deploy it and Configuring the Migration Behavior
Also have a look at Configure a Singleton Service in the Administration Console Online Help.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With