wood burning stoves 2.0*
The moose likes Java in General and the fly likes Java Application Run in Background Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Java Application Run in Background" Watch "Java Application Run in Background" New topic
Author

Java Application Run in Background

Khairul Ikhwan
Greenhorn

Joined: Oct 01, 2009
Posts: 4
Hi all,
I am developing an application. In my application, i need to export list of records from the database to CSV file format after user click on Export button. But, this require a lot of time because the client im dealing with have more than million records in the database.

I am wondering if i can create run in a background function to export the records. Whenever they click the button, it will redirect to another page while the exporting process running in a background. Anyone have any suggestion?


Help me..
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41060
    
  43
Welcome to JavaRanch.

You'll want to create a separate thread for the background job so that it doesn't interfere with whatever the user does in the foreground. The Sun Java Tutorial has an extensive section on concurrency.


Ping & DNS - my free Android networking tools app
Khairul Ikhwan
Greenhorn

Joined: Oct 01, 2009
Posts: 4
Thanks, dude. This seems promising.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java Application Run in Background
 
Similar Threads
Color in JTable
convert mysql data into excel format
Getting error while displaying tif image in applet through browser.
How to Export web page(jsp page) to excel using jsp or servlets
paging for dynamic rows