Re: Limit number of COM+ sessions
- From: "Nicholas Paldino [.NET/C# MVP]" <mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 20 Feb 2008 11:54:25 -0500
You can't do this on the app level, but you can do it on the component
level. You would configure your component to use object pooling, setting
the maximum size of the pool to 5. Then, when the 6th request comes in, it
will block until an object is ready to be used from the pool.
Of course, you have to be careful, depending on what other services that
you are applying to your components, object pooling might not make sense.
--
- Nicholas Paldino [.NET/C# MVP]
- mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx
"Remote_User" <amitmv@xxxxxxxxx> wrote in message
news:a5abe4df-7ae6-4e9f-81a4-b9ca949b3dee@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi All,
I have my ASP.NET application hosted in COM+ and I have my
client app. Is there any way I can limit the number os sessions? Say,
I have 5 client requests and they instantiate 5 COM+ sessions on the
server and on the 6th one I want that to get blocked and tell the user
that the server is busy pls try later or something like that.
Can this be done? I am on .NET FW1.1.
Thanks !
.
- Follow-Ups:
- Re: Limit number of COM+ sessions
- From: Remote_User
- Re: Limit number of COM+ sessions
- References:
- Limit number of COM+ sessions
- From: Remote_User
- Limit number of COM+ sessions
- Prev by Date: Re: Size of string in a richtextbox
- Next by Date: Re: Monitor Pulse/PulseAll/Wait question
- Previous by thread: Limit number of COM+ sessions
- Next by thread: Re: Limit number of COM+ sessions
- Index(es):
Relevant Pages
|