+ All Categories
Home > Documents > WebFacing and Hats - gomitec.com and Hats.pdf · RLU JavaTM Trace Debug Profiling DB XML App Server...

WebFacing and Hats - gomitec.com and Hats.pdf · RLU JavaTM Trace Debug Profiling DB XML App Server...

Date post: 20-Apr-2018
Category:
Upload: doandien
View: 230 times
Download: 2 times
Share this document with a friend
59
© 2001 2006 IBM Corporation IBM WebFacing Tool and Host Access Transformation Services (HATS) WebSphere Development Studio Client (WDSc) Session: 103B-2 Don Yantzi and iSeries AD Team [email protected]
Transcript

© 2001 2006 IBM Corporation

IBM WebFacing Tool andHost Access Transformation Services (HATS)

WebSphere Development Studio Client (WDSc)

Session: 103B-2

Don Yantzi and iSeries AD [email protected]

2© 2001 2006 IBM CorporationIBM

IBM WebFacing and HATS Tools

Table of contents

▪ WebSphere Development Studio Client

▪ What is: WebFacing, HATS, and WDHT?

▪ HATS

▪ IBM WebFacing Tool

▪ Customizing WebFacing

▪ Summary

3© 2001 2006 IBM CorporationIBM

IBM WebFacing and HATS Tools

iSeries Developer Roadmap - ArchitectureEnhance the

End User Experience

Create aModular

Architecture

IntegrateApplications

IntegrateBusinessProcesses

Improveyour

ProductivityTraditional

RPG/COBOL

52505250

RPG/COBOLILE and Java

HTML/JSP

DB2 and SQL

Connectors Process Choreography

DB2 and SQL

RPG/COBOL

XML XML

Portlets

GUI GUI5250GUI

ILE/Java

Java/EJB

ILE

GUI

Application Technology

User Interface

Portlets

HTML/JSP HTML/JSPHTML/JSP

5250

5250

5250

Servlets ServletsServletsServlets

Portlets Portlets

XML XML

DB2 and SQL

Web Services Web Services

IBM WebFacing IBM WebFacing ToolTool

Remote System Remote System ExplorerExplorer

IBM WebSphere IBM WebSphere Host Access Host Access

Transformation Transformation ServerServer

WebSphere Development Studio Client for iSeriesWebSphere Development Studio Client Advanced for iSeries

4© 2001 2006 IBM CorporationIBM

IBM WebFacing and HATS Tools

Sample J2EE web application

Modern Web App Architecture

ApplicationServerServlet

JSPsJavaBeans Enterprise

SystemInternet

HTTPServer

Tier 1 Tier 2 Tier 3

Web browser

5© 2001 2006 IBM CorporationIBM

IBM WebFacing and HATS Tools

RPGWebSphere Development Studio COBOL

C/C++ PDMSEU SDARLU

JavaTM

Trace

Debug

Profiling DB XML AppServer

WebStruts Web

Service

iSeriesiSeries iSeries iSeries WebFacingWDHT

support RSE

iSeriesProjects

UnlimitedLicenses

WebSphere Development Studio Client V6.0.1 based on RWD V6

+CODE+VisualAge RPG

www.ibm.com/software/awdtools/iseries

JSFEGLJava

generation

Current 5722-WDS customers with software subscriptionfor V5R3, to upgrade to WDSc V6.0 use feature #: 2656Available after GA

HATSToolkit

Upgrade from WDSC 6.0 to 6.0.1 using Rational Product updater

WDSc LiteTechnology preview

NewNew

6© 2001 2006 IBM CorporationIBM

IBM WebFacing and HATS Tools

WebSphere Development Studio Client Advanced Edition 6.0.1

Java

Trace

Debug

Profiling DB XML AppServer

WebStruts Web

Service

iSeriesiSeries iSeries * iSeries WebFacing *WDHT

support RSE

iSeriesProjects

Workstation License order through Passport Advantage http://www.lotus.com/services/passport.nsf/WebDocs/Passport_Advantage_Home

+CODE+VisualAge RPG

www.ibm.com/software/awdtools/iseries

JSFEGLJava

generation

EJB *

HATSToolkit

EGL *COBOL

generation

Test *Cases

Portal *ToolkitJ2EE *

WebSphere Development Studio Client V6.0.1 based on RAD V6

Upgrade from WDSC 6.0 to 6.0.1 using Rational Product updater

