activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akos <akos.ba...@p92.hu>
Subject Re: Durable subscription discrepancies.
Date Wed, 24 Mar 2010 13:45:11 GMT

Last case: https://issues.apache.org/activemq/browse/AMQ-2666


Gary Tully wrote:
> 
> Have a look at this test case, it should be provide you with examples and
> with a good starting point:
> http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/DurableSubscriptionTestSupport.java?view=markup
> 
> On 23 March 2010 16:14, Gary Tully <gary.tully@gmail.com> wrote:
> 
>> Can you open a jira issue and submit a junit test case, this will help
>> fully understand your scenario.
>>
>>
>> On 23 March 2010 11:14, akos <akos.baraz@p92.hu> wrote:
>>
>>>
>>> Hi All,
>>>
>>> i'm trying to use durable subscriptions and i found so many
>>> bugs/discrepancies in that area (AMQ 5.3). It is really frustrating.
>>>
>>> - if i set keepDurableSubsActive=false (what i want) then i won't get
>>> the
>>> messages after re(!)-activation. I've figured out that the
>>> DurableTopicSubscription.deactivate() invokes
>>> StoreDurableSubscriberCursor.remove() what is removes the
>>> TopicStorePrefetch
>>> from the topic. Up to this point everyting is fine. But when the durable
>>> subscription becomes active the StoreDurableSubscriberCursor.add won't
>>> be
>>> called. So DurableTopicSubscription.activate() does not put the cursor
>>> back.
>>>
>>> - if i keep the keepDurableSubsActive=true setting (i don't want to)
>>> then
>>> the Topic.activate() re(!)-adds the subscription to the consumers list.
>>> Every re-activation increases the list.
>>>
>>> - there is another problem in the jmx broker also. The
>>> ManagedRegionBroker.addInactiveSubscription adds the subscription to
>>> this
>>> domain: "...Type=Subscription,active=false,name=...". I don't know what
>>> this
>>> active=false part supposed to mean, but it puts the MBean to a strange
>>> path
>>> in the jconsole. What is not a big problem, but it is not managed by the
>>> rest of the code. Even if a subscription is inactivated the MBean in the
>>> "Durable" section shows active. If the subscription is active the
>>> "false"
>>> section contains an entry as it would be inactive.
>>>
>>> Could you please tell me some hints, how can i fix (mostly) the first
>>> one?
>>>
>>> Thanks for helping!
>>> akos
>>>
>>> --
>>> View this message in context:
>>> http://old.nabble.com/Durable-subscription-discrepancies.-tp27999389p27999389.html
>>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>>>
>>>
>>
>>
>> --
>> http://blog.garytully.com
>>
>> Open Source Integration
>> http://fusesource.com
>>
> 
> 
> 
> -- 
> http://blog.garytully.com
> 
> Open Source Integration
> http://fusesource.com
> 
> 

-- 
View this message in context: http://old.nabble.com/Durable-subscription-discrepancies.-tp27999389p28015242.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message