wood burning stoves
The moose likes Servlets and the fly likes to know   the no of client requesting Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "to know   the no of client requesting" Watch "to know   the no of client requesting" New topic

to know the no of client requesting

sanjeev mohanty

Joined: Aug 29, 2006
Posts: 3
how to know how many clients are requesting to the server?
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63872

That's pretty vague. Care to elaborate?
[ November 06, 2006: Message edited by: Bear Bibeault ]

[Asking smart questions] [About Bear] [Books by Bear]
lin yic

Joined: Nov 06, 2006
Posts: 11
maybe you can use the listener of the servlet to calculate the no of request.
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968

You can always add one of these to your website:

Java Ranch Statistics


-Cameron McKenzie
Rahul Bhattacharjee
Ranch Hand

Joined: Nov 29, 2005
Posts: 2308
The HTTP requests from the clients at server are intercepted by the HTTP listners and then sent for further request processing.You can write your own HTTP listner and install at tomcat (defualt is coyote listner).

Note this answer is specific to tomcat and if you can change the tomcat settings.

Rahul Bhattacharjee
LinkedIn - Blog
I agree. Here's the link: http://aspose.com/file-tools
subject: to know the no of client requesting
It's not a secret anymore!