activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thiamteck <thiamt...@gmail.com>
Subject Re: [Spam: 5.0] Getting duplicate message from JMS Topic after subscriber restart
Date Thu, 08 Mar 2007 09:36:15 GMT

Hi, I had test to run the same program (both publisher and subscriber) on
ActiveMQ 4.0.2 and I do not get the problem. So I guess it is the problem of
ActiveMQ 4.1. I will later post a bug report.

Anyway, thanks a lot for your help.



James.Strachan wrote:
> 
> What acknowledgement mode are you using?
> 
> On 3/7/07, thiamteck <thiamteck@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#a9371377
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message