Midware TServerObject.Finish

From Overbyte
Revision as of 14:17, 9 May 2011 by Marie (talk | contribs) (Created page with ' Main page -> Midware component reference -> TServerObject -> [[Midware_TServerObject.Finish | Finish]…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.