[omniORB] eg3_impl.cc question

botner@iex.com botner@iex.com
Fri, 1 May 1998 10:07:32 -0500


Hi,

I'm trying to develop a server using omniORB_2.5.0.  I started out using
eg3_impl.cc as a pattern, but I'm having problems when I try to
instantiate & bind more than one object.  I have more or less copied the
following section of code from eg3_impl.cc :

  Echo_i *myobj = new Echo_i();
  myobj->_obj_is_ready(boa);
 
  {
    Echo_var myobjRef = myobj->_this();
    if (!bindObjectToName(orb,myobjRef)) {
      return 1;
    }
  }

Most of the time, when a client tries to access one of my objects methods,
it hangs...  But if I only instantiate & bind one object at at time, it
works.
Can anybody give me a good example on how to do this?

Thanks,


Mark
-----
Mark Botner
IEX Corp.                                   "In a World Without Fences,
Voice: 972.301.4870                          Who Needs Gates?"
PGP5 public key available upon request       --- Scott McNealy