MSMQ-Life of Messages...

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
 
A

Andy O'Neill

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.
 
J

JohnBrea

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/
 
J

John Breakwell

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/
 
R

Raj

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
 
J

John Breakwell

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top