my dog learned polymorphism*
The moose likes Sockets and Internet Protocols and the fly likes how to count number of user available for particular application in java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "how to count number of user available for particular application in java" Watch "how to count number of user available for particular application in java" New topic
Author

how to count number of user available for particular application in java

manikandan param
Greenhorn

Joined: Jan 18, 2006
Posts: 2
Hai ,

In my application , i want to know about number of users available in the particular application .any one can help me . can any one can give the sample coding or URL tutorials
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
Assuming this is a web app, look into the HttpSessionListener. There are a couple ways to get an implementing class hooked up to the events. If you're in a cluster this will only monitor the one clone it's running on and a user could possibly show up in two places at once.


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: how to count number of user available for particular application in java
 
Similar Threads
Page Scope VS request Scope VS session Scope Vs application scope
how to count number of user available for particular application in java?
Can we make " singelton servlet" ?
MIDlets and classes
Doubt in Session Attributes (HFSJ)