MSMQ-Life of Messages...

  • Thread starter Thread starter Raj
  • Start date Start date
R

Raj

After I create some messages ... and after a while those messages
automatically disappear from the queue. What is the lifetime of messages in a
queue? Is it possible to persist messages in a queue as long as it is read??

Thank you

Regards
Raj
 
Raj said:
After I create some messages ... and after a while those messages
automatically disappear from the queue. What is the lifetime of messages
in a
queue? Is it possible to persist messages in a queue as long as it is
read??

Thank you

Regards
Raj

You need to read up on configuring message queues.
When you create one you configure stuff like that.
 
Hi

The lifetime of a message is set in two ways
1 A global default in the registry or A
2 Within the application by the developer

Default is 4 days to be delivered to a queue and unlimited for how long a message stays in a queue once delivered

Note that restarting the MSMQ service on the queue host will purge any EXPRESS messages

Check this blog post
"Where have my MSMQ messages gone?"
http://blogs.msdn.com/johnbreakwell/archive/2010/01/22/why-does-msmq-keep-losing-my-messages.asp

Cheer
John Breakwell (MSFT
http://blogs.msdn.com/johnbreakwell/
 
Hi,

The lifetime of a message is set in two ways:
1 A global default in the registry or AD
2 Within the application by the developer.

Default is 4 days to be delivered to a queue and unlimited for how long a
message stays in a queue once delivered.

Note that restarting the MSMQ service on the queue host will purge any
EXPRESS messages.

Check this blog post:
"Where have my MSMQ messages gone?"
http://blogs.msdn.com/johnbreakwell/archive/2010/01/22/why-does-msmq-keep-losing-my-messages.aspx

Cheers
John Breakwell (MSFT)
http://blogs.msdn.com/johnbreakwell/
 
But the messages I have created yesterday and today have disappeared. Only
messages created few seconds ago are there in the queue!

Any clues?

Thank you

Regards
Raj
 
Hi Raj,

1 Enable "Negative Source Journaling".
http://technet.microsoft.com/en-us/library/cc739818(WS.10).aspx
If a message is deleted by MSMQ (because of a timeout, for example) it will
appear in the sender's Dead Letter Queue or Transactional Dead Letter Queue
(as appropriate).

2 Enable "Target Journaling".
http://technet.microsoft.com/en-us/library/cc739507(WS.10).aspx
If a message has been read by an application it will appear in the
destination's journal queue.

Cheers
John Breakwell (MSFT)
 
Back
Top