Chapter 4 Managing Applications and Packages in Jaguar Manager
In Jaguar Manager, Applications allow you to group related packages and Web applications into a single entity. In this way, you can deploy related business logic components, Web application components, and Web pages as a single unit between servers. For information on Packages and Web applications, see:
Jaguar Manager allows you to import applications that have been archived in the standard J2EE Enterprise Archive (EAR) file format. You can also export an application from Jaguar Manager in this format.
A future Jaguar version will allow you to define and configure standalone Java clients within an application, as specified by Sun's J2EE Specification.
J2EE application deployment from PowerJ PowerJ provides an integrated environment for developing EJB 1.1 components, Java Servlets, JSPs, and Web applications and deploying them to Jaguar as a J2EE application. See the EAServer Feature Guide for more information on using PowerJ with Jaguar.
You can applications manually or by importing an EAR file. An application must be installed in a Jaguar server before its EJBs, servlets, or JSPs can run on that server.
To create an application manually
To install a package
You can only install a package in one application. Once a package is installed in an application, it cannot be installed directly in a server. Install a package in your application as follows:
To install a Web application
You can only install a Web application in one application. Once a Web application is installed an application, it cannot be installed directly in a server. Install a Web application in your application as follows:
To install an application in a server
You must install your application in a server before the server's clients can call the application's components, servlets, and JSPs. Install your application as follows:
To display an application's properties, highlight the application's icon, then choose File | Application Properties. You can configure the settings described below in the Application Properties dialog box that displays.
You can enter optional text in the Description field to document your application.
These settings map role names used in the application's packages and Web applications to role names that exist in Jaguar Manager.
To map a J2EE role to a Jaguar role:
For advanced users only. The All Properties tab allows you to hand edit property settings in the Jaguar configuration repository. Properties are listed in the documentation for the Jaguar::Repository IDL interface, in the description of the define method. Any property prefixed with "com.sybase.jaguar.application" can be set on this tab.
You can export applications from Jaguar Manager to deploy them on another server. Jaguar supports two archive formats for applications:
Consider synchronization instead of archives If you are deploying between Jaguar servers, you may find synchronization easier than exporting and importing archives. Synchronization replicates an application directly between servers. See Chapter 3, "Jaguar Clusters and Synchronization" in the Jaguar CTS System Administration Guide for more information.
To export an application:
To import an application:
When importing a Jaguar JAR, the Deploy wizard creates an application identical to the original.
When importing an EAR, the Deploy wizard creates the following:
Home names for imported EJB components When importing from EAR or EJB-JAR files, Jaguar sets an imported Bean's home name to the Jaguar default, package/component, where package is the Jaguar Manager package name, and component is the Jaguar Manager component name.
You may need to configure the following settings in the Component or Web Application Properties dialog boxes before running EJBs, servlets, or JSPs:
Other settings have been configured by the Deploy Wizard.
Use the status dialog as a to-do list In the deployment status dialog box, Jaguar Manager display warnings for each setting that requires further attention before running the application. You can copy and paste this text to a text editor to use as a to-do list.
Copyright © 2000 Sybase, Inc. All rights reserved. |