1 22 package org.jboss.test.iiop.interfaces; 23 24 25 31 32 public class _IdlInterfaceStub extends org.omg.CORBA.portable.ObjectImpl implements org.jboss.test.iiop.interfaces.IdlInterface 33 { 34 35 public String echo (String s) 36 { 37 org.omg.CORBA.portable.InputStream $in = null; 38 try { 39 org.omg.CORBA.portable.OutputStream $out = _request ("echo", true); 40 $out.write_string (s); 41 $in = _invoke ($out); 42 String $result = $in.read_string (); 43 return $result; 44 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 45 $in = $ex.getInputStream (); 46 String _id = $ex.getId (); 47 throw new org.omg.CORBA.MARSHAL (_id); 48 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 49 return echo (s ); 50 } finally { 51 _releaseReply ($in); 52 } 53 } 55 private static String [] __ids = { 57 "IDL:org/jboss/test/iiop/interfaces/IdlInterface:1.0"}; 58 59 public String [] _ids () 60 { 61 return (String [])__ids.clone (); 62 } 63 64 private void readObject (java.io.ObjectInputStream s) throws java.io.IOException 65 { 66 String str = s.readUTF (); 67 String [] args = null; 68 java.util.Properties props = null; 69 org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str); 70 org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl ) obj)._get_delegate (); 71 _set_delegate (delegate); 72 } 73 74 private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException 75 { 76 String [] args = null; 77 java.util.Properties props = null; 78 String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this); 79 s.writeUTF (str); 80 } 81 } | Popular Tags |