Tutorial of Distributed Computing.


Project: JBuilder Tutorial
Author: Jens Ole Lauridsen
Company: Borland Int'l

Description: Tutorial of Distributed Computing using RMI and DataSetData.

This is an example of usage of the DataSetData class.
The example will also show how to write customized Providers and Resolvers.

Setup

What is going on

The DataServerApp is registering itself as a service for RMI. It will respond to 2 inquiries: provideEmployeeData and resolveEmployeeChanges as defined in EmployeeApi.java. Both these methods are implemented in DataServerApp.java.

The ClientApp is simply a frame with a Grid, a Navigator, and a TableDataSet. The dataSet has a custom Provider and a custom Resolver attached. The Provider will get the data from the DataServerApp and the Resolver will similarily use the DataServerApp to resolve the changes back to the database. This is a multi tier solution.

What kind of metadata is passed by DataSetData.

The metadata passed in a DataSetData object is very limited.
Only the following Column properties are passed:

If there are other column properties, that a server should pass to client application, the server could pass an array of Column's via RMI. The Column object itself is serializable. A client application could be designed to get these column properties before it needed the data. The columns should be added as persistent columns before the DataSetData is loaded.

How to modify the application to a 3 tier application.

How do I get more information.