oz_ko
11-23-2006, 07:28 AM
Hi,
I have a multithreaded application that calls many _different_ remote servers and multiple threads may access the SaoFactoryObject; Since SaoFactoryObjects are an IFactory there can be only one instance defined in the config.
What I've had to do is instantiate a SaoFactoryObject per thread and set the ServiceUrl and ServiceInterface manually and then generate the remote proxy using SaoFactoryObject.GetObject().
So the question is does the SaoFactoryObject have any static state information that would cause it to fail with multiple threads or is all OK? Also - is there a better way to implement this?
Thanks,
Oz
I have a multithreaded application that calls many _different_ remote servers and multiple threads may access the SaoFactoryObject; Since SaoFactoryObjects are an IFactory there can be only one instance defined in the config.
What I've had to do is instantiate a SaoFactoryObject per thread and set the ServiceUrl and ServiceInterface manually and then generate the remote proxy using SaoFactoryObject.GetObject().
So the question is does the SaoFactoryObject have any static state information that would cause it to fail with multiple threads or is all OK? Also - is there a better way to implement this?
Thanks,
Oz