ZeroC

Archived

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

SharedImplicitContext vs PerThreadImplicitContext

voronkov
voronkov
Hi!

Could you describe basic use cases for SharedImplicitContext and PerThreadImplicitContext?
I plan to initialize implicit context at start of the IceGrid service (IceBox.Service.start(...)).

Comments

  • benoit
    benoit Rennes, France
    Hi

    Most application will use shared implicit context. Per thread implicit context can be useful in very specific use-case where some context associated with each thread needs to be transferred through the context (transaction IDs for example).

    See also https://doc.zeroc.com/display/Ice/Implicit+Request+Contexts

    Cheers,
    Benoit.
  • voronkov
    voronkov
    Hi, Benoit!
    Thanks for answer!