I'm trying to start jetty so that jmx and the rmi registry are started on a
loopback address (specifically, 127.0.0.4). The code seem to specifically
disallow this.
>From ConnectorService:
if(hostAddress.isLoopbackAddress())
{
if (rmiPort == 0)
{
ServerSocket socket = new ServerSocket(0);
rmiPort = socket.getLocalPort();
socket.close();
}
else
{
try
{
// Check if a local registry is already running
LocateRegistry.getRegistry(rmiPort).list();
return null;
}
catch (Exception ex)
{
LOG.ignore(ex);
}
}
_registry = LocateRegistry.createRegistry(rmiPort);
Thread.sleep(1000);
rmiHost = InetAddress.getLocalHost().getCanonicalHostName();
return rmiHost + ':' + Integer.toString(rmiPort);
}
Does anyone know why this is the case or a way I can work around it?
*Steven Katz | *Senior Director, Architecture
*Aol*Platforms*.*
*office**:*
* 617.874.5448 <6178745448>*
*email: [email protected] <[email protected]>*
_______________________________________________
jetty-users mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from
this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users