Chapter 2 Creating Component-Based Applications
With the design in place, your component developers and client developers can begin implementing the clients and components that form the application.
To create a Java-CORBA or EJB component, use PowerJ or another JDK-1.1 compatible development tool to create the Java component. From PowerJ you can import the Java component definitions into Jaguar, and deploy the Java component on the Jaguar server. If using another development tool, you must perform these tasks with Jaguar Manager.
Bytecode must be compatible with the JDK 1.1 VM If you use a Java development tool, make sure that it compiles bytecode that is compatible with the JDK 1.1 virtual machine (VM).
To create a C or C++ component, generate skeletons using Jaguar Manager, code the method bodies in the method implementation templates, and compile and install the C DLL on the Jaguar server.
To create an ActiveX component, use an ActiveX-enabled IDE to create the ActiveX component DLL, import the ActiveX definitions for the component into Jaguar, and install the ActiveX component on the Jaguar server.
To learn how to develop PowerBuilder components, see the PowerBuilder documentation. To learn how to build other types of components, see these chapters:
Type of component |
Chapter |
---|---|
EJB |
|
Java-CORBA |
|
CORBA C++ |
|
ActiveX |
|
C |
Client developers can work concurrently with component developers. To allow prototyping and testing of client programs, you may want to create a client test server that hosts stubbed versions of the application components (that is, components with minimal method implementations).
Choose Client Types Before creating client programs, decide which of the following Jaguar client models best suits your needs, based on your preferred implementation languages and administrative requirements:
In some situations, you might want to implement different versions of a client for different users. For example, you may implement a Java applet version to allow new customers to connect over the Internet without installing a client program. For established customers who use the application heavily, you can implement a standalone client program that offers improved performance.
To learn how to create PowerBuilder clients, see the PowerBuilder documentation. For details on on types of clients, see these chapters:
Type of client |
Chapter |
---|---|
Java |
Chapter 9, "Creating Enterprise JavaBean Clients" Chapter 13, "Creating CORBA-Compatible Java Clients" |
C++ |
|
ActiveX |
|
MASP |
Client Design Issues In designing your client, plan to optimize network performance by keeping traffic between the client and components on the server to a minimum. To optimize network performance, plan to:
Copyright © 2000 Sybase, Inc. All rights reserved. |