|
|
|
|||||
|
ServantLocator and dispatching thread
Is there any guarantee that the thread that calls locate on a
ServantLocator is the same that invokes the operation on the target servant and then finished on the ServantLocator again ? Regards, Guido. |
|
||||||
|
Re: Re: ServantLocator and dispatching thread
Quote:
|
|
|||||
|
Re: Re: Re: ServantLocator and dispatching thread
Quote:
This means that if I need something identifying the "interaction" with a Servant (locate, invoke, finish) I must rely on the cookie ? If I understand well, there is also the chance for the thread that dispatched a request to manage another one before the previous gets completed, in the AMD scenario. Well, the origin of all it's always the problem of managing explicit Current vs ThreadLocalStorage approach. A hypotetical TransactionCurrent object should be designed around an InteractionLocalStorage concept rather than a ThreadLocal one. This kind of local storage can be setup on locate() and cleared on finished(), but works only with a ServantLocator. Regards, Guido. |
|
|||||
|
Re: Re: Re: ServantLocator and dispatching thread
Quote:
I have read chapter 15.6.3 and I am a bit confused. Can you clarify which threads are distinct in the following sequence of calls for an incoming request for both synch and async method dispatch: 1. ServantLocator.locate 2. xxx.operation 3. ServantLocator.finish Reading the doc I am not sure if the thread that executes 1. and 2. is always the same, regardless the dispatch style, or not. Regards, Guido |
|
||||||
|
Re: Re: Re: Re: ServantLocator and dispatching thread
Quote:
For AMD, (1) and (2) are done by the dispatcher thread, and (3) is done by the thread that finishes the AMD requests (i.e. calls back on the provided AMD callback object). Cheers, Marc |
|
|||||
|
Re: Re: Re: Re: Re: ServantLocator and dispatching thread
Quote:
ServantLocator.locate and xx.<operation>_async and another thread is activated by the invocation of response.ice_response(..) (or exception as well) issued from within xx.<operation>_async method body ?? Regards, Guido. |
|
||||||
|
Re: Re: Re: Re: Re: Re: ServantLocator and dispatching thread
Quote:
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Abort thread in C# | acbell | Help Center | 1 | 01-03-2006 04:05 PM |
| ServantLocator implementation | DeepDiver | Help Center | 10 | 06-16-2005 09:50 AM |
| ice and ace thread conflict | Clarke Fang | Bug Reports | 2 | 11-10-2004 08:35 AM |
| Ice::Thread and GUI with Qt | catalin | Help Center | 5 | 09-08-2004 10:20 AM |
| ServantLocator::deactivate signature | andreynech | Bug Reports | 1 | 05-23-2004 05:08 PM |