1. I'm wondering if there is any history file that logs what happens to
messages such as what message got in the queue and got took out at what time and so on.
2. Is there a way to set up so that all the message on a queue is removed after certain time if the queue is non-persistent?
Joined: 22 May 2001 Posts: 1072 Location: Fort Worth, TX, USA
When you ask about history, this is commonly called "auditing". Unfortunately there is no such facility in MQSeries to handle auditing of messages. It would be possible to log messages that arrive from remote systems but their fate once put on a queue would be unknown.
A common misconception is that a queue can be persistent or non-persistent. This is in fact not an MQSeries concept. A message can be persistent or non-persistent. A queue can be configured such that if a message does not specify, it will be given a default persistence as described by the queue attribute.
Each MQSeries message can have an associated expiry interval. This is an interval in 1/10th second units after which the message will self destruct. There is nothing in basic MQSeries that says that at a given time, all non-persistent messages should be deleted but this would be a trivial program to be written which would browse the queue and located (and then delete) all non-persistent messages. Such a program could be executed at a specified time.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum