M
mike
I am trying to spawn a new process in a servlet and I need that
process to continue running when the user is forwarded to another
page. I thought I could use threads, but I still have to wait for my
new thread to finish before my class finishes running(I am assuming
the garbage collector is waiting for my thread to finish before the
class exits.
Question 1: Is there a way to start the thread and then abandon it so
it still runs but my GC is free to clean it up?
Question 2: If there is no way to do that, how would you solve a
problem of a web application that is timing out while waiting for a
long process to finish(20-30 minutes)?
process to continue running when the user is forwarded to another
page. I thought I could use threads, but I still have to wait for my
new thread to finish before my class finishes running(I am assuming
the garbage collector is waiting for my thread to finish before the
class exits.
Question 1: Is there a way to start the thread and then abandon it so
it still runs but my GC is free to clean it up?
Question 2: If there is no way to do that, how would you solve a
problem of a web application that is timing out while waiting for a
long process to finish(20-30 minutes)?