Download HATS - mitec

Document related concepts
no text concepts found
Transcript
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]
© 2001 2006 IBM Corporation
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
IBM
© 2001 2006 IBM Corporation
2
IBM WebFacing and HATS Tools
5250
5250
GUI
Create a
Modular
Architecture
Integrate
Applications
GUI
Integrate
Business
Processes
5250
5250
Enhance the
End User
Experience
5250
Traditional
Improve
your
Productivity
5250
iSeries Developer Roadmap - Architecture
GUI
GUI
User Interface
RPG/COBOL
RPG/COBOL
RPG/COBOL
ILE
ILE/Java
ILE and Java
Remote System
Explorer
Application Technology
Java/EJB
HTML/JSP
HTML/JSP
HTML/JSP
HTML/JSP
Servlets
Servlets
Servlets
Servlets
Portlets
Portlets
Portlets
Portlets
XML
XML
XML
XML
Connectors
Process
Choreography
Web Services
Web Services
DB2 and SQL
DB2 and SQL
IBM WebFacing
Tool
IBM WebSphere
Host Access
Transformation
Server
IBM
DB2 and SQL
WebSphere Development Studio Client for iSeries
WebSphere Development Studio Client ©
Advanced
forCorporation
iSeries
2001 2006 IBM
3
IBM WebFacing and HATS Tools
Modern Web App Architecture
HTTP
Server
Application
Server
Servlet
Web browser
JSPs
Java
Beans
Internet
Tier 1
Tier 2
Enterprise
System
Tier 3
Sample J2EE web application
IBM
© 2001 2006 IBM Corporation
4
IBM WebFacing and HATS Tools
WebSphere Development Studio
RPG
COBOL
PDM
SEU
SDA
Upgrade from WDSC 6.0 to 6.0.1 using Rational RLU
C/C++
Current 5722-WDS customers with software subscription
for V5R3, to upgrade to WDSc V6.0 use feature #: 2656
Available after GA
Product updater
Unlimited
Licenses
iSeries
Java
TM
JSF
iSeries
Debug
EGL
Java
generation
Lite
New WDSc
Technology preview
iSeries
iSeries
Struts
Web
Web
Service
Trace
Profiling
Web
iSeries
Facing Projects
WDHT
RSE
support
DB
XML
+CODE
+VisualAge RPG
App
Server
HATS
Toolkit
www.ibm.com/software/awdtools/iseries
WebSphere Development Studio Client V6.0.1 based on RWD V6
IBM
© 2001 2006 IBM Corporation
5
IBM WebFacing and HATS Tools
WebSphere Development Studio Client Advanced Edition 6.0.1
Workstation License
order through Passport Advantage
Upgrade from WDSC 6.0 to 6.0.1 using Rational
Product updater
http://www.lotus.com/services/passport.nsf/WebDocs/Passport_Advantage_Home
iSeries
iSeries
Java
Debug
JSF
EGL
Java
generation
EGL *
COBOL
generation
iSeries *
iSeries
Struts
Web
Web
Service
Trace
EJB *
J2EE *
+CODE
+VisualAge RPG
Web
iSeries
Facing * Projects
WDHT
support
RSE
Profiling
DB
XML
Test *
Cases
Portal *
Toolkit
App
Server
HATS
Toolkit
Lite
New WDSc
Technology preview
www.ibm.com/software/awdtools/iseries
WebSphere Development Studio Client V6.0.1 based on RAD V6
IBM
© 2001 2006 IBM Corporation
6
IBM WebFacing and HATS Tools
HATS Before and After
IBM
© 2001 2006 IBM Corporation
7
IBM WebFacing and HATS Tools
WebFacing Before and After
IBM
© 2001 2006 IBM Corporation
8
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
IBM
© 2001 2006 IBM Corporation
9
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
IBM
© 2001 2006 IBM Corporation
10
IBM WebFacing and HATS Tools
Goals of WebFacing
▪ Quick conversion
ƒ Using existing skills
▪ Unlimited refinement
ƒ Using existing SDA skills, or using Web skills
▪ Cost effective
ƒ Tool part of ubiquitous tool set
ƒ Runtime part of operating system
ƒ Only pre-req is WebSphere Application Server Express or higher
IBM
© 2001 2006 IBM Corporation
11
IBM WebFacing and HATS Tools
iSeries Classic Program Model
Model
View
RPG Application
Business
Logic
DB I/O
Screen
I/O and
Flow
Logic
Write record
Read record
Data buffers
Time:8:05
Workstation
Data
Manager
date:Oct 22,2000
enter customer number:_____
Enter
5250
1 Program puts up screen, waits for input
1.
2.
2 Program processes input in business logic,
decides next screen to show
IBM
© 2001 2006 IBM Corporation
12
IBM WebFacing and HATS Tools
Better User Interface: IBM WebFacing Tool
Traditional
Model
*PGM
User Interface
Logic
Data
Buffer
DDS
Display
File (DSPF)
Time:8:05
date:Oct 22,2000
enter customer number:_____
Enter
Business Logic
WebFacing
Conversion
done during
developmen
t
DB Logic
Data
Buffer
5250 screens
JSPs &
Javascript
WebSphere App
Server
WebFacing
ƒConverts Display File source (DSPF) to JSPs & Servlets
yOS/400 decides to create 5250 stream OR Web Interface
ƒApplications run "as is", no need to change
Quickly web-enable many applications
IBM
Browser
© 2001 2006 IBM Corporation
13
IBM WebFacing and HATS Tools
Better User Interface: HATS
Traditional
Model *PGM
User Interface
Logic
Data
Buffer
DDS
Display
File (DSPF)
5250
Datastream
Time:8:05
date:Oct 22,2000
enter customer number:_____
Enter
Business Logic
5250 screens
DB Logic
WDHT
HATS Engine
(default rules)
HATS Studio (Toolkit) for
Customizing
Host Access Transformation Server
ƒConverts 5250 Data Stream to HTML "on the fly"
ƒApplications run "as is", no need to change
ƒJSPs are created with full customization
Servlets
& JSPs
WebSphere App
Server
Quickly web-enable many applications
WDHT enablement in HATS 6.0.4 for i5/OS V5R4
Using WDHT will allow to run applications
IBM without using OLTP
Browser
© 2001 2006 IBM Corporation
14
IBM WebFacing and HATS Tools
IBM WebFacing Deployment Tool with HATS
Traditional
technology (WDHT)
Model
*PGM
User Interface
Logic
Time:8:05
Data
Buffer
Display
File (DSPF)
date:Oct 22,2000
enter customer number:_____
Enter
Business Logic
5250 screens
DB Logic
5250 stream
WebFacing runtime
HATS HSR
Engine
(default rules)
WF conversion done?
WF JSPs
W
D
H
T
WebSphere App
Server
WDHT
ƒAccepts mix of WebFaced UI and not converted display files
yNeed to buy Runtime license
ƒNo need for OLTP
IBM
Browser
Quickly web-enable many applications, mix of WebFaced and
non WebFaced UI allowed
No need to install HATS toolkit for WDHT enablement in WDSc
© 2001 2006 IBM Corporation
workbench
15
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
IBM
© 2001 2006 IBM Corporation
16
IBM WebFacing and HATS Tools
Create a New HATS Project
Use File->New->Other
IBM
© 2001 2006 IBM Corporation
17
IBM WebFacing and HATS Tools
Specify Project Name and Target Application Server
IBM
© 2001 2006 IBM Corporation
18
IBM WebFacing and HATS Tools
Host Information
IBM
© 2001 2006 IBM Corporation
19
IBM WebFacing and HATS Tools
Chose and Existing Template for Web Pages
IBM
© 2001 2006 IBM Corporation
20
IBM WebFacing and HATS Tools
Done. Now time to run...
New HATS Project
Project Settings Editor
to modify settings
and customizations
IBM
© 2001 2006 IBM Corporation
21
IBM WebFacing and HATS Tools
Running (With No Customizations Yet!)
IBM
© 2001 2006 IBM Corporation
22
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
IBM
© 2001 2006 IBM Corporation
23
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
application
2. Convert the project
–
Creates Web stuff from the DDS and UIM source
3. Run it!
–
Select “Run on Server” to run in built-in WebSphere
4. Refine it
–
Using Web Settings in CODE Designer (launched from WebFacing)
–
Using project’s Properties dialog
5. Repeat
6. Export as EAR file, import into WebSphere Application Server on
iSeries
–
IBM
Or use built-in server-tools support to publish to WebSphere Application Server
on iSeries
© 2001 2006 IBM Corporation
24
IBM WebFacing and HATS Tools
1a
Create a New WebFacing Project
Use File->New->Other
IBM
© 2001 2006 IBM Corporation
25
IBM WebFacing and HATS Tools
Tip: create new EAR file per project
IBM
© 2001 2006 IBM Corporation
26
IBM WebFacing and HATS Tools
Enable Single Sign on support
Advanced option only
System screen support now supported by default
Select DSPF and MNUDDS members to convert
IBM
© 2001 2006 IBM Corporation
27
IBM WebFacing and HATS Tools
Select DSPF and MNUDDS members to convert
IBM
© 2001 2006 IBM Corporation
28
IBM WebFacing and HATS Tools
Select UIM panel groups (help) to convert
IBM
© 2001 2006 IBM Corporation
29
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
IBM
© 2001 2006 IBM Corporation
30
IBM WebFacing and HATS Tools
Select a style for the look and feel
Selected style is previewed here
IBM
© 2001 2006 IBM Corporation
31
IBM WebFacing and HATS Tools
That’s it! Press Finish to create project
IBM
© 2001 2006 IBM Corporation
32
IBM WebFacing and HATS Tools
Right-click and select Convert to do conversion
Can also
selectively
convert
individual
display files
Usually 1 – 5 minutes per member
IBM
© 2001 2006 IBM Corporation
33
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
IBM
© 2001 2006 IBM Corporation
34
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 keywords
Run WebFacing Survey tool to check your DDS
IBM
© 2001 2006 IBM Corporation
35
IBM WebFacing and HATS Tools
Starts index.jsp
Time to run it!
Run On Server runs Web app in built-in WebSphere Test Environment
IBM
© 2001 2006 IBM Corporation
36
IBM WebFacing and HATS Tools
index.jsp
regular browser window
Assumption: you will replace index.jsp with
your own Web page for invoking the app(s)
IBM
© 2001 2006 IBM Corporation
37
IBM WebFacing and HATS Tools
3
Tip: dbl click tab to
maximize
Default logon page
logon.jsp
– you can define your
own
IBM
© 2001 2006 IBM Corporation
38
IBM WebFacing and HATS Tools
3
FKeys become
buttons or links,
depending on style
chosen
WINDOW keyword!
IBM
© 2001 2006 IBM Corporation
39
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
IBM
© 2001 2006 IBM Corporation
40
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
IBM
–
Because of the built-in Java and JSP editors, you can always edit what WebFacing
generates
–
But be careful….
© 2001 2006 IBM Corporation
41
IBM WebFacing and HATS Tools
1. Customizing By Properties
These affect
conversion
These affect
runtime
These affect
style
IBM
© 2001 2006 IBM Corporation
42
IBM WebFacing and HATS Tools
Example of
properties
you can
change
IBM
© 2001 2006 IBM Corporation
43
IBM WebFacing and HATS Tools
Styles
Tip: Use
Save As
from style’s
popup
menu
You can also
significantly
change the
look and feel
of the whole
by editing the
.css and .jsp
files of the
style
IBM
© 2001 2006 IBM Corporation
44
IBM WebFacing and HATS Tools
2. Customizing By Web Settings
CODE
Designer =
modern
SDA
1. Select
field
2. Set Web
Setting
IBM
Mapping hyperlink to
entering ‘1’ in another
field and pressing Enter
© 2001 2006 IBM Corporation
45
IBM WebFacing and HATS Tools
2. Customizing By Web Settings V6.0
In workbench
DDS
Outline view
1. Select
field
2. Set Web
Setting
IBM
Mapping hyperlink to
entering ‘1’ in another
field and pressing Enter
© 2001 2006 IBM Corporation
46
IBM WebFacing and HATS Tools
After
Customizing
New prompt text
1st column
heading is
hidden
1st column
is hidden
IBM
2nd column is a
hyperlink mapped
to ‘1’ in first
column and Enter
© 2001 2006 IBM Corporation
47
IBM WebFacing and HATS Tools
3. Customizing By Editing Output
Use built-in
or external
editors to
edit output
of
conversion
IBM
© 2001 2006 IBM Corporation
48
IBM WebFacing and HATS Tools
3. Customizing By Editing Output
What happens
on subsequent
conversion?
The file is
replaced with
new file!
However, the
edited version is
available in
history
Either
replace or
manually
merge
IBM
© 2001 2006 IBM Corporation
49
IBM WebFacing and HATS Tools
Example: APPCON Green Screen
Work with products
APPCON
Courtesy: APPCON
IBM
APPCON offers
WebFacing
services!
www.appcon4.com
© 2001 2006 IBM Corporation
50
IBM WebFacing and HATS Tools
Example: APPCON Web Page
Work with products
The user has
used
WebSettings
to create the
small images
in the subfile
Courtesy: APPCON
IBM
© 2001 2006 IBM Corporation
51
IBM WebFacing and HATS Tools
Summary
▪ WebSphere Development Studio Client
▪ What is: WebFacing, HATS, and WDHT?
▪ HATS
▪ IBM WebFacing Tool
▪ Customizing WebFacing
▪ Summary
IBM
© 2001 2006 IBM Corporation
52
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
IBM
© 2001 2006 IBM Corporation
53
IBM WebFacing and HATS Tools
New Book
ISBN: 1-931182-09-4
www.mcpressonline.com/ibmpress
IBM
© 2001 2006 IBM Corporation
54
IBM WebFacing and HATS Tools
Redbook
SG24-6801-00
www.ibm.com/redbooks
IBM
© 2001 2006 IBM Corporation
55
IBM WebFacing and HATS Tools
Redbook for the more advanced WebFacing user
SG24-6331-00
www.ibm.com/redbooks
IBM
© 2001 2006 IBM Corporation
56
IBM WebFacing and HATS Tools
New Redbook
SG24-6961-01
www.ibm.com/redbooks
IBM
© 2001 2006 IBM Corporation
57
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.
IBM
© 2001 2006 IBM Corporation
58
IBM WebFacing and HATS Tools
Trademarks and Disclaimers
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:
AS/400
e-business on demand
i5/OS
AS/400e
IBM
OS/400
eServer
IBM (logo)
System i5
iSeries
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.
IBM
© 2001 2006 IBM Corporation
59