Chapter 1 Creating Component-Based Applications


Implementing components and clients

With the design in place, your component developers and client developers can begin implementing the clients and components that form the application.

Implementing components

To create a Java-CORBA or EJB component, use PowerJ or another Java development tool to create the Java component. From PowerJ you can import the Java component definitions into EAServer, and deploy the Java component to EAServer. If using another development tool, you must perform these tasks with Jaguar Manager.

Note   Bytecode must be compatible with the EAServer VM If you use a Java development tool, make sure that it compiles bytecode that is compatible with the JDK used in your deployment server.

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 in your EAServer installation.

To create an ActiveX component, use an ActiveX-enabled IDE to create the ActiveX component DLL, import the ActiveX definitions for the component into EAServer, and install the ActiveX component.

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 Chapter 7, "Creating Enterprise JavaBeans Components"
Java-CORBA Chapter 11, "Creating CORBA Java Components"
CORBA C++ Chapter 14, "Creating CORBA C++ Components"
ActiveX Chapter 17, "Creating ActiveX Components"
C Appendix D, "Creating C Components"

Design and implement the clients

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 EAServer 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 Web client 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 and a richer user interface.

To learn how to create PowerBuilder clients, see the PowerBuilder Application Techniques manual. For details on on types of clients, see these chapters:

Type of client Chapter
Java Chapter 8, "Creating Enterprise JavaBeans Clients"

Chapter 12, "Creating CORBA Java Clients"

Appendix C, "Creating EAServer 1.1 Java Clients"
C++ Chapter 15, "Creating CORBA C++ Clients"
ActiveX Chapter 18, "Creating ActiveX Clients"
MASP Appendix A, "Executing Methods As Stored Procedures"

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 © 2002 Sybase, Inc. All rights reserved.