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

jboss.server.exitonshutdown is broken

    XMLWordPrintable

Details

    Description

      1) setting the jboss.server.exitonshutdown property is ignored; it's hard-coded to true in org.jboss.Main
      2) even if ExitOnShutdown is set to false though the console, the code in ShutdownHook.shutdown() is executed twice, the first time through Server.shutdown(), the second time when the all the non-daemon threads have exited and the Shutdown hook gets activated.

      We either need to unregister the shutdown hook on Server.shutdown (which means that forceHalt will not be used in this case, even if set), or mark with a flag that shutdown is already done.

      JBossJDKLogManager doReset should probably be performed in ShtudownHook.shutdown()

      Attachments

        Activity

          People

            dandread1@redhat.com Dimitrios Andreadis
            dandread1@redhat.com Dimitrios Andreadis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: