Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Databases / February 2005

Tip: Looking for answers? Try searching our database.

data load

Thread view: 
Dieter Bender - 18 Feb 2005 19:26 GMT
Hi,

whats the best way to start a long running process (> 60 minutes)from a web
application?

Dieter Bender
frebe - 19 Feb 2005 15:03 GMT
> whats the best way to start a long running process (> 60 minutes)from a web
> application?

Start a new thread that does the work, and let the jsp page (or
servlet) return a response immediately. In the end of the load process,
write a notification in a table. Put a link in the response page, to a
page showing the status of the load.

Fredrik Bertilsson
http://butler.sourceforge.net
Leo Gaggl - 20 Feb 2005 01:49 GMT
>>whats the best way to start a long running process (> 60 minutes)from
>
[quoted text clipped - 9 lines]
> Fredrik Bertilsson
> http://butler.sourceforge.net

Alternatively you can save the file you want to load to the webserver
and use the databases bulk import facility to do the work. Most
databases have these utilities and they are usually much more efficient
than doing bulk loads via JDBC.

Starting a new thread is a good idea anyway.

HTH

Leo
Dieter Bender - 20 Feb 2005 09:29 GMT
Hi,

thanks, I've had this idea too, but was a little bit unsure about starting a
thread and J2EE

Dieter

>>>whats the best way to start a long running process (> 60 minutes)from
>>
[quoted text clipped - 20 lines]
>
> Leo


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.