none
QUEUE Data Lost on VMS reboot - but recoverable=true RRS feed

  • Question

  • When security patches are installed and our VMS is booted, the queue data is lost.

    However the documentation says if the messages are marked as recoverable we should be safe.  But we are not.

    Could there be a difference between a regular server and a VMS and is there anything we can do to protect the queue ?

     TimeSpan Ts = new TimeSpan(1600, 0, 0);  // 66 days
                    MessageQueue myQueue = new MessageQueue(theQue);
                    myQueue.DefaultPropertiesToSend.Recoverable = true; // 4/16/2019  protect from server reboots
                    System.Messaging.Message m = new Message();
                    m.Label = labelID;

    Thanks !!!


    andrew

    Monday, September 16, 2019 6:21 PM

All replies

  • The answer to this is :  ( set this property on the message ) rather than the queue property.  

    System.Messaging.Message m = new Message();
                    m.Recoverable = true;

    Supposedly https://docs.microsoft.com/en-us/dotnet/api/system.messaging.defaultpropertiestosend?view=netframework-4.8  claims that   MessageQueue myQueue = new MessageQueue(theQue);  myQueue.DefaultPropertiesToSend.Recoverable = true  sets the default for all messages unless over ridden,

    but in testing this simply wasnt so.  Fortunately the setting on  the individual message does work !

    Thursday, January 2, 2020 3:01 PM