Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Downloading a large file using Struts2

Posted on 2008-10-10
2
Medium Priority
?
1,740 Views
Last Modified: 2013-12-18
I'm trying to download data from an Oracle 10g DB using struts2. I create a temp file from the db and download the temp file.

As the temp file is being created on the server, after a few minutes the browser goes blank (closing the connection, I presume). So when the server tries to pass back the created temp file to the browser, it throws a

java.net.SocketException: Broken pipe

exception. I use iBatis, Oracle 10g and JBoss.

How can I prevent the browser from going blank, when the file is still being created on the server.

Thanks.
Ganesh.
0
Comment
Question by:gunacesun
[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 Comments
 
LVL 7

Accepted Solution

by:
humanonomics earned 1500 total points
ID: 22703417
Use multi-threading, spawn a new thread to fetch data from the database, this will allow the user to browse the website and use other functionality, while your work is being done by other thread.
0

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

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

In this post we will learn different types of Android Layout and some basics of an Android App.
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Suggested Courses

598 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