This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "to know   the no of client requesting" Watch "to know   the no of client requesting" New topic
Author

to know the no of client requesting

sanjeev mohanty
Greenhorn

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

Joined: Jan 10, 2002
Posts: 61456
    
  67

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

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
lin yic
Greenhorn

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
    
    1

You can always add one of these to your website:

Java Ranch Statistics

Cheers!

-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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: to know the no of client requesting