Problem when invoking name service from Visibroker

Yvan Peter Yvan.Peter@cnet.francetelecom.fr
Wed, 20 Aug 1997 16:05:23 +0200


Hello,

  I am trying to use omniORB's name service from Visibroker 2.5 C++ and
still have some problems.

  I have recompiled omniBroker with #pragma prefix "omg.org" in IDL.
  I used this IDL to generate the stub for Visibroker and I can now
  successfully invoke the name service.

  However, I have a problems when an exception is raised by the
  name service. The exception is not recognized by the client.

  for example, the following code would run fine the first time
  and return with a SystemException of minor code 0 if I run it
  a second time:

  ...
  try {
      testContext = naming->bind_new_context(contextName);
  }
  catch ( CosNaming::NamingContext::AlreadyBound& ex) {
    fprintf(stderr, "user\n");
  }
  catch ( CORBA::SystemException& ex) {
    fprintf(stderr, "system = %d\n", ex.minor());
  }

  Any help would be greatly appreciated.

  Regards,

     Yvan

-- 
Yvan PETER   France Telecom/CNET
42, rue des Coutures - BP6243 F-14066 CAEN Cedex
phone (+33) 2.31.75.91.39 / fax (+33) 2.31.73.56.26
email: Yvan.Peter@cnet.francetelecom.fr