Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-2087

JDK LogManager and shutdown hook in Sun's JRE

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Major
    • JBossAS-4.0.3 Final
    • JBossAS-4.0.3RC1
    • Other
    • None
    • 0
    • 0% 0%

    Description

      Sun's LogManager has an undocumented feature where System.exit()
      invokes reset() on the LogManager.

      This causes problems for other Shutdown hooks like JBoss's that stops all services.
      i.e. the loggers can be reset while another shutdown hook still wants to use them

      A potential fix is to set the system property to install our own LogManager that
      disables reset. Instead we do the reset processing from
      our own shutdown hook.

      // psuedo code
      public class JBossLogManager extends LogManager
      {
      protected JBossLogManager()
      {
      }

      public void reset()

      { // do nothing }

      public void jbossReset()

      { super.reset(); }

      }

      Attachments

        Activity

          People

            starksm64 Scott Stark (Inactive)
            adrian.brock Adrian Brock (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: