Developing and deploying HATS rich client applications

HATS gives you the ability to transform access to your existing host applications using rich client GUI applications that run in Eclipse Rich Client Platform (Eclipse RCP), Lotus Notes®, or Lotus® Expeditor Client environments.

The Eclipse RCP is a subset of plug-ins provided by the Eclipse platform, which is best known as an open source tooling platform. The introduction of Eclipse RCP enables you to use the core functionality provided by Eclipse to build native client applications targeted for a user's desktop. More information about the Eclipse RCP can be found at http://www.eclipse.org/home/categories/rcp.php.

Lotus Notes is powerful, multifaceted software that gives you instant access to all the information that is important to you. You can use Lotus Notes to send and receive Internet mail, schedule appointments, browse the Web, contribute to Internet newsgroups, and take advantage of the Home Page for tracking all your important daily information. For more information see the Lotus Notes Knowledge Center at http://www.ibm.com/support/knowledgecenter/SSKTMJ.

Lotus Expeditor Client provides a rich client runtime environment and integrated middleware components for extending many enterprise applications to server-managed laptop and desktop systems. For more information about developing and deploying applications for Lotus Expeditor Client, see the Lotus Expeditor Knowledge Center at http://www.ibm.com/support/knowledgecenter/SSVHEW.

Note:

Unless otherwise noted, the instructions documented here apply to developing and deploying HATS rich client applications in Eclipse RCP V3.7, Lotus Notes V8.5.3, and Lotus Expeditor Client V6.2.3 environments. For instructions that apply to earlier versions of Eclipse RCP and Lotus Expeditor Client, see earlier versions of the appropriate Knowledge Centers.

A rich client environment offers capabilities not available in a traditional Web environment, including:

Additional information and help about developing rich client applications can be found in the Rational® SDP Help Contents. Select Help > Help Contents on the menu bar and search for rich client.

When creating HATS rich client applications, the distinction between Eclipse RCP, Lotus Notes, and Lotus Expeditor Client environments is minimal. Differences are documented throughout this chapter.

The primary architectural difference between a HATS rich client application and a HATS Web application is in where the Telnet socket connection initiates. With a rich client application, the socket connection initiates from a user's workstation, not from the WebSphere Application Server, as it does with a traditional HATS Web application. Because rich client applications will require a client on a user's workstation, these applications are primarily targeted for internal users, who are accustomed to using a traditional, fat client terminal emulator.

Developing HATS rich client applications

The steps for building and testing a HATS rich client application are essentially the same as those for a HATS Web application. You use HATS Toolkit with tools provided in the HATS perspective to develop a HATS rich client project from which a HATS rich client application is generated. The same wizards, editors and views are provided to support the various activities required during development.

As with HATS for the Web environment, you develop the appearance and operation of the application, including customizing default rendering settings, screen navigation (by way of skip screen macros), and the fonts and colors used to render screens.

The majority of features available in a HATS Web application are also available in a HATS rich client application. These include, but are not limited to:

Features available in HATS Web applications that are not available in HATS rich client applications include:

A HATS rich client project is an Eclipse plug-in project. As a project, it exists in a workspace and is developed by a HATS application developer. Once developed and tested, the project is exported as a HATS rich client application, which is an Eclipse plug-in that can be installed into an Eclipse environment. An Eclipse plug-in is a component that provides a certain type of service within the context of an Eclipse environment. In the case with HATS, the plug-in provides the service required to transform a host application.

Each HATS rich client application plug-in depends on several runtime plug-ins. The dependencies are referred to in the rich client project's manifest file, MANIFEST.MF. You must ensure these required plug-ins are included in your local test environment and in the deployed production environment for your HATS rich client plug-in to run properly. For more information see HATS RCP Runtime Extension project, Testing HATS rich client applications, and Deploying HATS rich client applications.

Target platform specifics

Project contents

When you create a HATS rich client project, you are prompted to select a target platform. This selection indicates where you plan to deploy the application. The differences between a project targeted for deployment to Eclipse RCP and Lotus Notes or Lotus Expeditor Client are minor. The following characteristics are common to every HATS rich client project:

Addition for projects targeted for deployment to Eclipse RCP:

Additions for projects targeted for deployment to Lotus Notes and Lotus Expeditor Client:

Setting the compiler compliance level

The Java runtime environment (JRE) of both your Rational SDP workspace and your intended runtime environment must be the same. For example, if you are developing a HATS rich client plug-in to run on an Eclipse environment that is running a 1.6 Java runtime environment (JRE), you must set the compiler compliance level of your workspace to 1.6. To do this, from the Rational SDP menu bar, select Window > Preferences > Java > Compiler and set the Compiler compliance level to 1.6.

If you have other Java or plug-in projects in your workspace that require other compliance levels, you can set the compiler compliance level for individual Java or plug-in projects. To do this, right-click on the project and select Properties. In the Properties panel select Java Compiler on the left. Then select the Enable project specific settings box and set the Compiler compliance level to the appropriate level.

Note:
The HATS RCP Runtime Extension project, com.ibm.hats.rcp.runtime.extension, must be at the same compiler compliance level as your HATS rich client project. See HATS RCP Runtime Extension project.

HATS RCP Runtime Extension project

When you create a HATS rich client project, a project for the HATS RCP Runtime Extension plug-in (from here on referred to as the runtime extension plug-in), is automatically created if one does not already exist in the workspace. The runtime extension plug-in has a name and plug-in ID of com.ibm.hats.rcp.runtime.extension and an initial version of 1.0.0.

The runtime extension plug-in is an extension of the HATS RCP Runtime (com.ibm.hats.rcp.runtime) plug-in. The HATS RCP Runtime plug-in contains the HATS runtime classes, and it must be in the environment for HATS rich client applications to function. The runtime extension plug-in provides you the ability to configure settings related to the runtime environment.

This plug-in project contains the following configurable artifacts:

This project is similar to a HATS EAR project in the Web environment, but there is only one of these plug-ins per runtime environment. That is, there is only one runtime extension plug-in running in the user's environment. Every HATS rich client project plugin.xml file declares a dependency on this plug-in. The runtime extension plug-in does not refer to individual HATS application plug-ins.

Because only one copy of the runtime extension plug-in can run in the runtime environment, you must ensure only one copy of the plug-in exists in a user's environment. If more than one runtime extension plug-in exists in the environment, the plug-in with the highest version number is used by the environment. This ensures that the newest code is always used.

The runtime extension project is not visible in the HATS Projects view but is visible in the Navigator view. It is included as part of the feature project generated during export time. For more information see Deploying HATS rich client applications.

Note:
This project is not deleted when the last HATS rich client project is deleted. You must manually delete it if you want a new runtime extension project to be created.

Working with HATS rich client projects

