title: User (session) count in cluster
body: <p>Is there a good way to get the logged in user count in a Java web application that is running in a cluster?</p>
  
  <p>I wrote a simple <code>HttpSessionListener</code> with a static field, but I suppose this doesn't work in cluster. I can see there is a Spring Security solution, but I read in some forums that this is still not ok in cluster.</p>
  
  <p>The product in which I have to implement this user count is trying to be application server independent, currently we support Tomcat, Weblogic and JBoss. At the moment I need a solution for Weblogic 10.3 clusters.</p>