Details
-
New Feature
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
1.0, 1.1
-
Security Level: public (Regular issues)
-
None
-
Windows, Linux, Mac OS X, Solaris, HP-UX
Description
If running Geronimo with Java Service Wrapper (also mentioned in GERONIMO-693),
easy restart/shutdown functionality could be added to the JSW configuration
by adding the following lines to the Java Service Wrapper "wrapper.conf".
- Filter settings. Add parameters as needed starting from 1
wrapper.filter.trigger.1=JSWRestartGeronimo
wrapper.filter.action.1=RESTART
wrapper.filter.trigger.2=JSWShutdownGeronimo
wrapper.filter.action.2=SHUTDOWN
wrapper.filter.trigger.3=java.lang.OutOfMemoryError
wrapper.filter.action.3=RESTART
The Servlet/JSP code for triggering shutdown/restart is then very
simple by printing an output to the standard out or err e.g.
System.out.println("JSWRestartGeronimo");
or
System.out.println("JSWShutdownGeronimo");
Also the "java.lang.OutOfMemoryError" which is not easy to
catch in the JVM can be handled this way using the JSW.
If added to some JSW configuration scripts packaged with
Geronimo the above configuration should also described
in the JSW section in the current documentation.
Attachments
Issue Links
- relates to
-
GERONIMO-693 Provide Java Service Wrapper scripts in bin directory
- Open