As with a HATS Web project, when you create a new HATS rich client project, a set of folders is created to help you organize your HATS files. An example of a default project is shown below. The highest level folder has the same name as the name you give to your project when you create it. In that folder are other high-level folders that contain objects defined in your HATS project. Some folders do not appear until you create certain objects.

Figure 6. HATS rich client project view
HATS rich client project view

Depending on how you set up your project, some or all of these folders appear in the HATS Projects view. You can also specify which folders appear in your HATS Projects view as well as hide file extensions. For more information, see Using HATS preferences.

Notes:
  1. A rich client project displays a Rich Client Content folder, where a Web project displays a Web Content folder.
  2. The Rich Client Content folder is displayed at the root level of the rich client project. However, there is no actual Rich Client Content folder in the project. One is dynamically displayed only to create consistency with the Web Content folder displayed for Web projects.
  3. Some of the folders displayed under the dynamically displayed Rich Client Content folder are also displayed under the Source folder.
  4. Label decorators for the dynamically displayed rich client folders may not decorate properly since the folders do not map to physical folders in the project.

You can create subfolders within these high-level folders to help organize your project. For instance, as you create screen captures for your project, you might want to create folders under the Screen Captures folder to organize and group the captured screens. To create a folder, right-click on one of the high-level folders in the tree and click New HATS > Folder. To move a file into a different folder, right-click on the file and select Move, or you can use the drag-and-drop method.

HATS projects can be shared in a team environment by going to the Navigator View of the HATS perspective. Right-click the project and select Team > Share Project. Select the repository type from the list and click Next. Rational SDP supports several repositories. For more information, refer to the Rational SDP documentation and search on repository.

Note:
When using a version control system with your HATS projects, set the system to ignore the resourceUpdate.sts file. This file is automatically generated when testing a project within the toolkit. The file should not be under version control and can safely be ignored or deleted before placing a HATS project under version control.

To exclude the file from version control, open Window -> Preferences -> Team -> Ignored Resources and click Add Pattern to add a new pattern. Enter resourceUpdate.sts and click OK. Make sure the new pattern is selected in the list of ignored patterns, and click OK to save the settings.

Copying resources between Web and rich client projects

You can copy, paste, delete, move, and rename rich client resources using the pop-up menu in the HATS Projects view. The following resources can be copied or moved between HATS Web and HATS rich client projects:

Note:
You are not allowed to copy transformations, transformation fragments, or templates between HATS Web and HATS rich client projects.

Some resources copied from projects of different types will need modification. For example, a macro copied from a HATS Web project to a HATS rich client project will need to be updated to refer to a valid SWT Java macro handler (for HATS Web projects, macros refer to a JSP macro handler). Screen customizations will also need to be updated because of references to JSP transformations specified in the apply action and because of URLs specified in the forward action. A warning message will appear in the Problems view to help you find and fix these problems. The following scenarios will be flagged:

There is no built-in function to migrate a HATS Web application to a HATS RCP application. Some artifacts, such as screen customizations, macros, connections, screen captures, images, business logic source files, and custom component source files can be manually migrated, with minimal changes, from one project type to another. Other artifacts, such as transformations, custom widgets, templates, and custom macro handlers require more extensive changes to work in a project of a different type.

Exporting and importing HATS rich client projects

To move a HATS rich client project to another system with Rational SDP installed, or to save and restore a project for any other reason, you can use the export and import capabilities of Rational SDP.

Export

Export a project and its dependent projects as a zipped file using the Rational SDP archive file function. This function has multiple benefits. It allows you to export multiple projects and the required runtime extension project (com.ibm.hats.rcp.runtime.extension) all at once. In addition, you do not have to create a project on the destination HATS Toolkit before you import the archive file. To export the project(s) from HATS Toolkit as an archive file:

  1. From the menu bar click File > Export to open the Export wizard.
  2. Select General > Archive File and click Next.
  3. Select the project(s) to export.
    Note:
    A HATS rich client project requires the runtime extension project (com.ibm.hats.rcp.runtime.extension) in order to run. Therefore, you must either export the runtime extension project as part of the archive file, or create a new runtime extension project on the destination system by creating a new HATS rich client project.
  4. Specify a file name and location where you want to save the project(s).
  5. In the Options section, select the desired file format and compression options. To export the whole project, select Create directory structure for files.
  6. Click Finish.

Import

To import an archive file (or a project interchange file from an older release of Rational SDP) into HATS Toolkit:

  1. From the menu bar click File > Import to open the Import wizard.
  2. Select General > Existing Projects into Workspace and click Next.
  3. Select the Select archive file option and click Browse to browse for the archive file.
  4. In the Projects section, select the project (or projects) you want to import.
    Note:
    A HATS rich client project requires the runtime extension project (com.ibm.hats.rcp.runtime.extension) in order to run. Therefore, you must either import the runtime extension project from the archive file, or create a new runtime extension project by creating a new HATS rich client project.
  5. Click Finish.

Testing HATS rich client applications

To test a HATS rich client application plug-in in a local test environment, you launch the plug-in, and required runtime plug-ins, in an instance of the target platform.

Note:
In addition to testing in the local test environment, you should export your project as an application and deploy it in a runtime environment to test out the deployment process. For more information see Deploying HATS rich client applications.

Configuring the target platform

The target platform refers to the Eclipse product (for example, Eclipse RCP, Lotus Notes, or Lotus Expeditor Client) against which the plug-in you are developing will be compiled and tested.

By default the target platform is Rational SDP itself, therefore no configuration is necessary for Eclipse RCP.

To configure the target platform for Lotus Notes (or Lotus Expeditor), perform the following steps.

  1. Install Lotus Notes (or Lotus Expeditor) on the same development workstation as Rational SDP.
  2. From the Rational SDP menu bar select Window > Preferences > Plug-in Development > Target Platform and click Add.
  3. Select Nothing: Start with an empty target definition and click Next.
  4. On the Target Content page, enter a target name, for example, Lotus Notes, or Lotus Expeditor, and click Add.
  5. On the Add Content page, select Directory and click Next.
  6. The target definition you are creating consists of Lotus Notes (or Lotus Expeditor) plug-ins, shared plug-ins, and HATS runtime plug-ins. On the Add Directory page do the following:
    1. Click Browse and browse for the Lotus Notes (or Lotus Expeditor) base plug-ins. For Lotus Notes browse to, for example, C:\Program Files\IBM\Lotus\Notes\framework\rcp\eclipse. For Lotus Expeditor browse to, for example, C:\Program Files\IBM\Lotus\Expeditor\rcp\eclipse. Click Finish.
    2. On the Target Content page, click Add.
    3. On the Add Content page, select Directory and click Next.
    4. Click Browse and browse for the Lotus Notes (or Lotus Expeditor) shared plug-ins. For Lotus Notes browse to, for example, C:\Program Files\IBM\Lotus\Notes\framework\shared\eclipse. For Lotus Expeditor browse to, for example, C:\Program Files\IBM\Lotus\Expeditor\shared\eclipse. Click Finish.
    5. The HATS runtime plug-ins cannot be added here. The HATS Toolkit copies the runtime plug-ins when you change the target platform and the plug-ins are not already installed in the target platform. This occurs in a later step.
  7. On the Target Content page, click Finish.
  8. On the Preferences - Target Platform page, select the box for the newly created target definition, ensure it is designated as Active, and click OK.
  9. The HATS runtime plug-ins are now installed into the target platform and you are asked to reload the target platform. See Installing runtime plug-ins for how to reload the target platform. Click OK.

