
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. Jaguar 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. Using HTML pages, Java
applets, and EAServer's built-in HTTP support, you can
create "zero-install" applications that have no client-machine
installation requirements other than the presence of a Java-capable
Web 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. "Creating
Enterprise JavaBean 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. "Creating CORBA-Compatible Java Clients" in the EAServer
Programmer's Guide describes how to implement CORBA-Java
clients.
- EAServer 1.1 Your program uses the Java client interface that was defined
in EAServer version 1.1. This interface is obsolete but is provided
for backward compatibility with Java clients that were developed
for EAServer 1.1. See "Creating EAServer 1.1 Java Clients" in
the EAServer Programmer's Guide for
more information.
- 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
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. "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. Jaguar 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. "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. "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 © 2002 Sybase, Inc. All rights reserved.
|
|