#18 Restarting JVM with a special exit status value.

open
nobody
None
5
2011-08-31
2011-08-31
Mr.Sea
No

It will be better if we can configure some int value for JVM restart.
For example in ini file;
restart.code=7

In application;
System.exit(7); will trigger WinRun4J to start a new JVM after termination of current JVM.
or
The return value of serviceMain method in Service implementation class may be useful.

Usually we need to restart our service to reload updated jar files.

Regards,

Discussion