How to know any request type with comet in tomcat 6
Posted
by Alvin
on Stack Overflow
See other posts from Stack Overflow
or by Alvin
Published on 2010-06-08T06:14:32Z
Indexed on
2010/06/08
6:22 UTC
Read the original article
Hit count: 186
Hi,
I want to create a chat application in Tomcat 6.0, but before allowing any user for chatting I want to authenticate a user or registering its account to the database by passing request to the servlets at the comet Event type Begin.
But I don't know how to know about the request type. How can I know a user has already been logged in, or he is making a request for registering his account. How can I know this by implementing CometProcessor interface? Is there any better way to do that task?
© Stack Overflow or respective owner