Midware TServerObject.Finish
Main page -> Midware component reference -> TServerObject -> Finish
Definition
procedure Finish; virtual;
Description
The server object MUST call this method to signal the ORB (Object Request Broker, TRequestBroker component) that the server's object work is done and the response is ready to be sent to the client. You can call Finish just before returning from the Execute method, or at some later moment if the server object continue processing in the background after the Execute method has returned control back to the ORB (this means you have written an event driven server object or a multi-threaded server object). While Execute method code runs, no other client is serviced. If the processing is long, you probably wants to start a thread to do the processing in the background and call Finish method at a later time, or wants to write a fully event-driven server object which works by sending messages.