1

I use MSMQ through WCF to store messages in private queue. (private queue hosted by Windows Server 2003). Messages are stored only for 24 hours and automatically removed from queue, somebody know why?

Kara
  • 6,115
  • 16
  • 50
  • 57
fred
  • 21
  • 1
  • 4

2 Answers2

2

Maybe the messages have an expiry set? See Message.TimeToBeReceived property.

Kieron
  • 26,748
  • 16
  • 78
  • 122
Richard
  • 106,783
  • 21
  • 203
  • 265
1

Because the default value of timeToLive is for one day, for custom expiration, set the timeToLive property of netMsmqBinding.

Jack
  • 10,943
  • 13
  • 50
  • 65
Sachin
  • 11
  • 1