Tim, Thanks for your response. So, are you suggesting we should use some other queueing construct instead of SynchronousQueue? If yes, then I would like to know about the performance implication of any such change. Could somebody familiar with the code let me know the reason it (SynchronousQueue) was chosen?
Thanks and regards Tejeswar -----Original Message----- From: Tim Fox [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 05, 2006 2:37 PM To: [email protected] Subject: Re: [java] Question on implementing queue browsing Das, Kapali Tejeswar wrote: > I am currently working on implementing the JMS queue browsing > functionality. Qpid uses java.util.concurrent.SynchronousQueue for its > internal queue for enqueing and dequeing messages. This class doesn't > allow to peek/browse messages in the queue. It only has methods to put a > message or get a message (with a timeout). Right. Also, for JMS, you'll need to implement some kind of priority queue, which SynchronousQueue won't handle. > > > > Any suggestions for how we should implement the queue browsing feature? > I also noticed that there is no native implementation of queue browsing > in Qpid. > > > > Thanks and regards > > Tejeswar > > -- Tim Fox JBoss Messaging Technical Lead JBoss - a division of Red Hat T: +44 2088006768 M: +44 7957983205 E: [EMAIL PROTECTED] [EMAIL PROTECTED]
