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