| |
1-58 Java zu abbildendem IDL, v1.3 September 2003 1 // Java allgemeine Schnittstelle Aardvark verlängert java.rmi.Remote { allgemeines internes echo(int x) wirft java.rmi.RemoteException, Boomerang; } allgemeine Kategorie _ Aardvark_Tie verlängert org.omg.PortableServer.Servant führt javax.rmi.CORBA.Tie ein { privates Ziel Aardvark; leeres setTarget(java.rmi.Remote targ der Öffentlichkeit) { Ziel = targ (Aardvark); } allgemeines java.rmi.Remote-getTarget() { Rückholziel; } invoke(String Methode der Öffentlichkeit org.omg.CORBA.OutputStream _, org.omg.CORBA.InputStream innen, org.omg.CORBA.portable.ResponseHandler-relative Feuchtigkeit) { Versuch { wenn (method.equals("echo")) { Versuch { intern x = in.read_long(); internes Resultat = target.echo(x); org.omg.CORBA_2_3.portable.OutputStream heraus = (org.omg.CORBA_2_3.portable.OutputStream) rh.createReply(); out.write_long(result); Rückkehr heraus; } Verriegelung (Boomerang ex) { Zeichenketteexid = "IDL:BoomerangEx/1.0"; org.omg.CORBA_2_3.portable.OutputStream heraus = (org.omg.CORBA_2_3.portable.OutputStream) rh.createExceptionReply(); out.write_string(exid); out.write_value(ex); Rückkehr heraus; } } sonst { Throw neues org.omg.CORBA.BAD_OPERATION(); } } Verriegelung (org.omg.CORBA.SystemException ex) { Throw ex; } Verriegelung (Throwable ex) { Throw neu org.omg.CORBA.portable.UnknownException(ex); } } |  |
|
| |
|
|