// register domain status mBean
private void registerDomainStatusMBean() {
try {
ObjectName on = DomainStatusHelper.getDomainStatusObjectName();
server.registerMBean(new DomainStatus(), on);
// set this server state to RUNNING
Object[] params = new Object[2];
params[0] = (Object) ApplicationServer.getServerContext().getInstanceName();
params[1] = (Object) Integer.valueOf(StateManageable.STATE_RUNNING);