On weblogic 8.1 and spring 1.2.5, I am attempting to use WebLogicMBeanServerFactoryBean to reference the weblogic MBeanServer within my managed server. The issue is that the WeblogicMBeanServerFactoryBean is demanding that i supply it with serverUrl, username, password, and servername. Since I would like this configuration to work on any node in my cluster and on any environment, I would rather not supply this information. I know programatically I can gain reference to this MBeanServer without using environment specific server information. For example:
I can implement my own custom weblogic mbean server factory bean, but I was wondering if this is possible with the jmx mbean factory beans available out of box.
mBeanHome = (MBeanHome) new InitialContext().lookup(MBeanHome.LOCAL_JNDI_NAME); MBeanServer server = mBeanHome.getMBeanServer();