Could you elaborate a little bit more, i.e: how do you want to get the messages?
When I post messages to a JMS queue I am able to view browse the messages in the queue or using the jmx-console I can list the messages if the messages has not yet been delivered.
If the messages have been attempted to be delivered, failed and then scheduled for redelivery, then it is not possible to browse the messages, nor is it possible to get a valid queue depth. You can however view the number of sheduledForDelivery by using the jmx-console. It would be nice to be able to browse the messages.
Do you by any chance get any exceptions? If you could not see any warning in your log file, could you please change your log to debug and post that portion of your log file close to the time of th execution to me.
The other question I have is do you have delays when you are reading (Receiving messages)?
Could you also post your receiving code?
I have an MDB that receives messages from a queue. In some circumstances that MDB calles MessageDrivenContext.setRollbackOnly() if it fails to process the message. I do this so that the message will be redelivered at a later time. I also have a queue with the following configiration
Looking at the jmx-console of a given destination, ie my queue above, I can view the various attributes of a queue and I can also invoke the
MBean operation which lists the messages. Once can also view the current queue depth of the Queue on the jmx-console. The listMessages and QueueDepth operation/attribute, will only display messages that have not yet been delievered, but does not include those messages that have failed to be delivered and are scheduled for re-delivery.
As for exceptions, I do not get any nor are there any warnings in the log files.
I suppose all I was wanting to know is, is there anyway to list the messages that have been scheduled for redelivery.
I think somebody prepared a patch for that (do a search) but it may not be available.
Thanks for the info. I will try to hunt around for the patch.