My preference would be to send a jms message to an MDB and return to the browser with a page that does a meta-refresh to keep checking if there is a "reply" message. This gets you out of the server so that it can service other requests between "checks". Ultimately, it should scale better than tying up the servlet thread for "long running" operations. It also has the advantage that the mdb can potentially be on another machine, again, for scalability.
-----Original Message----- From: A mailing list for discussion about Sun Microsystem's Java Servlet API Technology. [mailto:[EMAIL PROTECTED] Behalf Of Chris Ward Sent: Friday, October 08, 2004 11:46 AM To: [EMAIL PROTECTED] Subject: (New subscriber) "Busy Page" Hi, Sorry if this has been covered before - I couldn't see anything in the archive. What I want to know is the best/preferred way to display a "Busy" page/message while my servlet grinds away crunching numbers. At the end to the processing I want my html report output to be displayed instead of the "Busy" message. I've tried lots of ways of doing this (redirects/imports via JSPs, ServletFilters etc) but nothing ever does the very task I required. Surely this is a very common task. The only thing I've not bothered trying is firing off a separate thread to do my processing. I figure there has to be a cleaner way. Thanks in advance. Chris ___________________________________________________________________________ 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 The information contained in this e-mail may be confidential and is intended solely for the use of the named addressee. Access, copying or re-use of the e-mail or any information contained therein by any other person is not authorized. If you are not the intended recipient please notify us immediately by returning the e-mail to the originator.(A) ___________________________________________________________________________ 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