?
Solved

"Transaction Processing" message from servlet

Posted on 2003-02-18
5
Medium Priority
?
207 Views
Last Modified: 2013-12-10
I have an application running under WAS v3.5.  There are several servlets that can run for several minutes.  I would like to send the client an HTML page basically saying his/her data is being processed and then send a confirmation page once the servlet is completed.  The way the process is built, the servlet processed the data then issues a sendRedirect to the JSP that shows the results.  However, with this sequence they don't get anything until the servlet is done.  

What can I do?
0
Comment
Question by:WGPuckett
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 3

Accepted Solution

by:
jerelw earned 200 total points
ID: 7981933
Pass your printwriter to a Thread that routinely (every 1000 - 5000 millisenconds) checks a worker thread.

Have the worker thread set a String status as it hits key check points (inserted 10,000 records, deleted 500 keys, etc) and have the main Thread 'push' a JavaScript tag out at the regular intervals.

After the entire transaction is complete, simply push out a <JavaScript>document.location.href=""</JavaScript>
0
 
LVL 3

Expert Comment

by:jerelw
ID: 7981946
If you're developing Java applications, this should get you going: http://www.experts-exchange.com/Programming/Programming_Languages/Java/Q_20507509.html
0

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This exercise is about for the following scenario: Dmgr and One node with 2 application server. Each application server contains it owns application. Application server name as follows server1 contains app1 server2 contains app1 Prereq…
This article is about some of the basic and important steps to be used to improve the performance in web-sphere commerce application development. 1) Always leverage the Dyna-caching facility provided by the product 2) Remove the unwanted code …
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question