Progress
ADM 2 Guide


Running SmartDataObjects in a Distributed Environment

The SmartDataObject supports distributed computing. You can run a SmartDataObject in a distributed environment using either the traditional client/server model or the AppServer model:

Regardless of how you will deploy your SmartDataObject, you need to build it only once and maintain a single set of source code. This is because when you build a SmartDataObject, you use conditional preprocessor statements that identify code sections requiring database access and enable compiling the SmartDataObject into two versions:

NOTE: You need to compile conditionally into database-aware and nondatabase-aware versions only if your SmartDataObject will run in a distributed environment using the AppServer model. This is because it is the only configuration in which the SmartDataObject is split into database-aware and nondatabase-aware versions.

The following sections describe how to set up the master (.w file) for your SmartDataObject so that it will compile conditionally into database-aware and non-database-aware versions, how the AppBuilder modifies the master, and what happens when the SmartDataObject is initialized in an application.


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