title: WebLogic clustered singleton service
body: <p>I am currently trying to implement a singleton service over <strong>WebLogic</strong>, using a WebLogic cluster.
  I've read some literature about clustered singleton services on WebLogic, and I know I have to implement <a href="http://otndnld.oracle.co.jp/document/products/wls/docs100/javadocs/weblogic/cluster/singleton/SingletonService.html" rel="nofollow noreferrer">weblogic.cluster.singleton.SingletonService</a> interface on the object I want to clusterize as a singleton.</p>
  
  <pre><code>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");
      }
  
      (...)
  
  }
  </code></pre>
  
  <p>I'm able to deploy this as an application on WebLogic, although it doesn't seem to invoke <code>activate()</code> and <code>deactivate()</code> 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.</p>
  
  <p>Does anybody have experience with this? Can anyone provide a working example and explain to me what else I have to do?</p>