this question is initiaally posted at http://www.experts-exchange.com/Programming/Languages/Java/Q_22430487.html here.
Hi, I am developing a program that subscribe to a JMS Topic. The JMS provider i use is Apache ActiveMQ 4.1. The subscription to the Topic is durable subscription and the publisher of the message publish message as persistent message. The problem I facing now is that for each time I restart my subscriber (by Ctrl-C on the program console) program, I will get 2 copy of same message after restart. If I restart the subscriber program another time, I will get 3 copy of same message each time the publisher publish a message into the Topic. If I restart the JMS Server (Apache ActiveMQ 4.1) and the subscriber program, then it will work well again which for getting 1 copy for each message. Wish experts here can give me some guide on what going on and how to solve this. Thanks in advance. :D -- View this message in context: http://www.nabble.com/Getting-duplicate-message-from-JMS-Topic-after-subscriber-restart-tf3362466s2354.html#a9354125 Sent from the ActiveMQ - User mailing list archive at Nabble.com.