private void doProcess(AddServerRequest request,
AgentId replyTo,
String msgId,
AgentId from) {
try {
ServerConfigHelper helper = new ServerConfigHelper(false);
helper.addServer(request.getServerId(),
request.getHostName(),
request.getDomainName(),
request.getPort(),
request.getServerName());
helper.addService(request.getServerId(),
"org.objectweb.joram.mom.proxies.ConnectionManager",
"root root");
String[] serviceNames = request.getServiceNames();
String[] serviceArgs = request.getServiceArgs();
for (int i = 0; i < serviceNames.length; i++) {
helper.addService(request.getServerId(),
serviceNames[i],
serviceArgs[i]);
}
helper.commit();
distributeReply(replyTo, msgId, new AdminReply(true, "Server added"));
if (from == null) {
broadcastRequest(request, request.getServerId(), replyTo, msgId);
}
} catch (ServerConfigHelper.ServerIdAlreadyUsedException exc) {