This is wrong. Why do you say this? I agree with the part on the
servlet engine
controlling servlet instantiating and unloading among other things.
Whatever threads the
servlet container uses is used for the servlet management. If the
container
uses a thread to handle a doGet request, how can it be guaranteed
that what the programmer
does in that doGet request doesn' t need a thread? No such
assumptions can be made.
In fact, in one of my applications I had to use threads in managing
my needs and they worked
perfectly. Using or not using threads is, according to me, an
implementation issue.
>I do not know why you want to create a thread in your servlet. A
servlet
>container is a controlled runtime with the container
managing
>instantitiaion and threads for requests. Explicit threading may
conflict
>with the container.
>I suggest that you've a relook at your design. Your design does
not seem
>to be sensitive to the specification.
>
>> in a method in the controller servlet calling it from the
thread's run()
>> implemantation.
>>
>> Now my problem is to invalidate the session the for the
logged out user(
>one
>> session allowed per user) using the sessionid stored
in the second
>> hashtable at the time of getting the session.
>
>You should use the <get/set>MaxInactiveInterval of
HttpSession to let
>the container invalidate the sessions for you.
>
>Hopefully, by changing the design, you'll not have the
above
>requirement.
>
>Cheers!
>
>___________________________________________________________________________
>To unsubscribe, send email to [EMAIL PROTECTED] and include
in the body
>of the message "signoff SERVLET-INTEREST".
>
>LISTSERV Help:
http://www.lsoft.com/manuals/user/user.html
>______________________________________________
>FREE Personalized Email at Mail.com
>Sign up at
http://www.mail.com/?sr=signup
>
>___________________________________________________________________________
>To unsubscribe, send email to [EMAIL PROTECTED] and include
in the body
>of the message "signoff SERVLET-INTEREST".
>
>LISTSERV Help:
http://www.lsoft.com/manuals/user/user.html
>
Rajesh Nair
[EMAIL PROTECTED]
Ph: 913 599 7201
R&D
Informix Software
