473,385 Members | 1,901 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,385 software developers and data experts.

Limit number of COM+ sessions

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 !
Feb 20 '08 #1
7 1722
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]
- mv*@spam.guard.caspershouse.com

"Remote_User" <am****@gmail.comwrote in message
news:a5**********************************@u69g2000 hse.googlegroups.com...
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 !

Feb 20 '08 #2

Hi Nicholas,
Thank you for the post. I am not able to find the
Object Pooling property for my component. There will be difference
when compared to Win2000 and XP I believe?

Thanks.

On Feb 20, 9:54*pm, "Nicholas Paldino [.NET/C# MVP]"
<m...@spam.guard.caspershouse.comwrote:
* * 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]
* * * * * - m...@spam.guard.caspershouse.com

"Remote_User" <ami...@gmail.comwrote in message

news:a5**********************************@u69g2000 hse.googlegroups.com...
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 !- Hide quoted text -

- Show quoted text -
Feb 20 '08 #3
Are you looking in the Component Services Manager, or are you trying to
do this through code?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Remote_User" <am****@gmail.comwrote in message
news:ef**********************************@s13g2000 prd.googlegroups.com...

Hi Nicholas,
Thank you for the post. I am not able to find the
Object Pooling property for my component. There will be difference
when compared to Win2000 and XP I believe?

Thanks.

On Feb 20, 9:54 pm, "Nicholas Paldino [.NET/C# MVP]"
<m...@spam.guard.caspershouse.comwrote:
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]
- m...@spam.guard.caspershouse.com

"Remote_User" <ami...@gmail.comwrote in message

news:a5**********************************@u69g2000 hse.googlegroups.com...
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 !- Hide quoted text -

- Show quoted text -

Feb 20 '08 #4
What kind of component is this? Only "Server" type COM+ components can be
pooled.

Willy.

"Remote_User" <am****@gmail.comwrote in message
news:ef**********************************@s13g2000 prd.googlegroups.com...

Hi Nicholas,
Thank you for the post. I am not able to find the
Object Pooling property for my component. There will be difference
when compared to Win2000 and XP I believe?

Thanks.

On Feb 20, 9:54 pm, "Nicholas Paldino [.NET/C# MVP]"
<m...@spam.guard.caspershouse.comwrote:
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]
- m...@spam.guard.caspershouse.com

"Remote_User" <ami...@gmail.comwrote in message

news:a5**********************************@u69g2000 hse.googlegroups.com...
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 !- Hide quoted text -

- Show quoted text -


Feb 20 '08 #5
Hi Willy,
Yes, this will be on the server side component.

Nicholas,
I am trying to see if there are any configuration
settings available through the Component Services Manager.

Thanks.


On Feb 20, 11:00*pm, "Willy Denoyette [MVP]"
<willy.denoye...@telenet.bewrote:
What kind of component is this? Only "Server" type COM+ components can be
pooled.

Willy.

"Remote_User" <ami...@gmail.comwrote in message

news:ef**********************************@s13g2000 prd.googlegroups.com...

Hi Nicholas,
* * * * * * * * * Thank you for the post. I am not able to find the
Object Pooling property for my component. There will be difference
when compared to Win2000 and XP I believe?

Thanks.

On Feb 20, 9:54 pm, "Nicholas Paldino [.NET/C# MVP]"

<m...@spam.guard.caspershouse.comwrote:
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]
- m...@spam.guard.caspershouse.com
"Remote_User" <ami...@gmail.comwrote in message
news:a5**********************************@u69g2000 hse.googlegroups.com...
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 !- Hide quoted text -
- Show quoted text -- Hide quoted text -

- Show quoted text -
Feb 21 '08 #6


"Remote_User" <am****@gmail.comwrote in message
news:c0**********************************@q33g2000 hsh.googlegroups.com...
Hi,
I changed the Max Pool size to 1 through the Component Services
panel just to check and tried initiating the component from 2
different clients but it gave me this error - "COM+ activation failed
because the component could not be activated in the specified amount
of time".
Also I had one more question if I set the Max Pool Size to 5 and a
6th call comes in what will the end user see or what is expected to
happen?

This client will get:
"COM+ activation failed because the component could not be activated in the
specified amount of time".

If you already have 5 activated objects running, then you can't create a
6th, unless one of the active objects was released to the pool while waiting
for the time-out period, specified by the "CreationTimeout" attribute.

Willy.

Feb 21 '08 #7
Hi,
So I can try this then?

- Catch this exception and display a user-friendly message
- Have an optimum timeout value so that the (n+1) th call can be
serviced if any of the earlier object is released back to the pool.

Thanks.
On Feb 21, 9:23*pm, "Willy Denoyette [MVP]"
<willy.denoye...@telenet.bewrote:
"Remote_User" <ami...@gmail.comwrote in message

news:c0**********************************@q33g2000 hsh.googlegroups.com...
Hi,
* * I changed the Max Pool size to 1 through the Component Services
panel just to check and tried initiating the component from 2
different clients but it gave me this error - *"COM+ activation failed
because the component could not be activated in the specified amount
of time".
* * Also I had one more question if I set the Max Pool Size to 5 and a
6th call comes in what will the end user see or what is expected to
happen?

This client will get:
"COM+ activation failed because the component could not be activated in the
specified amount of time".

If you already have 5 activated objects running, then you can't create a
6th, unless one of the active objects was released to the pool while waiting
for the time-out period, specified by the "CreationTimeout" attribute.

Willy.
Feb 21 '08 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: D. Dante Lorenso | last post by:
I need to know that original number of rows that WOULD have been returned by a SELECT statement if the LIMIT / OFFSET where not present in the statement. Is there a way to get this data from PG ?...
1
by: Erik Brown | last post by:
sql = "CALL " + myschema + ".MYSPROC(?,?,?,?,?,?,?,?,?)"; rs = con.prepareCall(sql); rs.setString(1, user); rs.setString(2, action); rs.setString(3, versions); rs.setString(4, spec);...
2
by: Lenn | last post by:
Hello, This requirement might seem strange to someone out there, but here it's We need to make sure only certain number of users can be logged in the site at the same time. Is there any way to...
5
by: TheOne | last post by:
Hi I am trying to display on a web page number of visitors on the site. I am doing this by increasing +1 in global.asax on Session_start and subtracting -1 on Session_end. I am storing value in the...
4
by: Bill | last post by:
Hi, I would be grateful if someone could clarify my rather confused ideas of the 10 connection limit on XP/2000 when its being used as a server. (I realise that XP is really a client op sys with...
2
by: tbone | last post by:
In trying to improve the throughput of a classic ASP app I wrote last year, I added monitoring to the application and session start and end methods. For one, I'm counting the total number of...
1
by: Dalibor Grudenić \(inet\) | last post by:
Is there some kind of way to limit the resources (CPU, number of sessions) per user in MS SQL 2000 database. Some kind of resorce manager thing...
9
by: campbellwarren | last post by:
Does anyone know how I could limit the number of rows allowed in a MS Access table... want to limit it to 1.
32
by: Nu | last post by:
I want to protect myself from if someone with a fast connection hammers my site. It's not denial of service attacks, but offline downloaders (of course that don't show they're offline downloaders...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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,...

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.