Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
manikandan param
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic