You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by Samisa Abeysinghe <sa...@yahoo.com> on 2004/06/09 13:13:20 UTC

Testing client for thread safety

Hi Roshan,
    To help your effort to make clients thread safe, I created a test case and commited.
    It is in tests/client/threadSafe. I will add more info in to the readme file later. For the
time being, just run the sample with usual syntax

I am not sure if this would work on windows as this sample uses pthreads.
Please do the needful to make it work on windows.

On Linux...
To test against Java sample
./thSafeTest localhost 8080

To test with Axis C++ base service:
Uncomment line 27 of Client.cpp
Comment line 29 of Client.cpp
rebuild
./thSafeTest localhost 80

BTW: My testing so far with this client has revealed that the behaviour is unpredictable.
Sometimes the client succeeds and sometimes it fails. This is with a stubs ojects each for each
thread.

If I use a single stub object in multiple threads, the situation becomes worse: it crashes almost
always.

Hope this helps.

Thanks,
Samisa...


	
		
__________________________________
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/