Threads in remoting

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.
 
J

John Wood

Server Activated Object... not Service Oriented Architecture!
Sorry, should have clarified.
 
J

james

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
 
J

John Wood

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top