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

    EJB - HA singleton MBean communication

    twwwt

      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