Dispatching a method

After SOMOA (with the help of the local server object) has resolved all the SOMDObjects present in a request, it is ready to invoke the specified method on the target. Rather than invoking somDispatch directly on the target, it calls the somdDispatchMethod method on the server object. The parameters to somdDispatchMethod are the same as the parameters for SOMObject::somDispatch (see the SOMobjects Developer Toolkit: Programmers Reference Manual for a complete description).

The default implementation for somdDispatchMethod in SOMServer simply invokes SOMObject::somDispatch on the specified target object with the supplied arguments. The reason for this indirection through the server object is to give the server object a chance to intercept method calls coming into the server process, if desired.


[Back: Mapping object references to objects]
[Next: Example: Writing a persistent object server]