Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

restarting java application

 
bryan lim
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is there a way to restart my java application from error recovery.

/bryan
 
Campbell Ritchie
Sheriff
Pie
Posts: 48940
60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you mean Exception handling, or something different?
 
bryan lim
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when there is error, i want to prompt the user to restart the application. but how can i make the java application restart?

thanks!
/bryan
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why does the app need to be restarted? What kind of error is this that can't be recovered from while the app is running?
 
Miklos Szeles
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can create a starter application which has only two task. Starts your application and restarts it whenever it exit with some error code.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic