IBM WebSphere Host Access Transformation Services (HATS) V5

Tutorial Module 4

Migrating a Host Publisher v4 application into HATS v5 Studio and running on server

Abstract

This tutorial is designed for anyone who wants to learn how to migrate a Host Publisher v4 application and bring it into a HATS v5 project.  The Host Publisher v4 application is a simple application consisting of one Integration Object and two JSPs.  This module will go through the basic steps to bring it in and run the application within the HATS v5 studio environment.

Assumptions / Requirements

It is assumed that the user has already installed WebSphere Studio 5.1 and the HATS Studio v5 software on a supported platform.  The platform requirements were covered in the HATS Tutorial - Module 1. It is also assumed that a network connection can be made to the publicly accessible IBM Demonstration  iSeries host at: Connectivity to this host can be tested by using any TN5250 emulator configured for the settings above. A WebSphere application server that meets the requirements for HATS needs to be available if you want to deploy the HATS application to a production WebSphere server.  It is assumed that you are already familiar with the WebSphere application server console.

Topics covered on this tutorial

Host Publisher v4 application

A sample Host Publisher v4 application is used for this exercise. It is a simple inquiry search application using the boats application that is used for other demo exercises.  A Host Publisher v4 application EAR file is provided for you to use.  This EAR application file contains the Host Publisher resources to complete this module.  The two main components that we will be working with is the two JSPs and and the one Integration Object that is part of the EAR file.

Figure 1. Host Publisher v4 Application Integrator with boatloop application opened.

Figure 2. Example of creating J2EE archives for use with HATS v5 Studio.

Figure 3. boatloop.ear resides in the HostPub\Studio\Applications\boatloop folder if you use default locations.

Create a HATS v5 project

With the HATS v5 studio open, create a new project for this module using the following settings: Figure 4. Initial Project View of HATS module 4.

Project folders that will be used when using Host Publisher applications with HATS v5:

Import Host Publisher EAR into the HATS project

Figure 5. Importing Host Publisher EAR into the HATS project.

  Figure 6. Import Host Publisher EAR panel.

Figure 7. Migration Report indicating the migration ran successfully.

Figure 8.  Automatically Generate IO message box.
 

Figure 9.  Navigator view of project.  Notice that the Boatloop.jar (Host Publisher Integration Object) is under the Web Content/WEB-INF/lib folder.

 
 

Figure 10. HATS project view with Host Publisher Java Server Pages from the Host Publisher application in the project.

Running the imported Host Publisher application on the server

Figure 11. Boatloopinp JSP in browser after Run on Server selected.

Figure 12.  Boatloopout.jsp after making All for the selection and clicking on Submit button.

 

Conclusion

In this tutorial you were shown how to import a Host Publisher v4 application into HATS v5 studio and run it on the server and also where the Host Publisher application files are kept in the HATS v5 project.

Copyright:  Licensed Materials - Property of IBM
             (C) Copyright IBM Corp. 2002, 2003  All rights reserved.
             U.S. Government Users Restricted Rights -
             Use, duplication or disclosure restricted by
             GSA ADP Schedule Contract with IBM Corp.