Chapter 11 Creating Application Clients


Configuring application client properties

You can configure an application client's properties in Jaguar Manager. If you have created an Enterprise archive (EAR) file using another tool and imported it into Jaguar, most properties are automatically set during the import process.

Steps To display the Application Client Properties dialog:

To set the properties described in this section, first open the Application Client Properties dialog.

  1. Expand the Clients folder, then highlight the icon that represents your application client.

  2. Choose File | Application Client Properties.


General properties

Enter the application client's general properties:

EJB references

Add references for the EJBs that the application client accesses in its code. For example, add the EJB reference ejb/acctBean in Jaguar Manager and use java:comp/env/ejb/acctBean in your application client code.

Steps To add an EJB reference:

  1. Display the EJB Refs tab in the Application Client Properties dialog.

  2. Click Add. A reference with default settings is created. Edit the settings as described below.


Steps To edit an EJB reference:

  1. If necessary, display the EJB Refs tab in the Application Client Properties dialog. Existing references are displayed as a list with one row for each reference.

  2. Edit the EJB reference fields:

  3. To delete a reference, click anywhere in the fields for the reference of interest and click Delete.


Resource references

Resource references are used to obtain database connections, JavaMail sessions, and URL connections.

Steps To add a resource reference:

  1. Display the Resource Refs tab in the Application Client Properties dialog.

  2. Click Add. A reference with default settings is created. Edit the settings as described below.


Steps To edit a resource reference:

  1. If necessary, display the Resource Refs tab in the Application Client Properties dialog. Existing references are displayed as a list with one row for each reference.

  2. Edit the reference fields:

  3. Specify deployment properties:


Environment properties

Environment properties allow you to specify global read-only data for use by the application client.

Application clients must use JNDI to retrieve environment properties, using the prefix java:comp/env in JNDI lookups.

The deployment descriptor catalogs the environment properties used by the application client, as well as each property's Java datatype and default value.

Steps To add an environment property:

  1. Display the Environment tab in the Application Client Properties dialog.

  2. Click Add. Jaguar Manager creates a new entry with default settings. Edit the settings as described below:


Steps To edit environment properties:

  1. If necessary, display the Environment tab in the Application Client Properties dialog box. A list of environment properties appears.

  2. Edit the fields for the property of interest:


Application client files

The Files tab lists all the files in the application client, which are copied to %JAGUAR%\ Repository\<Application_Name>\<Client_Name> when you deploy the application EAR file. When you export the client application, the files listed on this tab, plus the EJB stubs for the application are added to the export JAR file, which you deploy on a client machine to run the application.

 


Copyright © 2000 Sybase, Inc. All rights reserved.