0 Replies Latest reply on Jan 9, 2007 9:50 AM by Longfang Q

    Redelivery caused by System.exit()? urgent!!!!

    Longfang Q Newbie


      When our program receives a JMS message which instructs it to shut down, it calls System.exit(0). It works well with another application server. When we try to migrate to JBoss, we found that JMS message will not be consumed, which means the program does receive the message and exit but when it restarts, that JMS message will be redelievered and cause it to exit again and therefor an infinite loop.

      We use non-transactional messaging and auto acknolowledge:
      QueueSession qSession = qCon.createQueueSession(false,

      Can anyone kindly help? many thanks!