[omniORB] prevent multiple threads from shutting down ORB

Eicher Thomas tei@elca.ch
Fri, 3 Mar 2000 15:56:18 +0100


Hi there=20

Is there a way to get the ORB's reference count?

I am developping a Win32 dll which uses omniORB to access a remote data
container. This dll works as a plugin to a piece of third party server
software (not CORBA-wise). It will usually initialize the orb when =
loaded,
and call NP_destroy() when being unloaded.=20

But sometimes, another program of mine also using omniORB will make =
calls to
the third party software, and will live longer than the time the dll is
loaded -> when the dll gets unloaded, it shuts down the process' orb, =
which
cuts also the other open connections over the orb.

So I guess the problem comes from not having access to the main thread =
of
the server, which is not a CORBA application. therefore, I am unable to
properly initialize the orb at startup and shut it down when the =
process
exits.

-> do I have to write a wrapper dll that is never unloaded as long as =
the
server process lives, or is there some other way to see if the orb is =
still
being used by another thread in the same process?

Thanks, Tom
______________________________________________
Tom Eicher                  ELCA Informatik AG
tei@elca.ch                    Steinstrasse 21
+41 (0)1 456 32 47                 8003 Z=FCrich
http://www.elca.ch                 Switzerland