_managerAddress = "manager@resin.caucho";
if (_bamClient != null)
return;
} catch (RemoteConnectionFailedException e) {
exn = new RemoteConnectionFailedException(L.l("Connection to '{0}:{1}' failed for remote admin. Check the server and make sure <resin:RemoteAdminService> is enabled in the resin.xml.\n {1}",
host, serverPort,
e.getMessage()),
e);
if (httpPort == 0)
throw exn;
}
/*
if (_bamClient == null) {
throw new RemoteConnectionFailedException(L.l("Connection to '{0}:{1}' failed for remote admin. Check the server and make sure <resin:RemoteAdminService> is enabled in the resin.xml.\n",
host, serverPort));
}
*/
String url = "http://" + host + ":" + httpPort + "/hmtp";
_url = url;
HmtpClient client = new HmtpClient(url);
try {
client.setVirtualHost("admin.resin");
client.connect(userName, password);
_bamClient = client;
_managerAddress = "manager@resin.caucho";
} catch (RemoteConnectionFailedException e) {
throw new RemoteConnectionFailedException(L.l("Connection to '{0}' failed for remote admin. Check the server and make sure <resin:RemoteAdminService> is enabled in the resin.xml.\n {1}",
url, e.getMessage()),
e);
}
}