[jacorb-developer] finding out the key used for the call

Nicolae Mihalache nicolae.mihalache at spaceapplications.com
Tue Jan 28 16:33:07 CET 2014


Hello,

I have a servant that is registered to the ORB using multiple "aliases":
 ((org.jacorb.orb.ORB) orb).addObjectKey("yamcs",
securePersistentPoa.servant_to_reference(sm).toString());
 ((org.jacorb.orb.ORB) orb).addObjectKey("CIS",
securePersistentPoa.servant_to_reference(sm).toString());

The names ("CIS" and "yamcs") are used then in corbaloc style URLs by
external clients.

Is there a way to know in the servant code which name has been used at a
particular call?

I would add more aliases and behave differently depending on which one
is used.


Thanks for any hint,
nicolae



More information about the jacorb-developer mailing list