public void start() {
try {
if(log.isInfoEnabled()) {
log.info("starting JMXConnector on host " + hostname + ":" + rmiRegistryPort);
}
DefaultClientSocketFactory clientSocketFactory = new DefaultClientSocketFactory();
clientSocketFactory.setBindAddress(hostname);
DefaultSocketFactory serverSocketFactory = new DefaultSocketFactory();
serverSocketFactory.setBindAddress(hostname);
registry = LocateRegistry.createRegistry(rmiRegistryPort, clientSocketFactory, serverSocketFactory);
HashMap env = new HashMap();
if( securityDomain != null)