Hello all. I'm wrestling with an asynchronous communications problem.
I've
seen some posts since '98 dealing with this, but am wondering if, in the
interim, someone there have been some new solutions to this issue. The
problem: I have an application server with which my servlet
communicates. It
has a method to open a socket and send processing instructions to the
server. The server performs its calculations and returns results to the
client. The problem is, the server can take anywhere from a couple of
seconds to several minutes to perform its calculations.
Question: Can I implement a "blocking" method on the servlet so it can
wait
for an indeterminate period before calling a method to write the results
to
the web-client? eg. using a producer/consumer/cubbyhole paradigm?
I'm aware that after a certain amount of time I'll encounter timeout
issues.
I'll almost definitely end up with a framed page (probaly JSP) that'll
function as my view, with one frame reserved for the results.
Thanks in advance for any/all replies.
Greg Polimis
___________________________________________________________________________
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