Installing runtime plug-ins

In order for a HATS rich client application plug-in to run in the target platform's local test environment, the required runtime plug-ins must be installed in the target platform.

The Eclipse RCP target platform is Rational SDP itself. Because the HATS Toolkit is installed in Rational SDP, the HATS runtime plug-ins are already installed for the Eclipse RCP target platform. The remainder of this section pertains to installing runtime plug-ins when using the Lotus Notes (or Lotus Expeditor) target platform.

When you create a new project and select the Lotus Notes (or Lotus Expeditor) target platform, or later change the target platform, the HATS Toolkit will detect if the required runtime plug-ins are installed and at the latest level in the selected target platform. If not, the toolkit will prompt you to have the latest runtime plug-ins installed. You can enable or disable this prompt using HATS Preferences. See Using HATS preferences for more information. Following are the required runtime plug-ins that are installed:

After you configure a new target platform for Lotus Notes (or Lotus Expeditor) and install the latest HATS runtime plug-ins in the target platform, see Configuring the target platform, you must reload the new plug-ins. To do this, perform the following steps .

  1. From the Rational SDP menu bar select Window > Preferences > Plug-in Development > Target Platform.
  2. On the Preferences - Target Platform page, select the Lotus Notes (or Lotus Expeditor) target definition you configured. Click Edit.
  3. On the Target Content page, click Add.
  4. On the Add Content page, select Directory and click Next.
  5. On the Add Directory page, browse to the HATS location in the appropriate path. For Lotus Notes browse to, for example, C:\Program Files\IBM\Lotus\Notes\framework\rcp\hats\eclipse. For Lotus Expeditor browse to, for example, C:\Program Files\IBM\Lotus\Expeditor\rcp\hats\eclipse.
  6. Click Finish twice to close the wizard.
  7. On the Preferences - Target Platform page, click Reload then click OK.

Setting the default JRE

In addition to configuring the target platform and installing the runtime plug-ins, you may need to set the default JRE for your workspace in Rational SDP.

Eclipse RCP

When testing on an Eclipse RCP target platform, set the default JRE to jdk. To do this perform the following steps:

  1. From the Rational SDP menu bar select Window > Preferences > Java > Installed JREs.
  2. In the list of installed JREs, select the box next to jdk.
  3. Click OK.

Ensure your JRE's match. For example, if you are testing on an Eclipse environment that will be running Java 1.6, you should update the JRE of the workspace to match the JRE of the runtime environment.

Lotus Notes

When testing on a Lotus Notes target platform, perform the following steps:

  1. From the Rational SDP menu bar select Window > Preferences > Java > Installed JREs and click Add.
  2. On the JRE Type page, select Standard VM and click Next.
  3. On the JRE Definition page, click Directory and browse to the Lotus Notes JRE location, for example, C:\Program Files\IBM\Lotus\Notes\jvm. Click Finish.
  4. On the Preferences - Installed JREs page, select the newly added JRE and click OK.

Lotus Expeditor Client

When testing on a Lotus Expeditor target platform, perform the following steps:

  1. From the Rational SDP menu bar select Window > Preferences > Java > Installed JREs and click Add.
  2. On the JRE Type page, select Standard VM and click Next.
  3. On the JRE Definition page, click Directory and browse to the Lotus Expeditor Client JRE location, for example, C:\Program Files\IBM\Lotus\Expeditor\rcp\eclispe\plugins\com.ibm.rcp.j2se.win32.x86_1.6.0.20101125a-201012221418\jre. Click Finish.
  4. On the Preferences - Installed JREs page, select the box for the newly added JRE and click OK.

Launching your project

To launch your project, a launch configuration is required. HATS creates a default launch configuration for you when you click either Run or Debug for your project (see the instructions in the sections below). A launch configuration is not created when the Run or Debug dialog is opened from another view, for example, the Package Explorer view. The default launch configuration is based on the target platform of the project, which is set in the New Project wizard or in the Project Settings editor. If you modify the default launch configuration to the point where it can no longer launch a runtime workbench, you can delete the launch configuration, and HATS will re-create it when Run or Debug is clicked again. To launch your project, follow the instructions in the sections below for your target platform.

Eclipse RCP

To launch your project in the local test environment for Eclipse RCP, perform the following steps:

  1. From the HATS Projects view, right-click on the project and select either Run or Debug.
  2. If you selected Debug, respond Yes, No, or Cancel to the Display Terminal dialog to specify whether you want to see the host display terminal while testing your application.
  3. In the Run (or Debug) Configurations dialog, HATS automatically creates and configures a default launch configuration named hostaccess.
  4. On the Main tab, in the Program to Run section, be sure com.ibm.hats.rcp.runtime.extension.product appears in the Run a product field.
  5. Click Run (or Debug) to launch the default configuration.
  6. A new instance of the Eclipse workbench is launched.
  7. The Host Access perspective is automatically opened.
  8. Your HATS application is listed in the Applications view. To start your application, either double-click on it or right-click and select Open.
  9. A new instance of the selected application is opened and its transformation view is displayed.

Lotus Notes

Lotus Notes must be installed on the same development workstation as Rational SDP in order to locally test a HATS plug-in targeted for Lotus Notes. Lotus Notes must not already be running when you attempt to test your project because only one instance of Lotus Notes can be running at any given time. See Configuring the target platform.

To launch your project in the local test environment for Lotus Notes, perform the following steps:

  1. From the HATS Projects view, right-click on the project and select either Run or Debug.
  2. If you selected Debug , respond Yes, No, or Cancel to the Display Terminal dialog to specify whether you want to see the host display terminal while testing your application.
  3. In the Run (or Debug) Configurations dialog, HATS automatically creates and configures a default launch configuration named hostaccess.
  4. On the Main tab, in the Program to Run section, be sure com.ibm.notes.branding.notes appears in the Run a product field.
  5. On the Main tab, in the Java Runtime Environment section, confirm that Notes 8.5.1 VM is listed in the Runtime JRE field. For more information, see Lotus Notes.
  6. Click Run (or Debug) to launch the configuration.
  7. A new instance of Lotus Notes is launched.
  8. Click Open on the main toolbar and select Host Access.
  9. Your HATS application is listed in the Applications view. To start your application, either double-click on it or right-click and select Open.
  10. A new instance of the selected application is opened and its transformation view is displayed

