if (logger.isLoggable(BasicLevel.DEBUG))
logger.log(BasicLevel.DEBUG,
"ConnectionManager.init(" + args + ',' + firstTime + ')');
if (! firstTime) return;
AdminTopic adminTopic = new AdminTopic();
adminTopic.deploy();
inFlow = AgentServer.getInteger("ConnectionManager.inFlow", inFlow).intValue();
if (args != null) {
String initialAdminName = null;
String initialAdminPass = null;
StringTokenizer st = new StringTokenizer(args);
if (st.countTokens() >= 1) {
initialAdminName = st.nextToken();
}
if (st.hasMoreTokens()) {
initialAdminPass = st.nextToken();
}
// AF: deprecated, will be deleted.
if (st.hasMoreTokens()) {
try {
inFlow = Integer.parseInt(st.nextToken());
} catch (Exception exc) {
inFlow = -1;
}
}
if (initialAdminName != null) {
UserAgent userAgent = new UserAgent(initialAdminName, AgentId.JoramAdminPxStamp);
userAgent.deploy();
Identity identity = createIdentity(Identity.getRootName(initialAdminName),
initialAdminPass,
Identity.getRootIdentityClass(initialAdminName));
AdminNotification adminNot = new AdminNotification(userAgent.getId(), identity);
Channel.sendTo(adminTopic.getId(), adminNot);
}
try {
MXWrapper.registerMBean(getCurrentInstance(), "Joram#" + AgentServer.getServerId(), MBEAN_NAME);
} catch (Exception e) {