View Single Post
  #1 (permalink)  
Old 01-27-2004
aaron aaron is offline
Registered User
 
 
Join Date: Jan 2004
Posts: 2
Contexts and threads

It is my understanding from skimming the documentation that in ICE you have two choices when using contexts:

1) explicit on each call
2) create a new "proxy" with embedded context, which is implicitly passed on each call

I am interested to know how to pass a unique context implicitly, in a multithreaded environment. For example, say I am running in a middle tier environment, like a servlet engine, serving many end users. Each of my threads has to pass on implicit context object identifying the end user (which will be different for each thread).

One (the only?) solution is to create a new proxy with embedded context for each thread. Is this feasible with regard to performance? Is creating these proxies cheap and side-effect free? Is there any other mechanism by which I can associate context by _thread_ and not by _proxy_ (for instance, let's say I want to use the same context for many types of proxies - any that I talk to during a given transaction).

Lastly, is there an IRC channel somewhere that I can talk directly to people using/working on ICE?
Reply With Quote