So how are you handling the counting of how many guests and registered users (with their names) are online in jforum?
I started to do this with a servletcontext attribute, but according to the javadocs, this isn't
thread safe, and even if i syncronized it, the javadocs say that on distributed systems, there is one
servlet context per
java virtual machine, so it basically says to use a database instead.
Even if i dismissed distributed computers, the HttpSessionListener listens as soon as a session gets created/deleted so i can't retrieve attributes in there since they haven't been assigned yet.
I haven't found a proper interface yet, will keep looking
[originally posted on jforum.net by Anonymous]