
Chapter 3 EAServer Components
Overview
EAServer components contain the methods that execute business
logic and access data sources. 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.
Server-side component support
EAServer provides support for several major component models, including:
Client stub and proxy support
Applications
invoke an EAServer component using a stub or proxy object. The stub
or proxy acts as a local surrogate for the remote component; it
provides the same method signatures as the component and hides the
details of remote server communication. Stubs and proxies are available
for:
- Java (CORBA and EJB) Any component can be invoked
via a Java stub class. EAServer Manager generates source code for
Java stubs. At runtime, your client program instantiates the stub.
When you call methods on the stub class, the stub transparently
invokes the component method on EAServer. You can also create Java
servlets or JavaServer pages that run in EAServer and call components.
Using this model, you can create "zero-install" applications.
With EAServer's built-in HTTP support, these applications
have no client-machine installation requirements other than the
presence of a Web browser. You can add additional interactive functionality
to browser-based clients using Java applets that run in the browser.
EAServer supports three Java client models:
- EJB Your program uses the EJB (javax.ejb) classes
and EAServer's EJB stubs to call EAServer component methods.
This client model follows the EJB 2.0 Specification and is backward
compatible with the EJB 1.1 and 1.0 specifications. Chapter
8, "Creating Enterprise JavaBeans Clients," in
the EAServer Programmer's Guide describes how
to implement EJB clients.
- CORBA-Java Your program uses EAServer's CORBA-compliant Java
ORB or any other CORBA-compliant Java ORB to instantiate stubs.
Stub method signatures are mapped from the component's interface
definition, based on the CORBA specification of IDL-Java language
bindings. Chapter
12, "Creating CORBA Java Clients," in the EAServer
Programmer's Guide describes how to implement CORBA-Java
clients.
- PowerBuilder PowerBuilder 7.0 or later allows you to generate NVOs that
act as proxies for EAServer components. Using a proxy, you can call component
methods as if they were implemented as local NVO methods. See the Application
Techniques manual included in the PowerBuilder documentation for
more information.
- C++ (CORBA) Your program
uses EAServer's CORBA-compliant C++ ORB
or any other CORBA-compliant C++ ORB to instantiate
stubs. Stub method signatures are mapped from the component's
interface definition, based on the CORBA specification of IDL-C++ language
bindings. Chapter
15, "Creating CORBA C++ Clients," in
the EAServer Programmer's Guide describes
how to implement C++ clients.
- ActiveX Your program
invokes EAServer components using EAServer's ActiveX proxy.
The ActiveX proxy allows you to invoke EAServer components from
ActiveX-enabled visual builder tools such as Microsoft Visual Basic.
Used on the server, the ActiveX proxy allows you to invoke any EAServer
component from an ActiveX component. EAServer Manager generates
the type-library information that is required to register the component
interface with your development tool. The ActiveX proxy uses the
EAServer C++ client ORB to communicate with EAServer. Chapter
20, "Creating ActiveX Clients," in the EAServer
Programmer's Guide describes how to use the
ActiveX proxy.
- Methods As Stored Procedures (MASP) EAServer provides a built-in interface that allows you to
execute component methods as if they were stored procedures in an
Adaptive Server Enterprise database. You can use this interface
to call EAServer components from scripting and user-interface-builder
tools that are database-aware but that do not support ActiveX. Appendix
A, "Executing Methods As Stored Procedures," in
the EAServer Programmer's Guide describes
how to use this client interface.
CORBA
CORBA is a distributed component architecture defined by the
Object Management Group (OMG). EAServer supports the CORBA IIOP.
For information on the CORBA architecture, see the specifications
available at the OMG Web site
.
|
Copyright (C) 2004. Sybase Inc. All rights reserved.
|
|