Chapter 1 Introduction to Jaguar CTS


Terminology and concepts

This section explains some of the basic concepts and terminology associated with developing component-based Jaguar applications in a three-tier environment. It is intended primarily to provide you with enough information to complete the tutorials and begin using Jaguar Manager. For detailed information on Jaguar application development, see the Jaguar CTS Programmer's Guide.

Terminology

A Jaguar application consists of one or more packages and a client application or applet. Packages consist of components, and components are made up of one or more methods.

Concepts

You can develop and distribute a Jaguar application across the network.

Jaguar CTS implements a three-tier or multitier distributed computing architecture. In this model, three distinct elements work together to give users access to data:

Java applets are downloaded to clients, which instantiate components on the server. Client applications are installed on client machines, from which they also instantiate components on the server.

An applet or application manages presentation and interaction with an end user. Middle-tier components, which run in Jaguar CTS, handle much of the application processing. Finally, the database stores, manages, and processes data.

If the client is an applet, users find and launch applications from traditional HTML pages. Instead of simply loading a static page, Jaguar downloads an executable applet to the individual's browser. If the client is an already-installed application, the user launches the application from his or her machine. Clients communicate directly with an application component running in the middle tier. Server components access data from one or more databases, apply business logic, and return results to the client applet for display.

When a proxy object is created on the client applet, it instantiates a corresponding component registered with the Jaguar server. On the server side, a component is instantiated in response to a request from the proxy object running in the client environment. A method on a component is executed when it is invoked by a proxy object on the client applet.

Developing a Jaguar application

There are three basic steps involved in creating and deploying a Jaguar application that employs a Java applet as a client. For information on other types of Jaguar clients, see the Jaguar CTS Programmer's Guide.

Steps To create and deploy a Jaguar application:

  1. Define packages, components, and methods. The Jaguar Manager is Jaguar's GUI interface that allows you to easily define the packages, components, and methods that Jaguar clients use to run an application. Jaguar Manager generates:

  2. Once you have generated the stubs and skeletons, write the Java classes that, once linked with the stub files, form the basis of your downloadable applet.

    Develop the server-side components that link with the skeletons to form the business logic of your servlet. Jaguar supports many of the integrated development environment (IDE) tools available today.

  3. Deploy the application. You can register components on any Jaguar server. Because Jaguar CTS is also a Web server, you can write an HTML page for your applet and install it on Jaguar.


Jaguar runtime environment

A typical Jaguar application has an applet or HTML page associated with it. Once you build and deploy such an application, it runs in the following fashion:

  1. Jaguar receives an HTTP request and downloads the requested HTML page or applet. Included with the applet are the Java stubs, which through a proxy, instantiate components and invoke the methods on those components.
  2. The client establishes a session with Jaguar. The session, unlike an HTTP connection, allows the client and Jaguar to maintain a connection throughout the transaction.
  3. The client creates a component instance through a client-side proxy. The proxy used depends on the type of component being instantiated. Jaguar validates the user against the component's access list. If the user is validated, the dispatcher checks the location and status of the component and creates an instance.
  4. The client invokes the component's business logic by executing its methods.
  5. The component may interact with remote databases. If it does:
  6. Jaguar returns the results from the database to the client.
  7. The client indicates that it has completed the operation. Jaguar destroys the component instance or returns it to a pool for future client instantiations. The client disconnects from Jaguar.

 


Copyright © 2000 Sybase, Inc. All rights reserved.