/** * The main function of your component. If no args are provided, then the CORBA object is not * bound to an SCA Domain or NamingService and can be run as a standard Java application. * * @param args * @generated */ public static void main(String[] args) { final Properties orbProps = new Properties(); // begin-user-code // TODO You may add extra startup code here, for example: // orbProps.put("com.sun.CORBA.giop.ORBFragmentSize", Integer.toString(fragSize)); // end-user-code try { Resource.start_component(SigGen.class, args, orbProps); } catch (InvalidObjectReference e) { e.printStackTrace(); } catch (NotFound e) { e.printStackTrace(); } catch (CannotProceed e) { e.printStackTrace(); } catch (InvalidName e) { e.printStackTrace(); } catch (ServantNotActive e) { e.printStackTrace(); } catch (WrongPolicy e) { e.printStackTrace(); } catch (InstantiationException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } // begin-user-code // TODO You may add extra shutdown code here // end-user-code }
public static void print(NotFound nf) { System.err.print(nf.toString()); switch (nf.why.value()) { case NotFoundReason._missing_node: System.err.print(" why = missing_node "); break; case NotFoundReason._not_context: System.err.print(" why = not_context "); break; case NotFoundReason._not_object: System.err.print(" why = not_object "); break; } System.err.print(" rest_of_name = {"); print(nf.rest_of_name); System.err.println("}"); }