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