[PJUG Javamail] FW: Servlet Specification: Session Tracking

Christian Pich cmpich at cs.uoregon.edu
Fri Oct 6 19:54:03 EDT 2006


Vijay, Thanks for sharing.
Yes, I am looking into a low-cost solution...

So, how does Webtrends work?
Do they inspect access log files? But then how would they know which 
access request comes from a particular
user who has history?

Christian


Vijay Balakrishnan wrote:
> Hi Christian,
>
> ClickStream is cool in a limited way but you are putting that 
> information in the application itself through the use of a Filter.
>
> Another option which we use at our work-place(of course only if you 
> can afford it) is to use something Like Webtrends(a local company) 
> which provides reams of cool data using IIS Http 1.1  keep-Alive to 
> keep track of sessions.I am sure Webtrends can do that for other web 
> servers too.
>
> But then I am assuming your question was about free options.
>
> Rgds,
> Vijay
>
> On 10/6/06, *Bill Ensley* <bill at bearprinting.com 
> <mailto:bill at bearprinting.com>> wrote:
>
>     Check out ClickStreams
>
>     http://www.opensymphony.com/clickstream/
>
>     I have been managing sessions with it for several months now, it works
>     great.
>
>     -Bill Ensley
>     Bear Printing
>
>     -----Original Message-----
>     From: javamail-bounces at pjug.org <mailto:javamail-bounces at pjug.org>
>     [mailto:javamail-bounces at pjug.org
>     <mailto:javamail-bounces at pjug.org>] On Behalf
>     Of Christian Pich
>     Sent: Friday, October 06, 2006 1:42 PM
>     To: javamail at pjug.org <mailto:javamail at pjug.org>
>     Subject: [PJUG Javamail] Servlet Specification: Session Tracking
>
>     I have a question concerning the servlet session object:
>
>     I would like to be able to know how many sessions are currently
>     active on my
>     server, that is how many users are actively doing business.
>     Now there is this class, HttpSessionContext that seems to do
>     exactly answer
>     this question, however this class is deprecated (at least in
>     version servlet
>     2.4).
>     Sun only puts out the comment it is deprecate because of security
>     resaons.
>     Now hat are the security reasons?
>     Couldn't Sun include that bit of information here?
>     Just as I hate when a method is deprecated and no comment is
>     provided how to
>     get the business done otherwise?
>
>     It boils down that the servlet specification does not allow you to
>     inquire
>     at any point in time what sessions are managed by the app server.
>     Other
>     cases of depraction are:
>     You cannot obtain all the roles a principal has, you can only
>     check if a
>     principal has given role.
>
>     I am sure there are good reasons ...
>
>     Now, how can I track all my users anyway?
>     It appears to me that the servlet API provides a listener called
>     |HttpSessionBindingListener|
>     <http://java.sun.com/j2ee/sdk_1.2.1/techdocs/api/javax/servlet/http/HttpSess
>     <http://java.sun.com/j2ee/sdk_1.2.1/techdocs/api/javax/servlet/http/HttpSess>
>     ionBindingListener.html>
>     that gets called every time a new session is created or removed.
>     It comes down to the fact that I have to keep track of these
>     events and
>     store each session myself. Doesn't that seem awkward?
>
>     Is there a library that does this for me? Any other suggestions or
>     comments?
>
>     Christian
>
>     _______________________________________________
>     Web Site - http://www.pjug.org/ <http://www.pjug.org/>
>     Javamail mailing list
>     Javamail at pjug.org <mailto:Javamail at pjug.org>
>     http://www.pjug.org/mailman/listinfo/javamail_pjug.org
>
>
>     _______________________________________________
>     Web Site - http://www.pjug.org/
>     Javamail mailing list
>     Javamail at pjug.org <mailto:Javamail at pjug.org>
>     http://www.pjug.org/mailman/listinfo/javamail_pjug.org
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Web Site - http://www.pjug.org/
> Javamail mailing list
> Javamail at pjug.org
> http://www.pjug.org/mailman/listinfo/javamail_pjug.org
>   


-- 
------------------------------------------------------------------------
Christian Pich, Ph.D.
University of Oregon
Zebrafish Information Network
Email: cmpich at cs.uoregon.edu
Web: http://www.zfin.org
------------------------------------------------------------------------



More information about the Javamail mailing list