POAHelper.narrow(_orb.resolve_initial_references("RootPOA"));
NamingContext nc =
NamingContextHelper.narrow(_orb.resolve_initial_references("NameService"));
EventChannelFactory _factory;
if (args != null && args.length == 1) {
_factory =
EventChannelFactoryHelper.narrow(_orb.string_to_object(args[0]));
} else {
_factory = EventChannelFactoryHelper.narrow(_orb.resolve_initial_references("NotificationService"));
}
org.omg.CORBA.Object cob =
_poa.servant_to_reference(new WhiteBoardFactory(_orb, _poa, _factory));
NameComponent [] name = new NameComponent[1];
name[0] = new NameComponent( "WhiteBoard", "Factory");
// an Namen binden
nc.rebind(name, cob);
_poa.the_POAManager().activate();
System.out.println("Whiteboard online !");
boolean non_exist = false;
try {
non_exist = _factory._non_existent();
} catch (org.omg.CORBA.SystemException e) {
non_exist = true;
}
if (non_exist) {