In most regards, creating a multi-tiered client application is similar to creating a two-tiered client that uses a client dataset to cache updates. The major difference is that a multi-tiered client uses a connection component to establish a conduit to the application server.
To create a multi-tiered client application
- Add a new data module to the project.
- Place a connection component on the data module. The type of connection component you add depends on the communication protocol you want to use. See The Structure of the Client Application for details.
- Set properties on your connection component to specify the application server with which it should establish a connection. To learn more about setting up the connection component, see Connecting to the Application Server.
- Set the other connection component properties as needed for your application. For example, you might set the ObjectBroker property to allow the connection component to choose dynamically from several servers. For more information about using the connection components, see Managing Server Connections.
- Place as many TClientDataSet components as needed on the data module, and set the RemoteServer property for each component to the name of the connection component you placed in Step 2. For a full introduction to client datasets, see Using Client Datasets.
- Set the ProviderName property for each TClientDataSet component. If your connection component is connected to the application server at design time, you can choose available application server providers from the ProviderName property's drop-down list.
- Continue in the same way you would create any other database application. There are a few additional features available to clients of multi-tiered applications: