Home Help Center

Is this an error?

zhangzq71zhangzq71 Member ZhangZQOrganization: WanYiProject: Test ✭✭
I created a client and a server,
1. run the server
2. run the client
the client do
1. create a proxy to an object in server
2. invoke a method that would change some state of that object
3. shutdown the server
4. restart the server again
5. invoke the method through the previously created proxy.

the invoke is successfull but the state goes back to the initial state.
My question is
1. why after restart the server, the existing proxy to an object is still useful?
2. how to keep the state after restart the server? I think Freeze is not the solution.


  • marcmarc FloridaAdministrators, ZeroC Staff Marc LaukienOrganization: ZeroC, Inc.Project: The Internet Communications Engine ZeroC Staff
    Just because a server is shut down, it does not mean that the Ice objects it implements are destroyed. It is common for a server to host persistent Ice objects, restore the state upon startup, and safe it on shutdown. There are many methods on how to do this, each having its own performance/reliability tradeoffs. One such method is to use the Freeze evictor.
Sign In or Register to comment.