Lotus Expeditor Client

Lotus Expeditor Client for Desktop must be installed on the same development workstation as Rational SDP in order to locally test a HATS plug-in targeted for Lotus Expeditor. See Configuring the target platform.

To launch your project in the local test environment for Lotus Expeditor Client, perform the following steps:

  1. From the HATS Projects view, right-click on the project and select either Run or Debug
  2. If you selected Debug, respond Yes, No, or Cancel to the Display Terminal dialog to specify whether you want to see the host display terminal while testing your application.
  3. In the Run (or Debug) Configurations dialog, HATS automatically creates and configures a default launch configuration named hostaccess.
  4. On the Main tab, in the Program to Run section, be sure com.ibm.rcp.platform.personality.branding.DefaultProduct appears in the Run a product field.
  5. On the Main tab, in the Java Runtime Environment section, confirm that Java SE 6.0 Win32 x86 is listed in the Runtime JRE field. For more information, see Lotus Expeditor Client.
  6. Click Run (or Debug) to launch the configuration.
  7. A new instance of Lotus Expeditor Client is launched. You may be prompted to enter a new password the first time the client starts.
  8. Click Open on the main toolbar and select Host Access.
  9. Your HATS application is listed in the Applications view. To start your application, either double-click on it or right-click and select Open.
  10. A new instance of the selected application is opened and its transformation view is displayed.

Deploying HATS rich client applications

Regardless of where you obtain the HATS package (HATS CD, Web, or packaged with another product), you install the same version of the HATS Toolkit. This is a limited-use version that you can use to evaluate HATS. To fully enable the runtimes for production in accordance with your licensed proof of entitlement, you must specify your license settings using the License Settings wizard included in the HATS Toolkit. For more information see the section, Enabling HATS runtime and license settings, in HATS Getting Started.

This section describes two different methods for deploying HATS rich client applications. The first method can be used to package a complete Eclipse client environment for distribution that has everything necessary to run your HATS rich client application. The second method can be used to package your HATS rich client application for clients that already have an Eclipse environment installed.

Packaging an Eclipse client environment for distribution

The Eclipse SDK, on which the Rational SDP is based, provides the ability to generate a complete Eclipse client which includes your HATS application plug-ins and all other required plug-ins. This client can be distributed to individual client systems and run as a stand-alone application.

Note:
Prior to following these instructions, it is assumed that a HATS rich client plug-in project has been created and run in the local test environment.

To create the client package, perform the following steps:

  1. In the HATS Projects view, right-click your HATS rich client project and from the pop-up menu select New HATS > Product Configuration. This launches the New Product Configuration wizard. The wizard can also be launched from the Rational SDP menu bar by selecting File > New > Other > Plug-in Development > Product Configuration > Next.
  2. Select the com.ibm.hats.rcp.runtime.extension plug-in project folder as the parent folder.
  3. Enter hostaccess.product in the File name field.
  4. Select the Use a launch configuration radio button and select hostaccess.
    Note:
    In this example, hostaccess is the default name used for the Run, or Debug, configuration you used when you tested your application in the local test environment.
  5. Click Finish.
  6. Click the Overview tab and click the Eclipse Product export wizard link.
  7. Under Destination, in the Directory field, enter the name of the directory to export the Eclipse product to. For example c:\hostaccess. Alternatively, you can select to export to an archive (.zip) file which is useful when you want to make the client package available as a one file download.
  8. Under Export Options, clear Generate metadata repository.
  9. Click Finish.

A complete Eclipse client environment is created. To test your application, use Windows Explorer to navigate to the c:\hostaccess directory. From the eclipse folder double-click eclipse.exe. This directory can be zipped up and downloaded to individual client machines. All that is required on the client system is a compatible Java Runtime Environment (JRE).

Packaging for existing Eclipse clients (Eclipse RCP, Lotus Notes, or Lotus Expeditor Client)

To deploy your HATS rich client application in an existing Eclipse client runtime environment you must:

The following sections describe how to perform each of these tasks.

Exporting your project as an Eclipse feature

To deploy your HATS rich client application plug-in to a runtime environment, you must first package it into an Eclipse feature. An Eclipse feature is a deployment artifact used to package associated plug-ins. To package your plug-in into an Eclipse feature, perform the following steps.

  1. Create an empty directory, for example c:\myHATS, on your local hard drive to store your exported HATS application feature. You will use this same directory to store the HATS runtime features and the site.xml file that contains the definition for an update site. For more information, see Exporting HATS runtime features and Creating an update site.
  2. From the HATS Projects view, right-click your rich client project and from the pop-up menu select Export > Export Feature.
    Note:

    If you have not specified your license settings, you will see a message that this application is not runtime enabled and cannot be run in a production environment.

    HATS rich client applications can be tested in a local test environment (Eclipse, Lotus Notes, or Lotus Expeditor Client), but cannot be run in a runtime (non-development) environment without first specifying license settings. This means that you can create and fully test an application in the HATS Toolkit development environment. You can also export the application, and a user can install it, but the user will not be able to connect with the application. That is, the runtime will be locked down and will not allow for any connections. For information about specifying license settings, see Enabling HATS runtime and license settings in HATS Getting Started.

    If licenses have been purchased, click Enable Runtime to runtime enable your application. Otherwise, click Continue to continue the export process.

  3. Assuming your project is not already part of a feature, a dialog will prompt you to create the feature now. Click Yes to launch the Create a HATS Feature Project wizard.
  4. In the Create a HATS Feature Project wizard, complete the Feature ID, Name, Version, and Provider fields.
    Note:
    The Name field is automatically filled in as you fill in the Feature ID field. Validation is performed on the Feature ID and Name fields as you fill them in. The value you enter for Feature ID is also the name used for the feature project that is created, and all values are stored in the project's feature.xml file. HATS supplies the name, hostaccess, as a default for the Feature ID and Name fields and the version, 1.0.0, as a default for the Version field .
  5. The plug-in list is populated from all HATS rich client plug-in projects in the workspace. Select the plug-ins to include in the new feature. These plug-ins will be installed into the client when the feature is installed. Click Finish.
  6. Next, the Eclipse Export wizard appears. In the Deployable features panel, select your feature.
  7. On the Destination tab, select Directory and click Browse to locate and select your export directory, for example c:\myHATS.
  8. On the Options tab, ensure Package as individual JAR archives (required for JNLP and update sites) is selected. The other options can remain at their default selections.
  9. Click Finish.

