[omniORB] ETS Kernel: Naming Service as part of an application?

David Riddoch djr@uk.research.att.com
Tue, 13 Apr 1999 16:29:20 +0100 (GMT)


On Fri, 9 Apr 1999, Helge Penne wrote:

> The PharLap ETS Kernel only supports a single application per system.
> This makes it difficult to use the Naming Service on a network that
> consists only of ETS Kernel based nodes, as the Naming Service would
> seem to require a node of its own.
> 
> Is it easy to integrate the Naming Service code into an application
> (running as a thread in a larger application)?  Has anybody tried this?
> Will it have any requirements with regards to thread priority?  Ideally
> it should run as a low priority thread, to avoid blocking the "real
> application"...

This shouldn't be a problem. Have a look at:
  src/appl/omniNames/omniNames.cc

You'll need to decide how and when to perform the initialisation. I guess
all the stuff that comes after
  boa->impl_is_ready(0,1);
in main can be put into a separate thread and left to it.

It should run fine as a low priority thread provided that the main
application isn't so loaded that the thread gets starved.


David