Archived

This forum has been archived. Please start a new discussion on GitHub.

Ice connection

Hi,
there is a moment that I don't understand clearly.

I have one main interface declared (e.g. named MainI) and corresponding ObjectAdapter on the server side. When I establish connection between Ice Client and Ice Server server creates an object or an instance of the interface MainI.
What will happen if I try to establish another simultaneous connection from another client? Will server create another instance or connection will be established with the existing one?

Comments

  • benoit
    benoit Rennes, France
    Hi,

    The Ice server runtime does not and will not create a new instance of the MainI servant to dispatch requests from one or multiple clients. It always uses the servant instance that you have registered with the Ice object adapter.

    Cheers,
    Benoit.