1 package com.sun.corba.se.PortableActivationIDL; 2 3 4 10 11 12 15 public class _InitialNameServiceStub extends org.omg.CORBA.portable.ObjectImpl implements com.sun.corba.se.PortableActivationIDL.InitialNameService 16 { 17 18 19 21 public void bind (String name, org.omg.CORBA.Object obj, boolean isPersistant) throws com.sun.corba.se.PortableActivationIDL.InitialNameServicePackage.NameAlreadyBound 22 { 23 org.omg.CORBA.portable.InputStream $in = null; 24 try { 25 org.omg.CORBA.portable.OutputStream $out = _request ("bind", true); 26 $out.write_string (name); 27 org.omg.CORBA.ObjectHelper.write ($out, obj); 28 $out.write_boolean (isPersistant); 29 $in = _invoke ($out); 30 return; 31 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 32 $in = $ex.getInputStream (); 33 String _id = $ex.getId (); 34 if (_id.equals ("IDL:PortableActivationIDL/InitialNameService/NameAlreadyBound:1.0")) 35 throw com.sun.corba.se.PortableActivationIDL.InitialNameServicePackage.NameAlreadyBoundHelper.read ($in); 36 else 37 throw new org.omg.CORBA.MARSHAL (_id); 38 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 39 bind (name, obj, isPersistant ); 40 } finally { 41 _releaseReply ($in); 42 } 43 } 45 private static String [] __ids = { 47 "IDL:PortableActivationIDL/InitialNameService:1.0"}; 48 49 public String [] _ids () 50 { 51 return (String [])__ids.clone (); 52 } 53 54 private void readObject (java.io.ObjectInputStream s) throws java.io.IOException 55 { 56 String str = s.readUTF (); 57 String [] args = null; 58 java.util.Properties props = null; 59 org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str); 60 org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl ) obj)._get_delegate (); 61 _set_delegate (delegate); 62 } 63 64 private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException 65 { 66 String [] args = null; 67 java.util.Properties props = null; 68 String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this); 69 s.writeUTF (str); 70 } 71 } | Popular Tags |