Chapter 1 Introducing Jaguar CTS
Component support
Components
are reusable modules of code that combine related tasks (methods)
into a well-defined interface. Jaguar components are installed on
a Jaguar server and contain the methods that execute business logic
and access data sources. You or your administrator install the component's
executable code on the Jaguar server. Components can be distributed
throughout a network, including the Internet or an intranet, on
different servers. Installed components can be used by any number
of independent applications.
Since Jaguar components reside on the server, components do
not contain methods to display graphics or user interfaces--that
is, Jaguar components are inherently nonvisual.
User-interface developers or other component developers can
browse a component's interface in Jaguar Manager; in their
code, they use a client stub or proxy to invoke the component's
methods. The stub or proxy acts as a local surrogate for the remote
component, providing the same method signatures as the component
and hiding the details of remote server communication.
Jaguar's server-side component support and client-side
stub or proxy support are independent. Any Jaguar 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. Additionally, since Jaguar uses standard CORBA
IIOP as its core network protocol, you can use CORBA client runtimes
from other vendors to invoke components installed on a Jaguar server.
All clients and components share a common interface repository.
Component interfaces are stored in standard CORBA Interface Definition
Language (IDL). Component developers can define, edit, and browse
interfaces in Jaguar Manager. Jaguar Manager allows you to edit
interfaces graphically or as raw IDL. Interfaces can also be defined
by importing compiled Java classes, standard-format EJB-JAR files,
or ActiveX type libraries.
Server-side component support
Jaguar provides support for several major component models,
including:
Client stub/proxy support
Applications
invoke a Jaguar 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 the Jaguar server. Using HTML pages,
Java applets, and Jaguar'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.
Jaguar supports three Java client models:
- EJB Your program uses the JavaSoft EJB (javax.ejb)
classes and Jaguar's EJB stubs to call Jaguar component
methods. This client model follows the EJB 1.1 Specification and
is backward compatible with the EJB 1.0 specification. Chapter 9, "Creating Enterprise JavaBean Clients", describes how to implement
EJB clients.
- Java-CORBA Your program uses Jaguar'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 13, "Creating CORBA-Compatible Java Clients", describes how to implement
CORBA-Java clients.
- Jaguar 1.1 Your program uses the Java client interface that was defined
in Jaguar version 1.1. This interface is obsolete but is provided
for backward compatibility with Java clients that were developed
for Jaguar 1.1. See Appendix C, "Creating Jaguar 1.1 Java Clients", for more information.
- PowerBuilder PowerBuilder 7.0 or later allows you to generate NVOs that
act as proxies for Jaguar components. Using the 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 Jaguar'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 17, "Creating CORBA C++ Clients",
describes how to implement C++ clients.
- ActiveX Your program
invokes Jaguar components using Jaguar's ActiveX proxy.
The ActiveX proxy allows you to invoke Jaguar components from ActiveX-enabled
visual builder tools such as Microsoft Visual Basic. Used on the
server, the ActiveX proxy allows you to invoke any Jaguar 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 Jaguar C++ client
ORB to communicate with Jaguar servers. Chapter 20, "Creating ActiveX Clients", describes how to use the ActiveX proxy.
- Methods As Stored Procedures (MASP) Jaguar provides a built-in interface that allows you to execute
component methods as if they were stored procedures in a Sybase
Adaptive Server Enterprise database. This interface can
be used to call Jaguar 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", describes how to use
this client interface.
Copyright © 2000 Sybase, Inc. All rights reserved.
|
|