Em Tue, 01 Dec 2009 23:59:48 -0200, Ashwanth Kumar
<ashwanth.ku...@gmail.com> escreveu:
Hi,
Hi!
I want to write a simple component, which will say the number of users
online! But, to do, that i need to access the non-threaded version of
HttpServletRequest of the Tapestry servlet, how do i do that? Please help
me!
Some points:
1) Tapestry is a servlet filter, not a servlet.
2) There isn't a non-threaded version of HttpServletRequest, as it is
created for every request received.
3) As far as I know, it's not possible to count the number of concurrent
users without using the session, as HTTP is a stateless protocol. You'll
need to count open sessions. To do that, you'll need a service to hold the
number of open sesions and an HttpSessionListener.
I hope I gave you some pointers.
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, software architect and developer, Ars Machina Tecnologia da
Informação Ltda.
http://www.arsmachina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org