// start "raw" remoting, don't use JBM configuration
String addr = ServiceContainer.getCurrentAddress();
int port = PortUtil.findFreePort(addr);
String serviceLocatorString = "socket://" + addr + ":" + port ;
ServiceAttributeOverrides sao = new ServiceAttributeOverrides();
sao.put(ServiceContainer.REMOTING_OBJECT_NAME, "LocatorURI", serviceLocatorString);
ServerManagement.start(0, "remoting", sao, true, false);
String s = (String)ServerManagement.
getAttribute(ServiceContainer.REMOTING_OBJECT_NAME, "InvokerLocator");