Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

Setting ?jms.prefetchPolicy.all=10 causes getDestinationSource().getQueues() to return with missing queues...

$
0
0
This must be a bug…

I have code that needs to enumerate all queues on startup.

So I call

Set<ActiveMQQueue> queues =
connection.getDestinationSource().getQueues();

This basically returns a list of all queues which have > 1 message waiting
in them. (or haven't been GCd yet so there might be a few with zero).

… I get queues back, but only about 40 of them.

if I just remove ?jms.prefetchPolicy.all=10

… then I get ALL of them back… something like 400.

But what could cause this? I read about the prefect policy and I don't see
why this would impact getQueues at all.

I would think that getQueues () would be authoritative.

Is it possible that there's a race? that the ActiveMQ server is sending
advisory messages to the client, but the client hasn't processed them all
yet due to the lower prefect policy?

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>

Viewing all articles
Browse latest Browse all 5648

Trending Articles