1. package com.sun.corba.se.PortableActivationIDL;
  2. /**
  3. * com/sun/corba/se/PortableActivationIDL/_InitialNameServiceStub.java .
  4. * Generated by the IDL-to-Java compiler (portable), version "3.2"
  5. * from ../../../../src/share/classes/com/sun/corba/se/PortableActivationIDL/activation.idl
  6. * Wednesday, September 15, 2004 3:50:44 AM PDT
  7. */
  8. /** Interface used to support binding references in the bootstrap name
  9. * service.
  10. */
  11. public class _InitialNameServiceStub extends org.omg.CORBA.portable.ObjectImpl implements com.sun.corba.se.PortableActivationIDL.InitialNameService
  12. {
  13. /** bind initial name
  14. */
  15. public void bind (String name, org.omg.CORBA.Object obj, boolean isPersistant) throws com.sun.corba.se.PortableActivationIDL.InitialNameServicePackage.NameAlreadyBound
  16. {
  17. org.omg.CORBA.portable.InputStream $in = null;
  18. try {
  19. org.omg.CORBA.portable.OutputStream $out = _request ("bind", true);
  20. $out.write_string (name);
  21. org.omg.CORBA.ObjectHelper.write ($out, obj);
  22. $out.write_boolean (isPersistant);
  23. $in = _invoke ($out);
  24. return;
  25. } catch (org.omg.CORBA.portable.ApplicationException $ex) {
  26. $in = $ex.getInputStream ();
  27. String _id = $ex.getId ();
  28. if (_id.equals ("IDL:PortableActivationIDL/InitialNameService/NameAlreadyBound:1.0"))
  29. throw com.sun.corba.se.PortableActivationIDL.InitialNameServicePackage.NameAlreadyBoundHelper.read ($in);
  30. else
  31. throw new org.omg.CORBA.MARSHAL (_id);
  32. } catch (org.omg.CORBA.portable.RemarshalException $rm) {
  33. bind (name, obj, isPersistant );
  34. } finally {
  35. _releaseReply ($in);
  36. }
  37. } // bind
  38. // Type-specific CORBA::Object operations
  39. private static String[] __ids = {
  40. "IDL:PortableActivationIDL/InitialNameService:1.0"};
  41. public String[] _ids ()
  42. {
  43. return (String[])__ids.clone ();
  44. }
  45. private void readObject (java.io.ObjectInputStream s) throws java.io.IOException
  46. {
  47. String str = s.readUTF ();
  48. String[] args = null;
  49. java.util.Properties props = null;
  50. org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
  51. org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
  52. _set_delegate (delegate);
  53. }
  54. private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException
  55. {
  56. String[] args = null;
  57. java.util.Properties props = null;
  58. String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
  59. s.writeUTF (str);
  60. }
  61. } // class _InitialNameServiceStub