Try implementing the Runnable interface, and use synchronised methods.
-----Oorspronkelijk bericht-----
Van: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]Namens Claes G�ran
Verzonden: Thursday, June 29, 2000 3:27 PM
Aan: [EMAIL PROTECTED]
Onderwerp: Servlet Questions
Hi. I have two questions about servlets/http servlets.
1. Is there a way of stopping the execution of a servlet until something
occurs? Like wait and notify of the java object class. I want the servlet to
receive a request, then wait for another object to complete something, the
other object then "notifies" the servlet and it continues with it's
execution.
2. Is there any way of contacting a specific servlet instance, or thread
since the possibility to get a session from it's session id was deprecated,
getSession( id ). That is, can one make a method call to a servlet without
responding to a method call from the servlet. Would RMI be a viable way?
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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
___________________________________________________________________________
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