[Mc4j-user] Finding My MBean
Brought to you by:
ghinkl
From: Richi P. <ri...@ri...> - 2010-01-29 06:58:04
|
Hi, I've created an MBean in a Weblogic 8.1 web application with the following code snippet: try { Environment env = new Environment(); env.setProviderUrl("t3://localhost:" + port); env.setSecurityPrincipal("weblogic"); // username env.setSecurityCredentials("weblogic"); // password Context myCtx = env.getInitialContext(); MBeanHome mbeanHome = (MBeanHome)myCtx.lookup("weblogic.management.home.localhome"); server = mbeanHome.getMBeanServer(); objNameStr = mbeanHome.getDomainName()+ ":Name=MyBean,Type=MyBean"; ObjectName objName = new ObjectName(objNameStr); // Register MBean so MBean can be accessed by remote managers server.registerMBean(this, objName); } catch (Exception ex) { System.err.println("Cannot get MBeanServer: "+ex); } My question is: how does one find this MBean within WebLogic using MC4J console. I've successfully logged into the server but can't seem to find the MBean in the huge true that I see. I don't see errors in the logs, so I assume the MBean was properly registered. -- Richi |