473,396 Members | 1,853 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Single Threaded Web Service

ben
I am needing a web service to be single threaded. Is this possible? Any
ideas would be helpful
Nov 23 '05 #1
6 4939
=?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
=?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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Robb Gilmore | last post by:
We inherited an ASP.NET application which is not thread-safe. Many copies of this application are in the field and customers are having problems, which we believe is due to the thread safety...
3
by: Martin Ink | last post by:
I have a program linked to an .exe and this program is started from an other program. I would like to control the execution of the program so that the program only runs 'single threaded'. I don't...
5
by: Ranju. V | last post by:
Hi, I use a lot asynchronous XMLHTTP from JavaScript. Are the callbacks that we register with XMLHTTP guaranteed to execute single-threaded? For instance, consider the following code snippet. ...
1
by: benmorganpowell | last post by:
I have a small windows service which connects to a POP3 server at defined intervals, scans the available messages, extracts the required information and inserts the data into a SQL database. I am...
2
by: Rob | last post by:
Hi. I'm having difficulty calling a 3rd party COM object that must be called in the apartment (single) threaded model. As far as I know, there are 3 ways todo this: 1 - use "aspcompat=true"...
0
by: BergRD | last post by:
Salutations! New to the forums but have gotten many an idea from lurking over the past few months but alas it's time to begin positing; posting to a problem I cannot seem to resolve. This is a...
9
by: Stu | last post by:
Hi, I have a web service that does database access and calculations However it keeps falling over becuase its not multi threaded and each call to it is not in its own space!! I dont want to use...
0
by: ben | last post by:
I am needing a web service to be single threaded. Is this possible? Any ideas would be helpful
11
by: Chris Thomasson | last post by:
Here is the code: http://pastebin.com/m4a405e67 One advantage to using a region allocator is that you can usually skip most calls to free. Instead you can merge multiple free calls into a...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.