Posted By:
Kothapalli_Choudary
Posted On:
Monday, June 4, 2001 01:43 AM
Hi all,
If I wasn't clear earlier, here is my original problem...
I implement a server in C++ and register it with POA. Then I implement
another server in Java and want to register it with the same POA. POA is a
sort of daemon process listening for client requests, right? I think it
should be sort of a RMI registry with a specific local/remote interface to bind
and unbind objects.
But the code samples I see with Orbix2000 typically do this...
1.ORB.init()
2.Resolve initial references to get POA.
3.Connect/activate the server object
with the POA.
4.Start ORB.
My problem is if I do those things once in C++ and once in Java am I starting
two POA daemon processes, which is an unnecessary overhead?
The answers seems to be no. Orbix guide says 'All server processes in a
location domain use the same root POA, which you obtain by calling
resolve_initial_references("POA")'.
Now I've another doubt. Why didn't they make POA also a service like Naming
service, which is started separately? Or some ORBs do so? Or something is
wrong with my understanding?
Thanks and regards,
Choudary.