Progress
ADM 2 Guide


Initializing the SmartDataObject

When the AppBuilder generates a SmartContainer, it produces calls to the constructObject method for each contained SmartObject. This method launches the contained SmartObject by running it persistently. If a contained SmartObject is a database-aware SmartDataObject, the AppBuilder appends the DB–AWARE keyword to the SmartDataObject’s name, separated by a CHR(3) character. This serves as a flag to the constructObject method in the containing SmartObject to check the connected databases at run time and determine whether to run the complete SmartDataObject or its proxy.

The constructObject method determines whether to run the complete SmartDataObject or its proxy based on whether all necessary databases are currently connected when the SmartDataObject is about to be executed. If they are, constructObject launches the complete SmartDataObject. If any of the required databases are not connected, constructObject runs the client proxy instead. The proxy then makes the proper AppServer connection to the complete SmartDataObject that is its sibling, based on the partition indicated in its instance attributes setting.


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