Your exported HATS rich client application feature automatically includes the runtime extension plug-in and automatically includes a dependency on the HATS runtime features. The feature project is not displayed in the HATS Projects view, but is displayed in the Navigator view.

If you want to perform more advanced configuration of your HATS rich client application feature, instead of using the Create a HATS Feature Project wizard, you can use the standard Eclipse New Feature wizard provided by Eclipse. To launch this wizard, from the Rational SDP toolbar select File > New > Other > Plug-in Development > Feature Project. This wizard performs basically the same functions as the Create a HATS Feature Project wizard except it does not automatically include the runtime extension plug-in, and it does not include the necessary dependencies on the HATS runtime features.

Exporting HATS runtime features

In a production environment, a HATS rich client application feature depends on the HATS runtime features being installed on the client. When you create a HATS rich client application feature using the Create a HATS Feature Project wizard, it automatically includes a dependency on the HATS runtime features. This dependency is what causes the feature install and update process to automatically pull down the HATS runtime features from the update site when a HATS rich client application feature is installed or updated. The HATS runtime features include the following features and plug-ins:

To export the HATS runtime features, perform the following steps:

  1. In the HATS Projects view, right-click your HATS rich client project and from the pop-up menu select Export > Export HATS Runtime Features. This launches the Export HATS Runtime Features wizard. The wizard can also be launched from the Rational SDP menu bar by selecting File > Export > HATS > HATS Runtime Features.
  2. On the Export HATS Runtime Features panel, for Deploy as select Directory and click Browse to locate and select your export directory, for example c:\myHATS.
    Note:
    The Export HATS Runtime Features wizard allows you to specify either an archive file or a directory on the local file system for saving the HATS runtime features. If you choose to export to an Archive file, all of the features and plug-ins are packaged into a single .zip archive. The root directory structure inside the .zip archive starts with two subdirectories, one named, features, and the other named, plugins. If you choose to export to a Directory, features and plug-ins are exported to the selected directory. The features are placed in a subdirectory named, features, and the plug-ins are placed in a subdirectory named, plugins. Select Directory if you are planning to upload the archives to an update site directory on a Web server.
  3. Click Finish.

Creating an update site

After exporting both your HATS application feature and the HATS runtime features, you must create an update site that can be used by the feature install and update process to deploy your application. To create an update site, perform the following steps:

  1. In the HATS Projects view, right-click your HATS rich client project and from the pop-up menu select New HATS > Update Site Project. This launches the New Update Site wizard. The wizard can also be launched from the Rational SDP menu bar by selecting File > New > Other > Plug-in Development > Update Site Project > Next.
  2. On the Update Site Project panel:
    1. Give your project a name, for example myHATSUpdateSite.
    2. Clear the Use default location check box and click Browse to locate and select the directory to where you exported your HATS application feature and the HATS runtime features, for example c:\myHATS.
    3. Click Finish.
  3. In the site.xml editor view on the Site Map tab, click New Category.
  4. In the Category Properties section:
    1. Enter a Name, for example, HATS.
    2. Enter a Label, for example, HATS.
    3. Optionally enter a Description.
    4. Click the Save icon on the Rational SDP toolbar.
  5. In the site.xml editor view on the Site Map tab, click Add Feature.
  6. In the Feature Selection panel, scroll down and select your HATS application feature, for example hostaccess (nnnn), where nnnn represents the version number of the feature, and click OK. For more information about version numbers, see Updating plug-in and feature version numbers.
    Note:
    If you begin typing the name of a feature in the Select a feature field, the data you enter acts as a wildcard, and the list of features in the list box narrows until the desired feature is showing.
  7. Click Add Feature to add each of the HATS runtime features:
  8. Click Build All to complete building the update site site.xml file.
    Note:
    If an error message is displayed stating that Compilation errors occurred during the build. Logs can be found in 'logs.zip' at the root of the site project., then check the logs.zip file. If it contains only warnings, you can safely ignore them and continue.

You have now created an update site, in this example c:\myHATS, including the site.xml file that indicates what features, and versions of those features, are available from the site for download by a client. You can now move this update site directory to a Web server that can be accessed by clients. For instructions on how to define an update site on the client system and install your HATS rich client applications in a runtime environment, see Installing your application in a runtime environment.

Note:
After installing a HATS service update, you should re-export and redeploy the HATS runtime features to pick up any changes. You must modify the update site's site.xml file to reflect any version number changes. The versions are listed on the first panel of the Export HATS Runtime Features wizard. For more information see Updating plug-in and feature version numbers.

Installing your application in a runtime environment

HATS rich client applications can run in Eclipse RCP, Lotus Notes, and Lotus Expeditor Client environments. The following sections describe how to install your HATS rich client application in each of these environments.

Eclipse RCP

To download and install your HATS rich client application in an Eclipse rich client environment, the client environment must be configured to access the update site containing the application. By default, since automatic install and update is disabled, the user or administrator must manually install the new features or updates using the standard Eclipse Software Update functions. To do this perform the following steps on the client system.

Note:
The following instructions are for Eclipse 3.6 and later. If you are using an earlier version of Eclipse, follow the appropriate Eclipse documentation to install the features.
  1. From the Eclipse client menu bar, select Help > Install New Software.
    Note:
    Depending on your Eclipse client configuration, this menu item may be located under a different menu.
  2. Click the Add button and then the Local button.
  3. Browse to the location of the update site you created for the HATS project and click OK.
  4. Select your HATS update site. If you gave the update site a category named HATS, select the check box beside HATS and make sure all the check boxes underneath it are also selected, or you can click the Select All button. If you don't see your update site category listed, make sure to have the Group items by category check box selected. Click Next.
  5. Review and confirm the items being installed. Click Next.
  6. Select I accept the terms in the license agreement and click Finish.
  7. If you see a security warning that the software being installed contains unsigned content, click OK.
  8. Your HATS application is installed.
  9. When prompted to restart the workbench, click Yes.
  10. You can then run your application by first opening the Host Access perspective (Window->Open Perspective-> Host Access). Your HATS application is listed in the Applications view. To start your application, either double-click it or right-click and select Open.

For more information about the Eclipse RCP environment see http://www.eclipse.org/home/categories/rcp.php.

Lotus Notes

In the Lotus Notes environment, a widget is used to install applications that are provided as features and plug-ins. The widget can later be published to a Widget catalog for others to use. For more information about widgets, see the Widgets and Live Text section in the Lotus Notes Knowledge Center at http://publib.boulder.ibm.com/infocenter/domhelp/v8r0/index.jsp?topic=/com.ibm.notes85.help.doc/wid_app_overview_c.html .

