activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevin Burton <bur...@spinn3r.com>
Subject Re: Setting ?jms.prefetchPolicy.all=10 causes getDestinationSource().getQueues() to return with missing queues...
Date Fri, 18 Jul 2014 02:38:09 GMT
Ah.. the problem is that it's an API design bug.

getQueues() seems to imply a synchronous fetch of the queues.

So really there's no way to know if you have them all.. .

there's no startup countdown latch or anything to imply that you have a
snapshot of all the queues.

… so thats the bug essentially :)

Kevin


On Thu, Jul 17, 2014 at 5:18 PM, artnaseef <art@artnaseef.com> wrote:

> I don't see a bug in DestinationSource - can you be more specific what you
> see there?
>
> Since the DestinationSource is a message listener reading advisory
> messages,
> there definitely is a chance for race conditions.  And smaller prefetch
> values can significantly slow down delivery of the advisories.
>
> Note that the initial creation of an advisory subscription receives a
> message for every destination already known to the broker.
>
> Please advise on what you see.
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/Setting-jms-prefetchPolicy-all-10-causes-getDestinationSource-getQueues-to-return-with-missing-queue-tp4683383p4683385.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>



-- 

Founder/CEO Spinn3r.com
Location: *San Francisco, CA*
blog: http://burtonator.wordpress.com
… or check out my Google+ profile
<https://plus.google.com/102718274791889610666/posts>
<http://spinn3r.com>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message