[omniORB] use of create_object_with_id in omniORB

bitostef@katamail.com bitostef@katamail.com
Wed Mar 26 18:54:00 2003


That piece of code should bind the names read in file clienti.txt to the appropriate object reference. the call to create_object_with_id create a refence for every object in file clienti.txt, the function bindnames bind it to right contex.
Objects are created under clientepoa, are persistent, object id is user defined. Those instructions are executed on server side and should be a kind of bootstrap for objects. the function bindnames is the same used with examples of omniORB, the two other parameters are the names of context  and the name of object to bind.
The questions are(referring to omniORB behaviour):
This kind of use of create_object_with_id always recreate the same reference or may create a different one for every object every time i restart the server?
This use of create_object is wrong, inefficient, inelegant, or simply stupid?
What function should i use to bind names at server start instead?resolve?
Thank you for your answers.
Regards
Stefano