-
1. Re: JbossMQ and browsing of Scheduled for Delivery Messages
alexdorand Nov 6, 2005 10:31 PM (in response to shafieksavahl)Could you elaborate a little bit more, i.e: how do you want to get the messages?
-
2. Re: JbossMQ and browsing of Scheduled for Delivery Messages
shafieksavahl Nov 6, 2005 10:49 PM (in response to shafieksavahl)Hi arashsun
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.
Shafiek -
3. Re: JbossMQ and browsing of Scheduled for Delivery Messages
alexdorand Nov 7, 2005 12:14 AM (in response to shafieksavahl)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? -
4. Re: JbossMQ and browsing of Scheduled for Delivery Messages
shafieksavahl Nov 7, 2005 12:47 AM (in response to shafieksavahl)Hi arashun
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
<depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager
30000
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
java.util.List listMessages()
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.
Shafiek -
5. Re: JbossMQ and browsing of Scheduled for Delivery Messages
genman Nov 7, 2005 1:16 PM (in response to shafieksavahl)
I think somebody prepared a patch for that (do a search) but it may not be available. -
6. Re: JbossMQ and browsing of Scheduled for Delivery Messages
shafieksavahl Nov 7, 2005 5:41 PM (in response to shafieksavahl)Hi genman
Thanks for the info. I will try to hunt around for the patch.
Thanks
Shafiek