WDSc LiteTechnology preview

NewNew

7© 2001 2006 IBM CorporationIBM

IBM WebFacing and HATS Tools

HATS Before and After

8© 2001 2006 IBM CorporationIBM

IBM WebFacing and HATS Tools

WebFacing Before and After

9© 2001 2006 IBM CorporationIBM

IBM WebFacing and HATS Tools

Table of contents

▪ WebSphere Development Studio Client

▪ What is: WebFacing, HATS, and WDHT?

▪ HATS

▪ IBM WebFacing Tool

▪ Customizing WebFacing

▪ Summary

10© 2001 2006 IBM CorporationIBM

IBM WebFacing and HATS Tools

What is WebFacing?

▪ A Re-Facing tool and runtime for iSeries 5250 applications

▪ Development-time conversion– Of 5250 display file DDS source into Web page source (JavaServer Pages

or JSPs)

▪ Run-time intercept – Of workstation data manager I/O to pass application data to generated Web

application, prior to creation of 5250 data stream– Enables existing applications to run without change, indeed without even

knowing they have been WebFaced

11© 2001 2006 IBM CorporationIBM

IBM WebFacing and HATS Tools

Goals of WebFacing

▪ Quick conversionUsing existing skills

▪ Unlimited refinementUsing existing SDA skills, or using Web skills

▪ Cost effectiveTool part of ubiquitous tool set Runtime part of operating systemOnly pre-req is WebSphere Application Server Express or higher

12© 2001 2006 IBM CorporationIBM

IBM WebFacing and HATS Tools

iSeries Classic Program Model

Workstation Data

Manager

Business Logic

Screen I/O and

Flow LogicDB I/O

RPG Application

Write recordRead record

Data buffers

enter customer number:_____

Time:8:05 date:Oct 22,2000

Enter

5250

1. Program puts up screen, waits for input2. Program processes input in business logic,

decides next screen to show

1

2

ViewModel

13© 2001 2006 IBM CorporationIBM

IBM WebFacing and HATS Tools

DataBuffer

DataBuffer

enter customer number:_____

Time:8:05 date:Oct 22,2000

Enter

TraditionalModel

5250 screens

Business Logic

DB Logic

User InterfaceLogic

*PGM

Browser

WebFacingConverts Display File source (DSPF) to JSPs & Servlets

OS/400 decides to create 5250 stream OR Web InterfaceApplications run "as is", no need to change

Quickly web-enable many applications

DisplayFile (DSPF)

DDS

JSPs &Javascript

WebSphere App Server

WebFacingConversion done during developmen

t

Better User Interface: IBM WebFacing Tool

14© 2001 2006 IBM CorporationIBM

IBM WebFacing and HATS Tools

Servlets& JSPs

DataBuffer

enter customer number:_____

Time:8:05 date:Oct 22,2000

Enter

5250 screens

Business Logic

DB Logic

User InterfaceLogic

*PGM

Browser

Host Access Transformation ServerConverts 5250 Data Stream to HTML "on the fly"Applications run "as is", no need to changeJSPs are created with full customization

Quickly web-enable many applicationsWDHT enablement in HATS 6.0.4 for i5/OS V5R4

Using WDHT will allow to run applications without using OLTP

DisplayFile (DSPF)

DDS

HATS Studio (Toolkit) for Customizing

WebSphere App Server

Better User Interface: HATS

HATS Engine(default rules)

5250 Datastream

TraditionalModel

WDHT

15© 2001 2006 IBM CorporationIBM

IBM WebFacing and HATS Tools

DataBuffer

WebFacing runtime

enter customer number:_____

Time:8:05 date:Oct 22,2000

Enter

TraditionalModel

5250 screens

Business Logic

DB Logic

User InterfaceLogic

*PGM

Browser

WDHT Accepts mix of WebFaced UI and not converted display filesNeed to buy Runtime license No need for OLTP

Quickly web-enable many applications, mix of WebFaced and non WebFaced UI allowed No need to install HATS toolkit for WDHT enablement in WDSc workbench

WF conversion done?

DisplayFile (DSPF)

WF JSPs WebSphere App Server

IBM WebFacing Deployment Tool with HATS technology (WDHT)

HATS HSR Engine(default rules)

5250 stream WDHT

16© 2001 2006 IBM CorporationIBM

IBM WebFacing and HATS Tools

Table of contents

▪ WebSphere Development Studio Client

