[jboss-user] [Messaging, JMS & JBossMQ] - Redelivery caused by System.exit()? urgent!!!!

longfangq@hotmail.com do-not-reply at jboss.com
Tue Jan 9 09:50:35 EST 2007


Hi,

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,
            Session.AUTO_ACKNOWLEDGE);

Can anyone kindly help? many thanks!



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3999480#3999480

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3999480



More information about the jboss-user mailing list