Archived
This forum has been archived. Please start a new discussion on GitHub.
How to adress a servant with no Id throug a config.client file
Hi
Fairly new on this and I'm sure the answer will already somewhere on this forum , but I can not seem to find it.
When I : adapter->add(serv,communicator->stringToIdentity("Server"));
In a config.client file I can easy adress this with
Client.Proxy=Server:tcp -h XXX.XXX.XXX.XXX -p 10000
What about when I: adapter->addWithUUID(serv);
how should I formulate the arguments in the config-file as
Client.Proxy=:tcp -h XXX.XXX.XXX.XXX -p 10000 does not seem to work
Could someone help
Thanks in advance
Jo
Fairly new on this and I'm sure the answer will already somewhere on this forum , but I can not seem to find it.
When I : adapter->add(serv,communicator->stringToIdentity("Server"));
In a config.client file I can easy adress this with
Client.Proxy=Server:tcp -h XXX.XXX.XXX.XXX -p 10000
What about when I: adapter->addWithUUID(serv);
how should I formulate the arguments in the config-file as
Client.Proxy=:tcp -h XXX.XXX.XXX.XXX -p 10000 does not seem to work
Could someone help
Thanks in advance
Jo
0
Comments
-
Hi,
Welcome to the forum.
As you've seen, using a fixed identity for a servant makes it easy for a client to "bootstrap" a proxy from a string. If you know the identity of the servant and the endpoint(s) of its object adapter, you can construct a string and then convert that string into a proxy object.
A UUID is typically used as an object identity when a) the object is transient, and/or b) having an obscure identity is desired (for example, as an additional security precaution).
You cannot bootstrap a proxy for an object without knowing its identity. Since a UUID is not known until the server is running, constructing a stringified proxy for such an object is difficult.
A common use case is to bootstrap a proxy for a "well known" object that has a fixed identity. Operations on this object may return proxies for other objects whose identities use UUIDs.
Regards,
Mark0