This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Servlets and the fly likes running daemon process from servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "running daemon process from servlet" Watch "running daemon process from servlet" New topic

running daemon process from servlet

Girish Gopal

Joined: Nov 13, 2008
Posts: 10
I have a servlet/jsp which shows a list of records.When page load completes I need to insert some values into the database .I wrote the code for updating the data base on the same servlet but it causes lot of time to load the page.

How can I do the updation as a daemon process?

I solved it through threads? But just wan't to know whether that was the right way to do it?
Himanshu Gupta
Ranch Hand

Joined: Aug 18, 2008
Posts: 598

This thread will help you a lot. Read this.

My Blog SCJP 5 SCWCD 5
I agree. Here's the link:
subject: running daemon process from servlet
It's not a secret anymore!