▪ What is: WebFacing, HATS, and WDHT?

▪ HATS

▪ IBM WebFacing Tool

▪ Customizing WebFacing

▪ Summary

17© 2001 2006 IBM CorporationIBM

IBM WebFacing and HATS Tools

Create a New HATS Project

Use File->New->Other

18© 2001 2006 IBM CorporationIBM

IBM WebFacing and HATS Tools

Specify Project Name and Target Application Server

19© 2001 2006 IBM CorporationIBM

IBM WebFacing and HATS Tools

Host Information

20© 2001 2006 IBM CorporationIBM

IBM WebFacing and HATS Tools

Chose and Existing Template for Web Pages

21© 2001 2006 IBM CorporationIBM

IBM WebFacing and HATS Tools

Done. Now time to run...New HATS Project

Project Settings Editorto modify settings

and customizations

22© 2001 2006 IBM CorporationIBM

IBM WebFacing and HATS Tools

Running (With No Customizations Yet!)

23© 2001 2006 IBM CorporationIBM

IBM WebFacing and HATS Tools

Table of contents

▪ WebSphere Development Studio Client

▪ What is: WebFacing, HATS, and WDHT?

▪ HATS

▪ IBM WebFacing Tool

▪ Customizing WebFacing

▪ Summary

24© 2001 2006 IBM CorporationIBM

IBM WebFacing and HATS Tools

WebFacing Scenario

1. Create new WebFacing project– Specify members to convert, look-and-feel style, how to call/invoke the

application2. Convert the project

– Creates Web stuff from the DDS and UIM source3. Run it!

– Select “Run on Server” to run in built-in WebSphere4. Refine it

– Using Web Settings in CODE Designer (launched from WebFacing)– Using project’s Properties dialog

5. Repeat6. Export as EAR file, import into WebSphere Application Server on

iSeries– Or use built-in server-tools support to publish to WebSphere Application Server

on iSeries

25© 2001 2006 IBM CorporationIBM

IBM WebFacing and HATS Tools

Create a New WebFacing Project1a

Use File->New->Other

26© 2001 2006 IBM CorporationIBM

IBM WebFacing and HATS Tools

Tip: create new EAR file per project

27© 2001 2006 IBM CorporationIBM

IBM WebFacing and HATS Tools

Select DSPF and MNUDDS members to convert

Advanced option only

Enable Single Sign on support

System screen support now supported by default

28© 2001 2006 IBM CorporationIBM

IBM WebFacing and HATS Tools

Select DSPF and MNUDDS members to convert

29© 2001 2006 IBM CorporationIBM

IBM WebFacing and HATS Tools

Select UIM panel groups (help) to convert

30© 2001 2006 IBM CorporationIBM

IBM WebFacing and HATS Tools

Specify how to invoke application

Specify how to signon

Can specify multiple invocation commands- Each becomes a button in index.html

31© 2001 2006 IBM CorporationIBM

IBM WebFacing and HATS Tools

Selected style is previewed here

Select a style for the look and feel

32© 2001 2006 IBM CorporationIBM

IBM WebFacing and HATS Tools

That’s it! Press Finish to create project

33© 2001 2006 IBM CorporationIBM

IBM WebFacing and HATS Tools

Right-click and select Convert to do conversion

Usually 1 – 5 minutes per member

Can also selectively

convert individual

display files

34© 2001 2006 IBM CorporationIBM

IBM WebFacing and HATS Tools

Conversion▪ Creates Java Server Page and XML descriptions per record format:

– XML describes data,view,and feedback for record format– JSP displays output and prompts for input

▪ Creates an "invocation page" per conversion project: (index.jsp)– Web page with links– Each link results in starting a job, running a user-supplied CL command which starts the

application

35© 2001 2006 IBM CorporationIBM

IBM WebFacing and HATS Tools

Conversion gives detailed log of all keywords encountered

Not all keywords supported yet…. Log tells you if there’s a problem

See product help for list of unsupported keywordsRun WebFacing Survey tool to check your DDS

36© 2001 2006 IBM CorporationIBM

IBM WebFacing and HATS Tools

Run On Server runs Web app in built-in WebSphere Test Environment

Time to run it!

Starts index.jsp

37© 2001 2006 IBM CorporationIBM

IBM WebFacing and HATS Tools

index.jspregular browser window

Assumption: you will replace index.jsp with your own Web page for invoking the app(s)

