hi all
again i'm back w/ a question and i wish it doesnt get un-answered as my rescent posts on JR
okay,
i have a requirement that forces me to do some background processing in servlet. the problem is - if my servlet takes longer to respond then the browser proxy times out (u'd know if u saw my post earlier describing the issue on this forum which is still to b responded by somebody). I started with using Runtime.exec() but the problem is if i don't read back the output or error from the Process then the process sleeps and never gets awakened so my efforts failed.
then i tried w/ threads from the servlet and here is the thing i do. now, guide me if u find anything wrong in it or a serious possible problem in it,
(tho this is pseudocode)
it seems to be working okay but i just wanted to get some reviews from all because i dont have much experience in this kind of development..
regards
maulin
again i'm back w/ a question and i wish it doesnt get un-answered as my rescent posts on JR
okay,
i have a requirement that forces me to do some background processing in servlet. the problem is - if my servlet takes longer to respond then the browser proxy times out (u'd know if u saw my post earlier describing the issue on this forum which is still to b responded by somebody). I started with using Runtime.exec() but the problem is if i don't read back the output or error from the Process then the process sleeps and never gets awakened so my efforts failed.
then i tried w/ threads from the servlet and here is the thing i do. now, guide me if u find anything wrong in it or a serious possible problem in it,
(tho this is pseudocode)
it seems to be working okay but i just wanted to get some reviews from all because i dont have much experience in this kind of development..
regards
maulin