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

Multiple Ice::CommunicatorPtrs in an application?

I have an application that will interface to multiple other applications via Ice.

This application implements multiple clients and a server.

Is it wise to use multilpe Ice::CommunicatorPtrs ( generated from Ice::Initialize ) throughout the application for the various interfaces, or is it smarter to just have one instance of this class and use it throughout my application to generate adapters and interfaces?



  • marc
    marc Florida
    In virtually all cases, a single Communicator is all you need. There are very few exceptions, such as if you want to load a completely independent Ice application as a DLL at runtime, with separate configuration settings.