Chapter 2 Working with the AI Component Builder


Understanding AI Component Deployment

Once you have defined a component with one or more methods, you can deploy it to Jaguar, where it can then be used in Jaguar client applications.

This section includes the following topics:

Understanding the Deployment Wizard

The Component Builder provides a wizard that makes it easy to deploy components. The wizard performs the following functions:

When you deploy a component into Jaguar, you must provide the information described in the following table:

Table 2-7: Information needed by the Deploy Components wizard

Wizard dialog box

Field

Description

Jaguar connection information

User Name

Valid Jaguar user ID.

Password

Valid password for Jaguar user ID.

Host Name

Name of the machine on which Jaguar is running.

Note   Be sure that Jaguar is running.

Port Number

Number of the IIOP port on which Jaguar is listening.

Jaguar package information

Package Name

The package name currently selected for this component. Enter a new name, accept the selected name, or select a different name from the Existing Packages field.

Existing Packages

The list of package names currently available. Click a package name to select the package.

Note   Jaguar system packages (such as CosNaming) are not displayed.

After you provide the information needed by the wizard, the Deployment Progress window shows the status of component deployment. If deployment is not successful, use the messages that appear in the Deployment Progress window to troubleshoot errors.

Note   For each Jaguar server you deploy components into, the first time you deploy a component, a message indicates that the feature for deploying components is not yet installed in the Jaguar server. Click OK to install this feature.

Understanding Deployed Components in Jaguar

Each AI for Stored Procedures component built and deployed to Jaguar consists of a set of Java classes that work with the AI for Stored Procedures Adapter.

The Adapter is a library of classes that provide access to server stored procedures and statements using JDBC drivers. The Adapter also provides security, transaction control, datatype conversion, and error handling integration.

For each component that is deployed, AI for Stored Procedures creates (or modifies, if one already exists) the following items on the Jaguar server:

When components are deployed into Jaguar, the following occurs:

  1. The Jaguar package and IDL module are created only if they do not already exist.
  2. The Application Integrator deployment feature creates implementation files and stores them in the <jaguar_install_dir>\java\classes directory.
  3. The component connection is created in a file named connection_name.ser in the <jaguar_install_dir>\java\classes\SybAiConnections directory.
  4. The Application Integrator component definition is added to the Jaguar repository. Application Integrator components also include a collection of user-defined Jaguar properties, which allow you to configure additional properties for the component, such as debugging and connection caching.
    If the properties need to be changed, you can edit them in Jaguar Manager. See Chapter 3, "Jaguar and Application Issues" for details.

Understanding Deployed Connections in Jaguar

When you deploy a component into Jaguar, the Component Builder also deploys the connection that is associated with the component.

When a component is deployed into Jaguar, the information for the component's connection is sent to Jaguar in the form of a serialized file, which is located in the Jaguar installation directory structure (in the <jaguar_install_dir>\ java\classes\SybAIConnections directory).
If you need to change connection information for a component, you must edit the connection in the Component Builder, and then redeploy the component and connection.

 


Copyright © 1999 Sybase, Inc. All rights reserved.