38© 2001 2006 IBM CorporationIBM

IBM WebFacing and HATS Tools

3

Default logon page logon.jsp

– you can define your own

Tip: dbl click tab to maximize

39© 2001 2006 IBM CorporationIBM

IBM WebFacing and HATS Tools

3

WINDOW keyword!

FKeys become buttons or links,

depending on style chosen

40© 2001 2006 IBM CorporationIBM

IBM WebFacing and HATS Tools

Table of contents

▪ WebSphere Development Studio Client

▪ What is: WebFacing, HATS, and WDHT?

▪ HATS

▪ IBM WebFacing Tool

▪ Customizing WebFacing

▪ Summary

41© 2001 2006 IBM CorporationIBM

IBM WebFacing and HATS Tools

3 Ways to Customize WebFaced Applications

1. By Properties– Much can be affected in the conversion and runtime, including overall style, by use

of properties and style wizard

2. By Web Settings– These are DDS comments for affecting the conversion results. Easy to set with the

CODE Designer tool

3. By Editing the Output– Because of the built-in Java and JSP editors, you can always edit what WebFacing

generates– But be careful….

42© 2001 2006 IBM CorporationIBM

IBM WebFacing and HATS Tools

1. Customizing By Properties

These affect conversion

These affect runtime

These affect style

43© 2001 2006 IBM CorporationIBM

IBM WebFacing and HATS Tools

Example of properties

you can change

44© 2001 2006 IBM CorporationIBM

IBM WebFacing and HATS Tools

Styles

You can also significantly change the

look and feel of the whole

by editing the .css and .jspfiles of the

style

Tip: Use Save As

from style’s popup menu

45© 2001 2006 IBM CorporationIBM

IBM WebFacing and HATS Tools

2. Customizing By Web Settings CODE Designer =

modern SDA

1. Select field

2. Set Web Setting

Mapping hyperlink to entering ‘1’ in another

field and pressing Enter

46© 2001 2006 IBM CorporationIBM

IBM WebFacing and HATS Tools

2. Customizing By Web Settings V6.0 In workbench

1. Select field

2. Set Web Setting

Mapping hyperlink to entering ‘1’ in another

field and pressing Enter

DDSOutline view

47© 2001 2006 IBM CorporationIBM

IBM WebFacing and HATS Tools

2nd column is a hyperlink mapped

to ‘1’ in first column and Enter

1st column is hidden

1st column heading is

hidden

New prompt text

AfterCustomizing

48© 2001 2006 IBM CorporationIBM

IBM WebFacing and HATS Tools

3. Customizing By Editing Output

Use built-in or external editors to

edit output of

conversion

49© 2001 2006 IBM CorporationIBM

IBM WebFacing and HATS Tools

3. Customizing By Editing OutputWhat happens on subsequent

conversion?

The file is replaced with

new file!

Either replace or manually

merge

However, the edited version is

available in history

50© 2001 2006 IBM CorporationIBM

IBM WebFacing and HATS Tools

Courtesy: APPCON

Work with products

APPCONAPPCON

APPCON offers APPCON offers WebFacing WebFacing services!services!

www.appcon4.comwww.appcon4.com

Example: APPCON Green Screen

51© 2001 2006 IBM CorporationIBM

IBM WebFacing and HATS Tools

Courtesy: APPCON

Work with products

The user has The user has used used

WebSettings WebSettings to create the to create the small images small images in the subfilein the subfile

Example: APPCON Web Page

52© 2001 2006 IBM CorporationIBM

IBM WebFacing and HATS Tools

Summary

▪ WebSphere Development Studio Client

▪ What is: WebFacing, HATS, and WDHT?

▪ HATS

▪ IBM WebFacing Tool

▪ Customizing WebFacing

▪ Summary

53© 2001 2006 IBM CorporationIBM

IBM WebFacing and HATS Tools

Deploying to Remote WebSphere

▪ Use File->Export to export EAR file– Export to a mapped IFS drive– Use WebSphere Administrator Console to import EAR file– Bring up Browser, enter URL to start application

▪ Or, configure a server in Server Tools for iSeries WebSphere Application Server and use Publish to push to it, and then Run On Server to run it

▪ Tip: look at Change Management tools like SoftLanding’s to automate delta deployments

54© 2001 2006 IBM CorporationIBM

IBM WebFacing and HATS Tools

New Book

ISBN: 1-931182-09-4

