You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by thiamteck <th...@gmail.com> on 2007/03/07 16:11:17 UTC
Re: [Spam: 5.0] Getting duplicate message from JMS Topic after
subscriber restart
I am using AUTO_ACKNOWLEDGE.
James.Strachan wrote:
>
> What acknowledgement mode are you using?
>
> On 3/7/07, thiamteck <th...@gmail.com> wrote:
>>
>> 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.
>>
>>
>
>
> --
>
> James
> -------
> http://radio.weblogs.com/0112098/
>
>
--
View this message in context: http://www.nabble.com/Getting-duplicate-message-from-JMS-Topic-after-subscriber-restart-tf3362466s2354.html#a9354627
Sent from the ActiveMQ - User mailing list archive at Nabble.com.