To download and install your HATS rich client application in a Lotus Notes environment, perform the following steps on the client system:

  1. Start the Lotus Notes client and select File > Preferences > Widgets.
  2. Select Show Widget Toolbar and the My Widgets Sidebar panel. Click OK.
    Figure 7. Lotus Notes Widgets preferences
    Lotus Notes Widgets preferences
  3. The Widget toolbar looks like this:
    Figure 8. Lotus Notes Widget toolbar
    Lotus Notes Widget toolbar
  4. The My Widgets Sidebar panel looks like this:
    Figure 9. My Widgets Sidebar
    My Widgets Sidebar
  5. Select Getting Started with Widgets from the Widget toolbar.
  6. Select Features and Plugins, then select Next.
  7. In the Enter the URL field, enter the path to the update site's site.xml file using this format as an example (must start with file:///): file:///c:\hatsupdatesite\site.xml. Click the Load button.
  8. Under Features to Install, select all features and select Next.
  9. Optional: In the Widget name field, you can enter HATS Provisioning Widget or another appropriate name.
  10. Optional: If you want the widget to have an image associated with it, copy the desired image to your update site folder. Then in the Image URL field, enter the path to the image using this format as an example (must start with file:///): file:///c:\hatsupdatesite\myhatsimage.png.
  11. Choose to install the plug-ins when asked.

    The My Widgets Sidebar panel will look similar to this:

    Figure 10. My Widgets Sidebar with example HATS Provisioning Widget
    My Widgets Sidebar with example HATS Provisioning Widget
  12. Restart Lotus Notes when asked.

You can run your application by selecting Open > Host Access. Your HATS application is listed in the Applications view. To start your application, either double-click it or right-click and select Open.

To uninstall the HATS application, right-click the HATS Provisioning Widget (or whatever name you gave it) and select Remove. Restart Lotus Notes when asked.

Lotus Expeditor Client

In the Lotus Expeditor Client environment application management and deployment can be controlled in a number of ways:

For the Lotus Expeditor Client, the following features must be added to the default installation:

From the Lotus Expeditor Client, select File > Application > Install > Search for new features to install > Add folder location. Browse to the following folder in the Lotus Expeditor Client product files: desktop\updates\platform and select Finish. Expand updates/platform and Development. Put a check mark beside Lotus Expeditor Desktop Development Utilities. Select Next and complete the wizard.

For Lotus Expeditor Client versions 6.2.0 and earlier, to install the Core JVM Feature - J2SE, from the Lotus Expeditor Client, select File > Application > Install > Search for new features to install > Add folder location. Browse to the Desktop Runtime Environment site location, which is the update.site.dre.client directory and select OK. Accept the default site name and select OK and Finish. Expand the site and Runtime Components. Put a check mark beside Core JVM Feature - J2SE. Select Next and finish the wizard.

For more information, see the Assembling and Deploying Lotus Expeditor Applications section in the Lotus Expeditor Knowledge Center at http://publib.boulder.ibm.com/infocenter/ledoc/v6r2/index.jsp.

To download and install your HATS rich client application in a Lotus Expeditor Client environment, the client must be configured to access the update site containing the application. To do this perform the following steps on the client system.

  1. From the Lotus Expeditor Client main menu select File > Application > Install.
  2. On the Feature Updates panel, select Search for new features to install and click Next.
  3. On the Application Locations panel, click Add Remote Location or Add Folder Location, as appropriate.
  4. On the Application Locations panel, select your HATS update site and click Finish.
  5. On the Search Results panel, select the features to install and click Next.
  6. On the Feature License panel, select I accept the terms in the license agreement and click Next.
  7. On the Installation panel, click Finish.
  8. Choose to install the plug-ins when asked.
  9. Your HATS application is installed.
  10. When prompted to restart the workbench, click Yes.
  11. You can then run your application by first opening Host Access (Open->Host Access). Your HATS application is listed in the Applications view. To start your application, either double-click it or right-click and select Open.
Automatic update process

The rich client environment allows for the automatic update of installed applications. Preferences are available for controlling how often the server is checked for updates. Once you upload an update to an application, the rich client will download and install the update. Version checking is performed to make sure only new updates are downloaded and installed. In most cases, the user will need to restart the environment to activate the updated application. For more information, see the appropriate Eclipse RCP, Lotus Notes, or Lotus Expeditor documentation.

Updating plug-in and feature version numbers

Before you can update a plug-in that is already installed, you must update the plug-in's version because Eclipse uses the version to determine if a plug-in has changed. For example, if you add a screen customization or modify a macro in your project, you must update your plug-in's version before re-exporting it.

To update your plug-in's version, in the Project Settings editor for your project, on the Overview tab, click the open the plug-in manifest link. On the Overview tab, under General Information, update the version. An Eclipse version is in the form major.minor.service. When making a minor change to the project, update the service segment of the version. For example, before exporting your plug-in a second time, set your plug-in's version to 1.0.1.

Because the License Settings wizard updates the runtime extension project (com.ibm.hats.rcp.runtime.extension), after running the wizard you must update the version of this plug-in. To do this, in the Navigator view, open the plugin.xml file located at the root of the project. On the Overview tab, under General Information, update the version.

Also, because features are made up of plug-ins (and features also have versions), you must update the version of your feature whenever you update the version of one of the included plug-ins. To do this, switch to the Navigator view and open the feature.xml file located in your feature project. By default the name of your feature project is hostaccess. On the Overview tab, under General Information, update the version. In addition, ensure that your feature correctly lists the new versions of your plug-ins by clicking the Versions button on the Plug-ins tab and selecting Copy versions from plug-in and fragment manifests.

After your feature's version has been updated, you must update your site.xml file (if applicable) to ensure that it lists the new version of your feature.

Note:
These steps are not required when running or debugging your application in the local test environment.

Administering HATS rich client applications

For HATS rich client applications, runtime settings, such as log and trace settings, are specified in two files in the runtime extension plug-in (com.ibm.hats.rcp.runtime.extension):

For more information about running in different test modes see Testing modes for rich client projects in HATS Getting Started.

While in the HATS Toolkit, you can edit these files to change settings, for example trace and trace level settings. The files are located in the root of the runtime extension plug-in project. Be aware that any changes made to the runtime.properties file in the HATS Toolkit are retained and become effective when you deploy the HATS application to a runtime environment. In the runtime environment, the runtime.properties file is located in the runtime extension plug-in directory, for example, <eclipse_install_dir>/eclipse/plugins/com.ibm.hats.rcp.runtime.extension_1.0.0. The runtime-debug.properties file is ignored in the runtime environment. For more information about log and trace settings in these files, see Appendix A. Runtime properties files.

For information about how the user can configure log and trace settings and gather problem determination data in the runtime environment, see Preferences.

There is just one runtime extension plug-in project in the workspace, and just one version of the plug-in in the runtime environment. Therefore, in any single HATS rich client runtime environment, log and trace settings are the same for all HATS rich client applications.

License settings are also stored in the runtime.properties file of the runtime extension plug-in (com.ibm.hats.rcp.runtime.extension). Therefore license tracking is performed at the rich client environment level and not at the level of an individual HATS rich client application. Warning messages will appear in the log if the user goes over the number of licenses purchased. For information about specifying license settings, see Enabling HATS runtime and license settings in HATS Getting Started

Runtime environment

Applications view

The Applications view displays for the user all active HATS rich client applications installed in the runtime environment. The view is sorted by application display name. By default, this view is displayed the first time the user opens the Host Access perspective. The user starts a new instance of a HATS application by double-clicking the application in the Applications view, or by right-clicking on the application name and selecting Open.

After starting a new instance of a HATS application, its transformation view is displayed. See Transformation view for more information. By default, the name of the newly opened transformation view is the name of the application. If more than one instance of the application is started, the name of the transformation view will be a combination of the name of the application plus a number indicating the instance of the session. For example, the title of the second instance of the application named Order Entry will be titled Order entry : 2.

By default, a user can launch multiple instances of the same application. You can modify the plugin.xml file to disallow launching multiple instances. Also, you can decide not to show the Applications view and instead control what views are available to the user. This can also restrict the number of instances of an application. For more information see the HATS Rich Client Platform Programmer's Guide.

If the application is running in the local test environment and if you have selected to see the display terminal, a display terminal window will be displayed when the connection is made to the system. The window will close when the session has ended, or if the client is shut down.

Pop-up menu

A pop-up menu is provided to enable the user to perform actions on one or more applications in the view. Select one or more application names and right-click to show the menu. The following menu items are available:

Open
Selecting this menu item starts a new instance of the selected application. If multiple applications are selected, an instance of each selected application is started.
View Print Jobs
This menu item is only enabled when at least one print-enabled application is selected. Selecting this menu item opens either the Print Jobs (3270) or Print Jobs (5250) view, which displays a list of queued print jobs. See Enabling print support for more information.
Properties
This menu item is enabled if only one application is selected. Selecting this menu item allows a user to see information about the application as well as configure some settings related to the application. The following pages are provided in the Properties dialog for a selected application:
Info
The Info page displays information about the selected application, including its name, ID, version, and physical location of the plug-in. The page also shows the version of the HATS runtime plug-in being used by the application. This information is useful when a user must communicate information about the environment to a support team. The user cannot change any values on this page. It is for information only.
Connection Parameters
This item does not appear in the list if you have chosen to disallow the user from overriding any connection parameters, which is the default. See Connection parameter overrides for more information.

If you allow overrides, this page allows the user to override connection parameters. This function is equivalent to the HATS function for Web applications that allows a user to override connection parameters using the URL when the application is first accessed. An example of using connection parameter overriding might be where the user needs to override a workstation ID or LU name.

The user sets an override by clicking the Add button, selecting a parameter from drop-down list for the Name field, and setting a value in the Value field. No validation within the dialog is performed to alert the user whether the supplied connection parameter name can be overridden. By default, the override setting is enabled when first added. It can be disabled by clearing the check box next to the parameter name.

When the user overrides a connection parameter, the settings are saved on the local workspace. Overridden parameter values are used when an instance of the session is started.

For information about programmatically starting a rich client application instance using connection parameter overrides, see the HATS Rich Client Platform Programmer's Guide.

Variables
This item will not appear in the list if you have chosen to disallow the user from overriding any global variables, which is the default. See Global variable overrides for more information.

If you allow overrides, this page allows the user to override global variables. This function is equivalent to the HATS function for Web applications that allows a user to override global and shared global variables using the URL when the application is first accessed.

This capability allows user-specific variable data to be used in the application. For example, you can record a macro that prompts for a user name and password supplied from the values of global variables. The user can supply these values in the variables override page. These values are then used when the macro is run when the sign on screen is recognized.

The user sets an override by clicking the Add button, selecting a variable name from drop-down list for the Name field, setting a value in the Value field, and specifying whether the global variable is Shared. No validation within the dialog is performed to alert the user whether the supplied global variable name can be overridden. By default, the override setting is enabled when first added. It can be disabled by clearing the check box next to the variable name.

When the user overrides a global variable, the settings are stored in the data directory of the environment. Overridden global variable values are used when an instance of the session is started.

For information about programmatically starting a rich client application instance using global variable overrides, see the HATS Rich Client Platform Programmer's Guide.

Print screen support

In the rich client environment, the user has the ability to print the current screen transformation by selecting Print from the File menu. By default, Eclipse displays the Print dialog where the user can select the printer and also configure other options. After the user clicks OK, the transformation area of the transformation view is sent to the selected printer.

Note:
On Windows systems, this will print the entire transformation, including parts that are only visible by using the scroll bar. On Linux systems, this will print only the part of the transformation that is visible, and not the hidden parts that must be scrolled to see.

Transformation view

The transformation view is the main area for transformation in the rich client environment. Each HATS rich client project has one transformation view associated with it. The view is registered in the plugin.xml file of the project when the project is created. The view is composed of four areas:

Toolbar

The transformation view toolbar contains buttons for application-level actions as well as buttons for actions contributed by the Toolbar widget, during screen rendering. By default, the toolbar is displayed, and the buttons display with text-only captions. You can change these settings in the project settings. See Toolbar  RCP-only  for more information.

The toolbar is divided into two sections. The right side of the toolbar is equivalent to the application keypad in a HATS Web application and contains application keypad buttons. See Application keypad for how to configure which buttons to display. The left side displays buttons contributed by the Toolbar widget. See Toolbar  RCP-only  for more information.

Tooltip text that provides a description of the button's function is available on all application keypad buttons. You can set tooltip text on buttons you add using the Toolbar widget.

Above the application keypad buttons on the toolbar, next to the Minimize and Maximize icons is a Menu icon. Clicking this icon displays a menu with the following menu items:

Toggle Keyboard Support
This allows the user to enable and disable keyboard support.
Connection Details
Displays the details of the host connection for this application.
Properties
Displays the properties for this application.

Template and transformation area

The template and transformation area is the main part of the transformation view and is where all screen transformations are displayed. It is also the area where error messages, disconnect messages, and macro handler panels, are displayed.

Pop-up menu
A pop-up menu is provided in the transformation area that enables the user to view information for the current application. The following menu item is available:
Properties
Selecting this item opens the properties dialog for the current application. See Pop-up menu for more information.
Runtime status panels
As with HATS Web applications, a panel is displayed to the user if the HATS rich client application stops, disconnects, has an error, or is busy.

Host keypad

The host keypad displays the host keys you select to display in the project settings. See Host keypad for how to configure your host keypad. By default, no host keypad is displayed.

OIA status area

The OIA status area displays the information about the state of the session that you configure in the project settings. See Operator information area for how to configure your OIA status area.

Closing the view

The connection to the host system is closed when the view is closed. This occurs if the user explicitly closes the view or closes the rich client environment. When closed, the set of actions defined in the disconnect and stop events are processed.

Note:
If the user attempts to close the view while HATS is still processing a request, for example, the user clicked a button which started playing a macro, a message is displayed indicating that the session is busy. If the user continues, the session is terminated and actions in the disconnect and stop events may not get run.

Workstation ID prompting

When you create or edit a host connection, you can specify that the user be prompted to enter a workstation ID for connecting to a 5250 host. See Creating a connection for more information. If you specify prompting for the workstation ID, the user is presented a prompt dialog when first connecting to the host. The user can then enter a workstation ID in the Workstation ID field.

A check box is provided that, if selected, causes the workstation ID to be saved and prevents future prompting. If the check box is selected, prompting can later be restored by disabling the workstationID connection parameter override in the application's properties. See Connection Parameters for more information.

LU name prompting

When you create or edit a host connection, you can specify that the user be prompted to enter an LU name for connecting to a 3270E host. See Creating a connection for more information. If you specify prompting for the LU name, the user is presented a prompt dialog when first connecting to the host. The user must enter an LU name in the LU Name field.

A check box is provided that, if selected, causes the LU name to be saved and prevents future prompting. If the check box is selected, prompting can later be restored by disabling the LUName connection parameter override in the application's properties. See Connection Parameters for more information.

Preferences

By default, users can access preferences by selecting File > Preferences > Host Access from the runtime platform menu bar. The pages displayed are registered in the runtime extension plug-in. If you do not want to provide these functions to the user, you can remove the applicable declarations in the plugin.xml file of the runtime extension plug-in. For more information about how to do this, refer to the description of the org.eclipse.ui.preferencePages extension point ID in the HATS runtime extension plug-in section of the HATS Rich Client Platform Programmer's Guide. The following preference settings can be selected:

Print preferences

The following print preferences can be set by the user for applications that support 3270 printing:

Default print job actions
On start
The following preferences can be set when a print job starts:
  • Activate print jobs view
  • Display a message

    A message is displayed indicating to the user that a print job has started.

  • None
On complete
The following preferences can be set when a print job completes:
  • Activate print jobs view
  • Display a message

    The message, Print job {0} has completed., is displayed. Where {0} is the print job name.

  • Open
  • None
On error
The following preferences can be set when a print job fails:
  • Activate print jobs view
  • Display a message

    The message, Print job {0} has encountered an error., is displayed. Where {0} is the print job name.

  • Delete
  • None
Delete print jobs on exit
If selected, print jobs are automatically deleted when the environment is closed. This may be useful for users who share a workstation with others.

Troubleshooting preferences

The following troubleshooting preferences can be set by the user. For more information about log and trace settings, see Administering HATS rich client applications.

Trace settings
The following HATS runtime traces can be enabled by the user:
Enable runtime tracing
Enables tracing for the connections in your application.
Enable widget tracing
Enables tracing for widgets in your application.
Enable action tracing
Enables tracing for event actions in your application.
Enable HOD tracing
Enables Host On-Demand tracing in your application.
Enable component tracing
Enables tracing for components in your application.
Enable util tracing
Enables tracing for runtime utilities in your application.
Enable macro tracing
Traces the playing of macros. Because of its effect on system performance, you should use this trace only for debugging macros.
Show display terminal
Select this box to show a view of the host application in the display terminal while the HATS application is running.
Enable host simulation recording
Select this box to enable host simulation recording during runtime. Recording starts the next time the rich client application starts and ends when the host session is closed, for example when the user clicks the disconnect item on the transformation view toolbar.

The trace file is saved in the host simulations folder in the rich client environment. For example, in the Eclipse RCP environment on Windows it is saved in, <Eclipse installation directory>\plugins\<ApplicationName_version>\profiles\hostsimulations\. In the Lotus Notes environment on Windows it is saved in, <Lotus Notes installation directory>\Data\workspace\applications\eclipse\plugins\<ApplicationName_version>\profiles\hostsimulations\. In the Lotus Expeditor Client environment on Windows it is saved in, <Lotus Expeditor Client installation directory>\shared\eclipse\plugins\<ApplicationName_version>\profiles\hostsimulations\. In the Lotus Expeditor Client environment on Linux it is saved in, /opt/IBM/Lotus/Expeditor/shared/eclipse/plugins/<ApplicationName_version>/profiles/hostsimulations/.

Trace files are named using the following template, ApplicationName_ConnectionName_Date(yyyymmdd)_Time(hhmmss)_Number, for example, MyApplication_main_20060101_134543_1.

Trace output tab
File name
The name used as a template to generate unique sets of trace files for each runtime environment. The default is trace.txt.
Maximum file size
Specifies the maximum file size in KB. The default is 10240.
Maximum number of files
Specifies the maximum number of trace files. The default is 5.
View button
Click this button to cause the trace files to be opened in the default system editor. All the trace files that match the specified template file name are combined into a single file and then opened. For example, if trace.txt is the template file name, and trace1.txt, trace2.txt, and trace3.txt are present, then they are all combined into a single file, in the correct order, and opened. If no default editor is configured, an error message is displayed.
Clear button
Click this button to be prompted whether to clear the current trace file.
Messages output tab
File name
The name used as a template to generate unique sets of log files for each runtime environment. The default is messages.txt.
Maximum file size
Specifies the maximum file size in KB. The default is 512.
Maximum number of files
Specifies the maximum number of trace files. The default is 2.
View button
Click this button to cause the current log file to be opened in the default system editor. All the log files that match the specified template file name are combined into a single file and then opened. For example, if messages.txt is the template file name, and messages1.txt, messages2.txt, and messages3.txt are present, then they are all combined into a single file, in the correct order, and opened. If no default editor is configured, and error message is displayed.
Clear button
Click this button to be prompted whether to clear the current log file.
Simulation output tab
Maximum number of files
When the Enable host simulation recording check box is selected, this field specifies the maximum number of simulation output files. The default is 10. If a new simulation file exceeds the maximum setting, the oldest simulation file is deleted.
Gather button
Click this button to gather all the artifacts required by IBM® Support to diagnose a problem. In the Gather Problem Determination Information wizard, select the check box for the application for which you want information gathered and specify the destination .zip file. The following information is collected and gathered into the destination .zip file:
Restore Defaults button
Click this button to cause all settings in the panel to revert to default values.
Apply button
Click this button to save the settings in the runtime.properties file in the runtime extension plug-in.

HATS rich client considerations and limitations

Following is a list of considerations and limitations when using HATS rich client applications: