Uploaded image for project: 'Geronimo'
  1. Geronimo
  2. GERONIMO-1801

Restart/Shutdown functionality for Geronimo when using Java Service Wrapper

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.0, 1.1
    • 1.x
    • startup/shutdown
    • 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".

      1. 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

          Activity

            People

              Unassigned Unassigned
              ruebsam Mario Ruebsam
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: