Threads in remoting

  • Thread starter Thread starter John Wood
  • Start date Start date
J

John Wood

I have a thread safe singleton SAO. When clients invoke a method on the SAO,
I want the invocation to run in a new thread in the threadpool, not the
thread in which the object was created. Basically each client that has a
reference to the SAO should run in a new thread dedicated to that client.

Is there any way to do this (ie. remoting configuration) without doing it
manually?

Thanks.
 
Server Activated Object... not Service Oriented Architecture!
Sorry, should have clarified.
 
I think we need an acronym for stating that there are too many acronyms like
TMA or something :-)

Sorry I dont have a deffinate answer to your question though :-) Have you
tried using your singleton to instantiate a new Helper class obejct for each
process and then just turning it loose to do its own work? For example, you
could try a static method on the singleton like this

static HelperObj GetHelpObject()
{
return new HelperObject();
}

then maybe the server will create a new instance for each call to that ??



JIM
 
TMFA might be more appropriate!

Yeah, I could do it manually. Just hoping there was some remoting option
where the framework would do it for you... oh well. Thanks anyway.
 
Back
Top