• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Server Time out? how to catch it?

 
eric sato
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
Currently i'm using SilverStream as an Application Server. But i have a servlet it sometime take processing more than server specified time out(eg. 3000 seconds). So usually user will see in browser with error server timeout. (it is standard way). But i need a "listener" or a program within that servlet, that able to catch the server time out when it occured. How do i do that? Hope some of you may help me out!!!
Only thing that i have in my mind is using IOException in service method. But i can't figure out how to start it.
Thanks in advance.
eric s.
 
Asher Tarnopolski
Ranch Hand
Posts: 260
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
3000 seconds to procceed a servlet? do you expect
a user to wait for the result 50 minutes?
 
eric sato
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Asher
3000 seconds just a example only. The actual time is 10 minutes and i implemented only in in-house system. So any idea to catch it?
eric s.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13073
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you better redesign your application - the browser - webserver architecture just does not work well when the response is delayed that long.
You should think in terms of starting a separate worker Thread to do the long processing, with some sort of mechanism so the user can be updated periodically as to how things are going.
Seems to me we have had a number of discussions of this sort of thing on this forum in the last few months.
Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic