Chapter 7 Using Adaptive Server Anywhere with EAServer
To build applications that access Adaptive Server Anywhere database, you must first create components and clients.
EAServer applications are composed of clients, and the server that hosts components. Clients can run on different machines; the components execute on the server machine as part of the EAServer process. Some components, in turn, connect to databases, such as Adaptive Server Anywhere, on other machines.
You can create Java/EJB, C++ (CORBA), C, PowerBuilder, and ActiveX components. You use any development tool that supports the type of component you are creating.
Creating components
After deploying components, you create a client that executes the methods in the components. You can create PowerBuilder, Java (CORBA and Enterprise JavaBeans), C++ (CORBA), ActiveX, MASP, and PowerDynamo clients.
In the client code, you use a client stub or proxy to invoke a component's methods. Stubs and ActiveX proxy interfaces contain the method prototypes that you include in your client source files and network marshalling code. After you have developed and compiled your client, it performs method calls across the network to EAServer and executes the corresponding component methods.
EAServer's server-side component support and client-side stub or proxy support are independent. Any EAServer client can execute any type of component. A component of any model can execute components of another model using intercomponent calls without the use of additional gateway software.
All clients and components share a common interface repository. Component interfaces are stored in standard CORBA interface definition language (IDL). Component developers can use Jaguar Manager to define, edit, and browse the interface definitions.
Creating EAServer clients
For detailed information on creating components and clients, see the EAServer Programmer's Guide.
Copyright © 2002 Sybase, Inc. All rights reserved. |
![]() |