4.2 Server Retrieving and Processing a Message

A typical sequence of events for a COMQC server is as follows.

Server-side exchange

Figure 8: Server-side exchange

The COMQC server is notified by MSMQ that a message arrived. The server receives the message from MSMQ and validates it.

The server sets up the security context that was specified in the message.

The server unmarshals the parameters of the first method call, looks up the target ID in its object table to find the target object, and locally calls the specified method on the target object.

The server repeats the previous two steps for each method that is stored in the message.

After the last call has finished, all state relevant to the message is freed. This concludes the exchange.