If you are running code in the server (like
EJB or
Servlet or
JSP), you do not need to know anything to get JNDI context - all you have to do is
new InitialContext();
From there, you can look up the MBeanHome in JNDI - see
http://e-docs.bea.com/wls/docs61/jmx/basics.html If you are running code from a client (outside the server), then you will need to look up the MBeanHome from JNDI. Of course you need the provider url to create this InitialContext in the first place....