What does it mean when a message is locked?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Kirk_Tsai
Posted On:   Friday, April 23, 2004 10:09 AM

I have bunch of messages stuck in a queue that can not be drained. I used SwiftMQ Explorer to query the contents of the queue and it showed those messages as "locked".


Can you explain what is means for a message to be locked? and what are the potential cause for it?


I am running version 5.0.0 on Windows 2K with JDK 1.4.2.

Re: What does it mean when a message is locked?

Posted By:   Andreas_Mueller  
Posted On:   Friday, April 23, 2004 11:55 AM

If a message has a lock symbol then it is locked by a consumer. Keep in mind that a consumer has a cache of 500 messages by default. Up to this size is prefetched and delivered to the consumer, if possible. These messages aren't consumed yet (they are only in the consumer's cache) so the messages are locked. The consumer cache size is determined by the attribute "smqp-consumer-cache-size" of the connection factory the consumer did use.
About | Sitemap | Contact