-
MSMQ Questions
Having never really used MSMQ, but know what it is - I believe that I will be using this for something in the very near future.
I am reading up upon it and its great. But do have some questions.
I will have a Windows Service system which will send messages through MSMQ.
I will have another Windows Service, located elsewhere physically on a network or maybe a different network altogether, which will listen for these messages.
The type of messages I will be sending is probably going to be various different types of classes, depending upon some business logic. For example we can have the following classes: CarBody, Wheels, Engine, Doors, Windows, SideMirrors.
Now as for the receiver, how will it know what type of message it will be receiving? It wouldn't so what is the best way to find this out and to be able to construct the message into the correct type of class, and based upon that do some other processing in its business logic?
Second Question: Catching failure of delivery and retries
how is it possible to know if sending a message has failed (either by network going down OR the receiver has not received it successfully) and if it has, to be able to retry sending it x amount of times? if it still fails then is there a way in MSMQ to store the entire message content in the DB, waiting for the next time to send it? Or would I need to simply take the Body content and store it in the DB myself and handle this area?