public QueryManager(OMFContext omfContext)
{
if (omfContext.getManagement() != null)
{
// register MBean in MbeanServer
ManagementServer mgntServer = omfContext.getManagement().getManagementServer();
queryRuntime = new QueryRuntime();
String mbeanName = omfContext.getDomainName() + ":InstanceName=" + omfContext.getInstanceName() +
",Type=" + ClassUtils.getClassNameForClass(queryRuntime.getClass())+
",Name=QueryRuntime";
mgntServer.registerMBean(this.queryRuntime, mbeanName);
}
}