0 Replies Latest reply on Jul 21, 2004 11:00 AM by Thorsten Moeller

    EJB - HA singleton MBean communication

    Thorsten Moeller Newbie

      Hello!

      What is the recommed way to lookup an HA singleton MBean from (clustered) EJB? Should I use the RMIAdaptor like this:


      Context context = new InitialContext();
      Object o = context.lookup("jmx/invoker/RMIAdaptor");
      RemoteMBeanServer mbeanServer = new RMIConnectorImpl((RMIAdaptor) o);
      mbeanServer.invoke(...)
      



      I just want to make sure that I get the reference to the singleton MBean from any node of the cluster regardless if the node is master or not.

      Thanks,
      Thorsten