nameNode = new NameComponent[] { new NameComponent(clusterId, clusterKind) };
relativeContext.rebind(nameNode, this.authRef);
}
else {
// delegate error handling
throw new XmlBlasterException(glob, ErrorCode.RESOURCE_UNAVAILABLE, ME, "Can't bind to naming service");
}
log.info("Published AuthServer IOR to NameService ORBInitRef='" + System.getProperty("ORBInitRef") +
"' with name '" + OrbInstanceFactory.getString(nameXmlBlaster) + "/" + OrbInstanceFactory.getString(nameNode) + "'");
}
catch (XmlBlasterException e) {
log.warning(e.getMessage());
namingContextExt = null;
if (glob.getBootstrapAddress().getBootstrapPort() > 0) {
log.info("You don't need the naming service, i'll switch to builtin http IOR download");
}
else if (iorFile != null) {
log.info("You don't need the naming service, i'll switch to plugin/ior/iorFile = " + iorFile);
}
else {
usage();
log.severe("You switched off the internal http server and you didn't specify a file name for IOR dump nor a Naming Service was found!");
}
} catch (org.omg.CORBA.COMM_FAILURE e) {
namingContextExt = null;
if (glob.getBootstrapAddress().getBootstrapPort() > 0) {
log.info("Can't publish AuthServer to naming service, is your naming service really running?\n" +
e.toString() +
"\nYou don't need the naming service, i'll switch to builtin http IOR download");
}
else if (iorFile != null) {
log.info("Can't publish AuthServer to naming service, is your naming service really running?\n" +
e.toString() +
"\nYou don't need the naming service, i'll switch to plugin/ior/iorFile = " + iorFile);
}
else {
usage();
log.severe("Can't publish AuthServer to naming service, is your naming service really running?\n" +
e.toString() +
"\nYou switched off the internal http server and you didn't specify a file name for IOR dump!");
}
}
} // if useNameService
}
catch (org.omg.CORBA.COMM_FAILURE e) {
throw new XmlBlasterException(glob, ErrorCode.RESOURCE_CONFIGURATION, ME, "Could not initialize CORBA, do you use the SUN-JDK delivered ORB instead of JacORB or ORBaccus? Try 'jaco org.xmlBlaster.Main' and read instructions in xmlBlaster/bin/jaco", e);
}
catch (Throwable e) {
e.printStackTrace();
throw new XmlBlasterException(glob, ErrorCode.RESOURCE_CONFIGURATION, ME, "Could not initialize CORBA", e);
}
// orbacus needs this
if (orb.work_pending()) orb.perform_work();
this.isActive = true;
}