Where is the link?
Why would you want to retrieve messages that are not scheduled yet?
e.g. one of the uses of scheduled delivery is to delay redelivery of a message
after the client nacks it, to avoid looping if the client isn't in a state where it
can process it.
Here is the link:
Why would you want to remove a scheduled message? Well, mainly because the event that caused the placing of that message might not longer be valid, and you want to cleean up.
For instance: We are using JMS to do workflow for a communication tool that sounds out messages to our clients via email. When the message is approved, it is then scheduled for a time to be delivered. Well, as with all good apps, we also want to have the ability to remove a message from the schedule before it is delivered -- hence the desire to remove a scheduled message.
There are other ways to work around this without thie functioanlity, it seems pretty straightforward to me, so I though there might be some interest for other people as well.