About building an EAServer client
A PowerBuilder application can act as a client to an EAServer component. To access a
method associated with a component on the server, the PowerBuilder
client needs to connect to the server, instantiate the component,
and invoke the component method.
In general, you use an instance of a Connection object to
connect to EAServer. If you want
to create a CORBA-compatible client, you can use the JaguarORB object
to establish the connection to the server. By using the JaguarORB
object, a PowerBuilder client can access EAServer in
the same way that a C++ client would.
You can use the techniques described in this chapter to build
clients for EJB components running in EAServer.
For information about building a client for EJB components on EAServer and other J2EE-compliant servers,
see Chapter 29, “Building an EJB client .”
About using the wizards
PowerBuilder provides two wizards to facilitate the development
of EAServer clients:
- Connection
Object wizard Adds code required to connect to the server - EAServer Proxy
wizard Helps you create projects for building proxy objects for
the EAServer components you want
to access from the client
About the development process
Steps for building an EAServer client
To build and deploy an EAServer client,
you need to complete the following steps:
- Use the EAServer Connection
Object Wizard to create a standard class user object inherited from
the Connection object. You can then use this object in a script
to establish a connection.
If you use the Template Application Start Wizard to create
the client application, you can create the Connection object in
that wizard. - Use the EAServer Proxy
Wizard to create a project for building proxy objects. Then generate
the proxy objects. - Create the windows, menus, and scripts required
to implement the user interface. - Write the code required to create the EAServer component instance and call
one or more component methods from the client. - Test and debug the client.
- Deploy the application.