Chapter14 WebSphere Application Server On ZOS
Chapter14 WebSphere Application Server On ZOS
Chapter objectives
Be able to:
List the six qualities of the J2EE Application
model
Give three reasons for running WebSphere
Application Server under z/OS
Name three connectors to CICS, DB2, and
IMS
cell J2EE
CR SR
CGI cluster
EIS node
JMX
z/OS
Java application
Address Java
Space
Virtual
Machine bytecodes Unicode
JVM
Shared Java code C statements
ASCII
Language Environment Shared C code
This layer has
the calls to the
platform specific C runtime library
SAF z/OS UNIX DFSMS code
net (C code) awt
WLM
HFS
ZFS
RACF SMH UNIX
MVS
Dataset System EBCDIC
DB Services
RRS
sockets X11
Posix interface
C runtime library
JVM in z/OS LE
Process
LE
Java
Threads
Enclave
Java
Threads
Java C/C++ main
Heap Threads routine
Java
Threads
Java
Threads
Subroutine
Java
Threads
LE Heap
Storage
Thread stack JVM Enclave
Runtime specific
data area data
Thread stack
System
System Data shared
System
Thread
Thread
Thread between
enclaves
Method area JVM
DD = Deployment Descriptor
1. 2.
3.
5.
4.
Basic Model
Server
Web
browser HTTP Application Application
client Server server database
Admin
UI
SR
Application
Server = CR
Instance
CR = Controller Region
SR = Servant Region
Single
Because it's a application
cell, it has a server
There are things it can do and not do:
Daemon
Do
Use Admin Console
Install/run applications
Daemon Server Connect to data resources
CR CR SR Use for messaging
Not Do
Add more servers
Span MVS images
A cell, but not A node, but not Cluster
an ND cell a "managed"
Start/stop server from Admin
It's a very handy configuration for testing and development purposes ...
Node Server
Daemon
CR CR A
SR
Standard
HTTP Web
Browser
Important!
The administrative application
requires that only one "servant"
! (server region) is spawned. This is
due to sharing and locking issues. Administrative application
installed using batch process.
Thereafter, applications installed
using graphical interface of
administrative program
Development
Even though they're on the
Daemon Server "Fred" same MVS image, their
CR CR SR
environments are separate
from one another:
Separate Mount Point and HFS
Isolation Separate JCL procedures
Development Separate TCP ports
"Mary"
Daemon Server Separate Admin Consoles
CR CR SR Separate Userids / Passwords
Start/Stop servers independently
Isolation
Use this dialog to define WebSphere for z/OS variables and generate
customization jobs for your installation. Specify an option and press ENTER.
1 Allocate target data sets. The data sets will contain the WebSphere
customization jobs and data generated by the dialog.
// PARM='TRAP(ON,NOSPIE),ENVAR("_EDC_UMASK_DFLT=007") /'
//*
//BBOENV DD DDs
PATH='&ROOT/&ENV/was.env' V5ACRZ
//* Output
//*
// INCLUDE MEMBER=&Z
//CEEDUMP DD SYSOUT=*,SPIN=UNALLOC,FREE=CLOSE
//SYSOUT DD SYSOUT=*,SPIN=UNALLOC,FREE=CLOSE
//SYSPRINT DD SYSOUT=*,SPIN=UNALLOC,FREE=CLOSE
//*
//*Steplib Setup
//*
//STEPLIB DD DISP=SHR,DSN=WASV5GA.SBBOLD2
// DD DISP=SHR,DSN=WASV5GA.SBBOLOAD
BBOCBRAJ
BBOCBRAK
BBOCTI00 Input
BBODEFR BBOSSINS
BBOCCINS
} step by step
instructions members
BBODMCCB
BBOERRLG BBOWCPY1 BBOWBMPT
BBOWBOWN BBOWSCMD
BBOINST
BBOWCPY2 BBOWBRAC BBOWSECA
BBOWCEA1 BBOWSEIA
BBOIPCSP
BBOWCTR BBOWCOPY BBOWSERA
BBOMCFG
BBOWCPYC BBOWSOAS
BBOWC2J BBOWCPYD BBOWUUID
BBOMCFGU
BBOWC2N BBOWCPYM BBOWVAA1
BBOMCFG2
BBOWC2JS BBOWVAA2
BBOMSGC
BBOWIAPP BBOWC2NS BBOWVAA3
BBOWE2AS BBOWVIHA
*BBOMSMF BBOWIVT BBOWNODA BBOWWAPA
BBOPROG
BBORRS BBOWTR BBOWSAAS
BBORRSLS BBOW5SH
BBOSCHED
BBOSSINS BBO5ACR
31 © 2006 IBM Corporation
BBO5ACRZ
Chapter 14 WebSphere Application Server
DM
CR A
SR Browser
Server_A Server_C
CR SR CR SR
Server_B Server_D
CR SR CR SR
SYSA CF SYSB
HFS HFS
Server B Server E
CR SR CR SR "Horizontal"
Cluster
Two or more
servers across
Server C Server F multiple nodes
(or systems)
CR SR CR SR
"New"
Button
And then you'll have to do a little "MVS System Programmer work" to put
down some security stuff. We'll show you how that's all done later.
Routing
Queuing
Prioritizing
Why WLM . . .
WebSphere Application
SR6
Server Instance
SR5
6 Service Classes:
6
SR4
1 5 SC=CB05
SR3
4 SC=CB04
SC=CB04
2 SR2
SR2
CR 3 SC=CB03
SC=CB03
SR1
5
IIOP
IIOP 2 SC=CB02
6 HTTP
HTTP 1 SC=IWEB01
SC=IWEB01
Mimimum = 1
SC=CB01
SC=CB01
3 Maximum >= 6
Application Environments
Sample J C L
JTA OTS
Websphere - R R S / XA
OTS is the Object Transaction Service
- Provides the framework to run transactions on a single server, or across
multiple servers.
- It is designed to be interoperable with other OTS components.
- Provides very few applicaion level APIs accessible from J2EE components.
- Our OTS implementation is z/OS specific and lives entirely in native code.
- For more details about what OTS is, see the 3.x and 4.x STE resentations.
JTA is the Java Transaction API
- For WebSphere on z/OS, JTA sits "on top of" OTS.
- It is part of the J2EE specification, and as a result, supports the UserTransaction
API for J2EE applications, and other SPIs used by the EJB Container.
- Since JTA is java-specific, our java implementation lives mostly in java.
JTA is modeled on the XA Specification
- XA is an X/Open Group specification which describes how a resource should
communicate with a transaction manager. It's standardized through ISO.
- JTA includes a mapping of the XA specification (but not a full mapping).
- XA support is new for z/OS in 5.0
RRS is a z/OS specific transaction manager
- RRS can be though of as an entity which manages resources in a z/OS-specific way.
- RRS does not support the XA protocol, but does share some similarities which allow us
to merge both RRS and XA resources together in the same transaction.
Web Servers in v6
MBean
wsadmin Examples
Installing an application
– Using jacl
• wsadmin.sh –c “$AdminApp install /tmp/MyApp.ear {-appname
MyApp}”
– Using Jython
• wsadmin.sh –lang jython –c “$AdminApp.install
(‘/tmp/MyApp.ear’,’ [-appname MyApp]’ )”
Running scripts
– Running a jacl script
• wsadmin.sh –f appinst.jacl
– Running a jython script
• wsadmin.sh –lang jython –f appinst.py
Controller Servant
HTTP server
v5 run-time
environment
Controller Controller Servants
Mainframe Connectors
Server A
RA C EIS/DB
memory
to
memory
C=connector
RA=resource adapter
z/OS cluster
RACF RRS
WebSphere
Application Server
Connection
RA Address EIS/DB
space
TCP/IP
memory
to
SD memory
RACF RRS
WebSphere
Application Server
Connection
RA Address EIS/DB
space
z/OS
JDBC Drivers
Connectivity Options
VSAM Connector for z/OS Puts VSAM Data into the WebSphere Picture
Tier-0: Tier-1: Tier-2: Tier-3:
Client-Side Server-Side Server-Side Server-Side
Presentation Presentation Business Logic Data Logic
JSP EJB
HTTP / HTTPS
RMI / IIOP
Servlet VSAM
JDBC
DATA
RMI/IIOP
RMI/IIOP
RMI/IIOP
Java Java Java
JDBC
JDBC
JDBC
JNDI
JNDI
JNDI
JTA
JTA
JTA
Mail Mail Mail
JAF JAF JAF Data
System
J2EE Server Core J2EE Server Core J2EE Server Core
Class
Class Class Class
Summary