Search in sources :

Example 1 with JMXManagementProvider

use of org.exoplatform.management.jmx.impl.JMXManagementProvider in project kernel by exoplatform.

the class ManageableContainer method setParent.

/**
 * {@inheritDoc}
 */
public void setParent(ExoContainer parent) {
    this.parent = parent;
    // 
    ManagementContextImpl parentCtx = null;
    if (parent != null) {
        parentCtx = (ManagementContextImpl) parent.getManagementContext();
    }
    // 
    if (parentCtx != null) {
        server = parentCtx.container.server;
        managementContext = new ManagementContextImpl(parentCtx, this);
    } else {
        server = findMBeanServer();
        managementContext = new ManagementContextImpl(this);
        addProvider(new JMXManagementProvider(server));
    }
}
Also used : JMXManagementProvider(org.exoplatform.management.jmx.impl.JMXManagementProvider)

Aggregations

JMXManagementProvider (org.exoplatform.management.jmx.impl.JMXManagementProvider)1