7 Replies Latest reply on Sep 22, 2005 9:15 AM by yielruse

    Why System.exit in MBean can not halt the JVM??

    yielruse

      The situation is:
      I deployed a MBean, whitch derived from ServiceMBeanSupport and call System.exit(-1) int its startService method, in JBoss 4.0.1_sp1.
      Then run %JBOSS_HOME%/bin/run.bat.
      It is very strange that the VM just dosen't halt, and you must explicit close the DOS window to make it exit.

      I tryed to call systemExit(-1) instead, but got the same result.

      Additional info:
      Sun JDK: 1.4.2_06
      Windows server 2000

      can anybody help me out??
      thx.