Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Who is loged in

 
Prem Khan
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey is there a way to see what users are currently loged into tomcat ?
Like returning the Strings into a java.util.list or some thing ?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It depends on what you mean by "logged in".
In a stateless environment you are never really logged in.

I have an example app on my site that registers and mapps sessions using session listeners. It may be enough to get you started.

http://simple.souther.us/not-so-simple.html

Look for sessionMonitor.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic