Default ORB or "bug"?

Stefan Blum <[email protected]> Fri, 1 Apr 2005 10:33:22 +0200
Newsgroups gmane.comp.corba.orbacus
Message-ID <[email protected]>
Hi,

accidently I permuted the normal order of 

a) creating ORB and POA etc.

and 

b) invoking _this() on a servant.

within a server. I was woundering why the application was still running,
but was not able to be configured by command like options. I assume that
something like a default ORB (and RootPOA) must have been implicitly
created without ORB_init(argc,argv,...).

Is this conform to the specification? This behavior seems to me
error-prone. Suppose one wanted to change the OA to reactive by
"-OAreactive" which definitely does not work.

I have appended a patched version of the hello demo. (worked for me:
Linux2.4, gcc-2.95.3, OB-4.2.0). To test:

invoke the server (./server -OAreactive)
invoke the client and type 'h' once
count number of thread of the server (e.g. ps auxwww | grep server)
(normally supposed to be one (cf. normal hello demo))

My suggestion: If the normal order of a) and b) is permuted, _this()
should give at least a warning.

Best regards,
  Stefan

_______________________________________________
OB-Users Mailing List - [email protected]
http://mail.ooc.nf.ca/mailman/listinfo/ob-users
Visit our support FAQ before you send a message.
http://www.orbacus.com/faq/support.html
hello_patched.tgz (application/x-gzip, 10 KB) - not displayed