You can have a boolean(or int, if you want a counting
semaphore) that is set when the servlet is in use.
Tim
--- Xizhen Wang <[EMAIL PROTECTED]> wrote:
> Hi all!
>
> Is it possible to disallow multiple users logging in
> and running Java
> Servlets at the same time? I want to disallow access
> to my Java Servlets
> if another user has already logged on. Can I use
> session tracking to
> prevent this from happening - ie force other users
> to wait and log in
> again once the first user has logged out/closed his
> browser?
>
> Thanks!
> Xizhen
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED]
> and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives:
>
http://archives.java.sun.com/archives/servlet-interest.html
> Resources:
>
http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help:
> http://www.lsoft.com/manuals/user/user.html
>
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html