Using SmartDataObjects
from an Open Client using AppServer in Version 10
Updated June 16, 1999
For information on using SmartDataObjects
from an open client, see the Open Client Developer's Guide.
This file (example.htm) describes
the example code contained in <PROGRESS-Install-Dir>\samples\open4gl\java\SmartDataObject.
An Example of Java access to SDOs using
the SDOResultSet interface (in version 9.1 and higher)
4gl
-
CustSDO.w and CustSDO.i - The SDO.
Note that CustSDO_cl.w is not
included since you should typically use the version of the SDO that accesses
the database directly.
jclient91
-
SDOApp1.java - A Java example
for using the SDO.
-
The output file contains the results
of running SDOapp1
Using the Examples
We recommend using the code example
as follows:
-
Get familiar with basic concepts of
Smart Data Objects.
-
Review runSDO.p or runServerSDO.p
to understand the: initializeObject(), openQuery() serverSendRows()
and serverCommit() methods.
Running the Examples
If you want to run the example
you must do the following:
On a server machine:
-
Set up the Name Server and broker
according to the book
Building Distributed Applications
Using the PROGRESS AppServer.
Make sure it supports the default service "asbroker1".
-
Copy CustSDO.w and CustSDO.i to the
server machine where it can be found on the Propath. It will get compiled
on the fly.
-
Start a database server for sports
and set "srvrStartupParam=-db sports" under UBroker.AS.asbroker1 in your
ubroker.properties file.