|
Mastering PowerBuilder Building Distributed PowerBuilder Applications
In this demo, we are going to build client and server applications. The client will use proxy object to retrieve data from and update data in the database server instead of connecting to the database server directly. For the server application we will create objects to send data to the requested client and also a connection monitor. The following lists the steps we need to follow to create a distributed PowerBuilder application.
- Define custom class user objects in the client app
- Set Proxy name for each custom class user object
- Move/Copy custom classes into the server library and keep the proxy objects in the client app
- Define and create a connection object in the client app and connect to the server app using connection object
- Instantiate the proxy object and make calls to methods
- Build the Server application in a separate library
- Define and create a transport object in the server app and let the transport object start listening to the client requests
- Write scripts to the ConnectionBegin and ConnectEnd events in the server applications
- Build user interface to set the server startup options
- Build user interface to monitor client connections and manage them
|