我用MSMQ传出消息到队列,如果未处理重启系统(win2000)后队列中的数据会丢失
请问有什么办法解决吗
请教,谢谢!

解决方案 »

  1.   

    MSMQMessage.Delivery
    The Delivery property of the MSMQMessage object specifies how Message Queuing delivers the message.Data type: Long 
    Run-time access: Read/write 
    Property Delivery As Long
    Property Value
    The Delivery property can have one of the following values: MQMSG_DELIVERY_RECOVERABLE 
    In every hop along its route, the message is stored locally on disk until it is forwarded to the next computer. This guarantees delivery even in the case of a computer crash. When the message is placed in the destination queue, it is written to disk in a memory-mapped file. 
    MQMSG_DELIVERY_EXPRESS 
    The default. The message stays in volatile memory along its entire route until it is received. The message is not recovered if the computer where the message resides is rebooted. An express message delivered to a queue on a virtual server in a cluster will be lost if the virtual server fails over before the message is received.