By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,795 Members | 1,216 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,795 IT Pros & Developers. It's quick & easy.

Single Threaded Web Service

P: n/a
ben
I am needing a web service to be single threaded. Is this possible? Any
ideas would be helpful
Nov 23 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
=?Utf-8?B?YmVu?= <be*@discussions.microsoft.com> wrote in
news:85**********************************@microsof t.com:
I am needing a web service to be single threaded. Is this possible?
Any ideas would be helpful


Why do you need it to be single threaded? I suspect that your need is atually other and that if its a
true need, you are seeking the wrong solution.

--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Blog: http://blogs.atozed.com/kudzu
Nov 23 '05 #2

P: n/a
=?Utf-8?B?YmVu?= <be*@discussions.microsoft.com> wrote in
news:85**********************************@microsof t.com:
I am needing a web service to be single threaded. Is this possible?
Any ideas would be helpful


Why do you need it to be single threaded? I suspect that your need is atually other and that if its a
true need, you are seeking the wrong solution.

--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Blog: http://blogs.atozed.com/kudzu
Nov 23 '05 #3

P: n/a
i am not very understand your situation, but may be .net remoting can help you
--
Can You?You Can.
"ben" wrote:
I am needing a web service to be single threaded. Is this possible? Any
ideas would be helpful

Nov 23 '05 #4

P: n/a
i am not very understand your situation, but may be .net remoting can help you
--
Can You?You Can.
"ben" wrote:
I am needing a web service to be single threaded. Is this possible? Any
ideas would be helpful

Nov 23 '05 #5

P: n/a
Ben,

Web services are inherently defined by a multithreaded apartment model so I
don’t think you can write single threaded web service. But there are
alternatives:

1. You can invoke single threaded component in you web service using thread.

Note that you can not directly invoke single threaded component in web
service. If threading model of web service doesn’t match with COM component
then you will receive an error when you try to instantiate the object. The
solution is to call the COM object from a thread that has the same threading
model as the COM object itself. In the new threads that you create, you have
the option of controlling the threading model so you can match it to the COM
component.

2. If you need single threaded web service to avoid any collision at
database side then think about using modifying or creating new stored
procedure which will handle transactions properly.

3. Remoting

Regards,
Ajit

"ben" wrote:
I am needing a web service to be single threaded. Is this possible? Any
ideas would be helpful

Nov 23 '05 #6

P: n/a
Ben,

Web services are inherently defined by a multithreaded apartment model so I
don’t think you can write single threaded web service. But there are
alternatives:

1. You can invoke single threaded component in you web service using thread.

Note that you can not directly invoke single threaded component in web
service. If threading model of web service doesn’t match with COM component
then you will receive an error when you try to instantiate the object. The
solution is to call the COM object from a thread that has the same threading
model as the COM object itself. In the new threads that you create, you have
the option of controlling the threading model so you can match it to the COM
component.

2. If you need single threaded web service to avoid any collision at
database side then think about using modifying or creating new stored
procedure which will handle transactions properly.

3. Remoting

Regards,
Ajit

"ben" wrote:
I am needing a web service to be single threaded. Is this possible? Any
ideas would be helpful

Nov 23 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.