Hi Dilip
The thing is it works as a com+ component
All ive done is call the same com+ call eg calcMyData(customer)
but exposed it as a web service and have made the whole thing a webservice
Its definatley something to do with appartments or variables
becuase if i kick the web service off on multiple threads from a test
program I get the same error
> Hello Stu,
> Every request is in its own thread/context, so making batch calls should
[quoted text clipped - 47 lines]
> >>> TIA
> >>> Stu
Stu - 03 Feb 2005 15:57 GMT
Hi Dilip,
Could be something to do with that the
calculator is using a class which has shared properties on it ?
> Hi Dilip
> The thing is it works as a com+ component
[quoted text clipped - 57 lines]
> > >>> TIA
> > >>> Stu
Dilip Krishnan - 03 Feb 2005 23:03 GMT
Hello Stu,
You're absolutely right. there is a problem in the com+ component and
the way its being used by ASP.net.
HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
> Hi Dilip
> The thing is it works as a com+ component
[quoted text clipped - 57 lines]
>>>>> TIA
>>>>> Stu
Stu - 04 Feb 2005 09:05 GMT
Hi Dilip
So if I remove the static class it will fix the problem
Its not a com+ component any more its a pure web service
> Hello Stu,
> You're absolutely right. there is a problem in the com+ component and
[quoted text clipped - 68 lines]
> >>>>> TIA
> >>>>> Stu
Dilip Krishnan - 04 Feb 2005 13:26 GMT
Hello Stu,
Oh sure that would certainly cause the problem! Any static class needs
to be thread safe
HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
> Hi Dilip
> So if I remove the static class it will fix the problem
[quoted text clipped - 71 lines]
>>>>>>> TIA
>>>>>>> Stu
Stu - 14 Feb 2005 20:31 GMT
Hi,
Ive removed the static problem now took me ages.
So heres a summary
i have a dot net webservice in vb dot net say
objcalc.calculate(customerId)
I know that web services are multi threaded but how do I ensure
my webservice can handle mutliple synchronous requests the web service
doesnt not need to be asynchronous.
Do I need to synchlock my parameter passed into the web service ?
What about thread pooling etc ?
Most samples seem to show how you kick off which I understand
But not in the webservice itself so Any code for this would be appreciated
> Hello Stu,
> Oh sure that would certainly cause the problem! Any static class needs
[quoted text clipped - 82 lines]
> >>>>>>> TIA
> >>>>>>> Stu