[omniORB] use of poa and servant locator

bitostef@katamail.com bitostef@katamail.com
Thu Mar 13 18:03:02 2003


--_I.MAIL_boundary_qKiPoNlAzXeDcIhGeDsQ1047578537
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 8bit

Hi  Bjorn
I need again your help.
I've written an application based on the classical account example, i'd like to use a child poa to manage different accounts and a servant locator.
The problem is that i have not clear what should happen on client side.
In file part.txt there is what happen on server side:
i create a new poa and register the servant locator under it.
The servant locator returns an object of native type Servant, how do i contact it from client?
the client hasn't a proxy for servant locator, so may call operation on servant  locator, or shall i transform the reference to servant in a ior(or better use the name service)?
The last question is how to connect to a servant a newly created reference with an account factory; the factory returns the reference to the client and put it in the storage but doesn't create a servant, again with name service? 
Thank you for your help
Regards 
Stefano



--_I.MAIL_boundary_qKiPoNlAzXeDcIhGeDsQ1047578537
Content-Type: text/plain
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="part.txt"

Q09SQkE6Ok9SQl92YXIgb3JiID0gQ09SQkE6Ok9SQl9pbml0KGFyZ2MsIGFyZ3YpOw0KDQog
ICAgLy8gT2J0YWluIGEgcmVmZXJlbmNlIHRvIHRoZSByb290IFBPQS4NCiAgICBDT1JCQTo6
T2JqZWN0X3ZhciBvYmogPSBvcmItPnJlc29sdmVfaW5pdGlhbF9yZWZlcmVuY2VzKCJSb290
UE9BIik7DQogICAgUG9ydGFibGVTZXJ2ZXI6OlBPQV92YXIgcm9vdF9wb2EgPSBQb3J0YWJs
ZVNlcnZlcjo6UE9BOjpfbmFycm93KG9iaik7DQogICAgUG9ydGFibGVTZXJ2ZXI6OlBPQU1h
bmFnZXJfdmFyIG1ncj1yb290X3BvYS0+dGhlX1BPQU1hbmFnZXIoKTsNCgkvL21nci0+YWN0
aXZhdGUoKTsNCiAgICAvL3BvbGl0aWNoZSBkZWkgY2xpZW50DQogICAgUG9ydGFibGVTZXJ2
ZXI6OkxpZmVzcGFuUG9saWN5X3ZhciBsaWZlc3Bhbj1yb290X3BvYS0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