Archived
This forum has been archived. Please start a new discussion on GitHub.
Using ICE without an endpoint
in Help Center
Hi,
In one of my projects, I've used ICE to make it easy to split the application into a server/client model in the future. At the moment however, It's all in the same application, and I don't need any socket endpoint. How is the preferred way to disable this?
I have tried to use createObjectAdapter() to create an adapter with no endpoints, and use the same communicator to create the proxies later on. However, when I start the application with no endpoints, it bombs out with the error below as soon as it tries to access a proxy:
.\Reference.cpp:1124: Ice::NoEndpointException:
no suitable endpoint available for proxy `whid -t' {MainFrame::ReloadNodes()}
In one of my projects, I've used ICE to make it easy to split the application into a server/client model in the future. At the moment however, It's all in the same application, and I don't need any socket endpoint. How is the preferred way to disable this?
I have tried to use createObjectAdapter() to create an adapter with no endpoints, and use the same communicator to create the proxies later on. However, when I start the application with no endpoints, it bombs out with the error below as soon as it tries to access a proxy:
.\Reference.cpp:1124: Ice::NoEndpointException:
no suitable endpoint available for proxy `whid -t' {MainFrame::ReloadNodes()}
0
Comments
-
Hi,
You should configure your object adapter with an adapter ID using the <adapter name>.AdapterId property. This will allow the collocation optimization check to work even if there are no endpoints.
Cheers,
Benoit.0