// JMSManagementRegistration implementation ----------------------
public synchronized JMSServerControl registerJMSServer(final JMSServerManager server) throws Exception
{
ObjectName objectName = managementService.getObjectNameBuilder().getJMSServerObjectName();
JMSServerControlImpl control = new JMSServerControlImpl(server);
managementService.registerInJMX(objectName, control);
managementService.registerInRegistry(ResourceNames.JMS_SERVER, control);
return control;
}