Archived
This forum has been archived. Please start a new discussion on GitHub.
problem with IceGrid example
in Help Center
In the manual (page 1056) they show indirect proxies like
In my descripor file, I define a server id and an adapter name and try to
use a proxy like
It fails with a "no object adapter with id servername.adaptername" error.
But when I use a proxy like
Is the manual correct about the syntax
I can't find any mention of this syntax anywhere else in the manual. Is there some trick to making it work?
I'm running version 3.1.0.
factory@EncoderServer1.EncoderAdapter
In my descripor file, I define a server id and an adapter name and try to
use a proxy like
.objectname@servername.adaptername
It fails with a "no object adapter with id servername.adaptername" error.
But when I use a proxy like
, it succeeds.objectname@adaptername
Is the manual correct about the syntax
?object@servername.adaptername
I can't find any mention of this syntax anywhere else in the manual. Is there some trick to making it work?
I'm running version 3.1.0.
0
Comments
-
Hi,
The manual is correct, an indirect proxy has the following syntax:identity @ adapterId. The adapter id is different from the adapter name. Adapter ids are configured with the "id" attribute of the adapter XML element in the descriptor and if this "id" attribute isn't specified explicitly the default value is "<server id>.<adapter name>".
See the documention for the adapter element in the Ice manual (section 36.14.1) for more information.
I don't know why it doesn't work for you, could you post the XML descriptor of your server?
Cheers,
Benoit.0 -
Btw, could you please set your signature? See this [thread=1697]thread[/thread] for more information on how to set it.
Thanks,
Benoit.0 -
OK, I see what the problem was. I had set both the name and the id - both to the same value. When I set the id, that overrode the default id. When I got rid of the explicit setting of the id, it all worked.
Thanks for the help.0