www.mcpressonline.com/ibmpress

55© 2001 2006 IBM CorporationIBM

IBM WebFacing and HATS Tools

Redbook

SG24-6801-00 www.ibm.com/redbooks

56© 2001 2006 IBM CorporationIBM

IBM WebFacing and HATS Tools

Redbook for the more advanced WebFacing user

SG24-6331-00 www.ibm.com/redbooks

57© 2001 2006 IBM CorporationIBM

IBM WebFacing and HATS Tools

New Redbook

SG24-6961-01www.ibm.com/redbooks

58© 2001 2006 IBM CorporationIBM

IBM WebFacing and HATS Tools

Disclaimer

▪ Acknowledgment:– This presentation is a collaborative effort of the IBM Toronto iSeries

Application Development presentation team, including work done by:– Claus Weiss, Phil Coulthard, George Farr, Don Yantzi, Satish

Gungabeesoon, Alison Butterill

▪ Disclaimer:– The information contained in this document has not been submitted to any

formal IBM test and is distributed on an as is basis without any warranty either express or implied. The use of this information or the implementation of any of these techniques is a customer responsibility and depends on the customers' ability to evaluate and integrate them into the customers' operational environment. While each item may have been reviewed by IBM for accuracy in a specific situation, there is no guarantee that the same or similar results will result elsewhere. Customers attempting to adapt these techniques to their own environment do so at their own risk.

▪ Reproduction:– The base presentation is the property of IBM Corporation. Permission must

be obtained PRIOR to making copies of this material for any reason.

59© 2001 2006 IBM CorporationIBM

IBM WebFacing and HATS Tools

8 IBM Corporation 1994-2006. All rights reserved.References in this document to IBM products or services do not imply that IBM intends to make them available in every country.

The following terms are trademarks of International Business Machines Corporation in the United States, other countries, or both:

Rational is a trademark of International Business Machines Corporation and Rational Software Corporation in the United States, other countries, or both.Intel, Intel Logo, Intel Inside, Intel Inside logo, Intel Centrino, Intel Centrino logo, Celeron, Intel Xeon, Intel SpeedStep, Itanium, and Pentium are trademarks or registered

trademarks of Intel Corporation or its subsidiaries in the United States and other countries.Linux is a trademark of Linus Torvalds in the United States, other countries, or both.Microsoft, Windows, Windows NT, and the Windows logo are trademarks of Microsoft Corporation in the United States, other countries, or both.UNIX is a registered trademark of The Open Group in the United States and other countries.Java and all Java-based trademarks are trademarks of Sun Microsystems, Inc. in the United States, other countries, or both.Other company, product or service names may be trademarks or service marks of others.

Information is provided "AS IS" without warranty of any kind.

All customer examples described are presented as illustrations of how those customers have used IBM products and the results they may have achieved. Actual environmental costs and performance characteristics may vary by customer.

Information concerning non-IBM products was obtained from a supplier of these products, published announcement material, or other publicly available sources and does not constitute an endorsement of such products by IBM. Sources for non-IBM list prices and performance numbers are taken from publicly available information, including vendor announcements and vendor worldwide homepages. IBM has not tested these products and cannot confirm the accuracy of performance, capability, or any other claims related to non-IBM products. Questions on the capability of non-IBM products should be addressed to the supplier of those products.

All statements regarding IBM future direction and intent are subject to change or withdrawal without notice, and represent goals and objectives only. Contact your local IBM office or IBM authorized reseller for the full text of the specific Statement of Direction.

Some information addresses anticipated future capabilities. Such information is not intended as a definitive statement of a commitment to specific levels of performance, function or delivery schedules with respect to any future products. Such commitments are only made in IBM product announcements. The information is presented here to communicate IBM's current investment and development activities as a good faith effort to help with our customers' future planning.

Performance is based on measurements and projections using standard IBM benchmarks in a controlled environment. The actual throughput or performance that any user will experience will vary depending upon considerations such as the amount of multiprogramming in the user's job stream, the I/O configuration, the storage configuration, and the workload processed. Therefore, no assurance can be given that an individual user will achieve throughput or performance improvements equivalent to the ratios stated here.

Photographs shown are of engineering prototypes. Changes may be incorporated in production models.

Trademarks and Disclaimers

iSeries

System i5IBM (logo)eServer

OS/400IBMAS/400e

i5/OSe-business on demandAS/400


Recommended