An MBeanServerService is configured like any other
component in the system. The default is normally placed at the component name:
/manage/DefaultMBeanServer. Below are the
configurations for use with the MX4J open source JMX Server and the Weblogic
Server JMX services respectively.
MX4J Server Configuration
<Configuration
ConfigurationInterface="org.sape.carbon.core.component.ComponentConfiguration">
<FunctionalImplementationClass>
org.sape.carbon.services.jmx.server.mx4j.Mx4jMBeanServerService
</FunctionalImplementationClass>
<FunctionalInterface>
org.sape.carbon.services.jmx.server.MBeanServerService
</FunctionalInterface>
</Configuration>
The basic configuration for Weblogic will connect the MBean server using the default
InitialContext. This will use the principal and credential supplied to Weblogic
upon startup.
Default Weblogic Server Configuration
<Configuration
ConfigurationInterface="org.sape.carbon.core.component.ComponentConfiguration">
<FunctionalImplementationClass>
org.sape.carbon.services.jmx.server.weblogic.WebLogicMBeanServerServiceImpl
</FunctionalImplementationClass>
<FunctionalInterface>
org.sape.carbon.services.jmx.server.MBeanServerService
</FunctionalInterface>
</Configuration>
To provide a different principal and credential to connect to the Weblogic MBean Server
use the component specific configuration. The principal needs to be a member of the
"Administrators" group within Weblogic to have access to the MBean server.
Weblogic Server Configuration
<Configuration
ConfigurationInterface="org.sape.carbon.services.jmx.server.weblogic.WebLogicMBeanServerServiceConfigurationn">
<FunctionalImplementationClass>
org.sape.carbon.services.jmx.server.weblogic.WebLogicMBeanServerServiceImpl
</FunctionalImplementationClass>
<FunctionalInterface>
org.sape.carbon.services.jmx.server.MBeanServerService
</FunctionalInterface>
<Principal>username</Principal>
<Credentials>password</Credentials>
</Configuration>