Progress
Open Client
Developer’s Guide


Methods For Thread Control

The AppServer can be accessed from a multi-threaded client. However, the AppServer itself is not multi-threaded. As a result, only one request is serviced at a time. If a method call is made from the client while another one is still running on the AppServer, the application can decide which of the following should happen:

The application can set the run-time properties to do either and can switch the setting at any time. The default is to throw an Exception.

These methods provide thread control to the Open Client Runtime:

SYNTAX
RunTimeProperties.setWaitIfBusy() 

Waits until all currently executing AppServer requests are complete before executing this request.

SYNTAX
RunTimeProperties.setNoWaitIfBusy() 

Do not wait for a currently executing AppServer request to finish. Instead throw an exception for any AppServer request that was made while the AppServer was executing another request.

SYNTAX
Boolean RunTimeProperties.getWaitIfBusy() 

Checks the thread control setting to determine if WaitIfBusy state is set or cleared. Returns TRUE if setWaitIfBusy() was called and FALSE if setNoWaitIfBusy() was called.


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095