SlideShare a Scribd company logo
1 of 152
WebSphere Administration
Course

Copyright © Oded Nissan 2009
Agenda
•
•
•
•
•
•
•
•

WebSphere Overview
JEE Overview
WebSphere Architecture
Installing WebSphere
The Admin Console
Managing Applications
JEE Technologies
Summary
Copyright © Oded Nissan 2009
WebSphere Product Overview

Copyright © Oded Nissan 2009
What is WebSphere ?
• WebSphere is not a product but an IBM
brand, powered by Java and JEE.
• WebSphere is infrastructure software for
delivery of e-business applications.
• The WebSphere product family is divided into
three categories:
– Foundation and Tools
– Business portals
– Business Integration
Copyright © Oded Nissan 2009
WebSphere Product Family

Copyright © Oded Nissan 2009
WebSphere Product Family
• Foundation and Tools - represents the heart of the
WebSphere product line; the WAS, the RAD product
line, and the WebSphere tools for host integration.
• Business Portals - include WebSphere Portal Server
WebSphere Commerce etc.
• Business Integration - includes the WebSphere MQ
family of products for enterprise messaging,
workflow, systems integration, WebSphere Business
Integration.

Copyright © Oded Nissan 2009
Additional Product Families
• The Tivoli family of products for systems
management and security provide additional
capabilities for WebSphere.
• The Rational family of products for application
development, such as Rational Application
Developer, Rational Modeler for UML
modeling, Rational Clear Case for SCM.

Copyright © Oded Nissan 2009
WebSphere Application Server (WAS)
• A JEE compliant application server.
• Provides the core technologies used by other
WebSphere products.
• Provides an environment to run web based
multi-tier e-business applications.

Copyright © Oded Nissan 2009
WebSphere Application Server (WAS)

Copyright © Oded Nissan 2009
WAS Packaging
• WAS Express V 6.0 – A lightweight edition of
WAS without an EJB container.
• WAS Base V6.1 – A fully compliant JEE server
supporting the JEE 1.4 spec.
• WAS Network Deployment V6.1 – extends
WAS Base to include clustering capabilities,
edge components and distributed
configuration management.
Copyright © Oded Nissan 2009
WAS Packaging

Copyright © Oded Nissan 2009
Resources

• Info center for WAS 6.1 http://publib.boulder.ibm.com/infocenter/wasi
• IBM Redbooks http://www.redbooks.ibm.com/

Copyright © Oded Nissan 2009
JEE Overview

Copyright © Oded Nissan 2009
What is JEE ?
• A set of technologies for developing
enterprise applications in Java
• Specified by Sun and the Java Community
Process (JCP).
• Implemented by JEE vendors.
• Implementations of JEE technologies are
provided within Application Servers.
• Previously named J2EE (until version 1.4)
current version is JEE 5.
Copyright © Oded Nissan 2009
What is JEE ?
• Relation between JEE vendors and developers.

Copyright © Oded Nissan 2009
What is JEE ?
• The Java Platform

Java Technology
Enabled Devices

Java Technology
Enabled Desktop

Copyright © Oded Nissan 2009

Workgroup
Server

High-End
Server
The Java Platform
Java Platform Micro Edition
(JavaMETM)

Optional
Packages
Optional
Packages

Java
Enterprise
Edition
(JEE)

Java
Standard
Edition
(JavaSE)

Personal
Basis Profile

Personal
Profile

Foundation Profile
CDC

JVM

MIDP
CLDC
KVM

Copyright © Oded Nissan 2009
* Under development in JCP

Java
Card
APIs
CardVM
Why do we need JEE ?
•
•
•
•
•
•
•
•

Standard API
Portable
Tool Support
Distribution
Transactions
Security
Scalability
Persistence
Copyright © Oded Nissan 2009
The JEE Architecture
• N-tier architecture
• Comprised of technologies for the business
tier the presentation tier and other system
services.
• Runs within the application server and within
specific containers (web container, EJB
container) within the Application server.

Copyright © Oded Nissan 2009
The JEE Architecture
• Uses the "component and container" model in
which container provides system services in a
well-defined and as industry standard
• JEE is a standard that also provides portability
of code because it is based on Java technology
and standard-based Java programming APIs

Copyright © Oded Nissan 2009
About N-Tier Architecture
• Single Tier – a simple desktop application.
• Two Tier – A thin or a fat client and a server.
• Three Tier – A presentation tier a business tier
and a Data tier.

Copyright © Oded Nissan 2009
Three-Tier architecture

Web Tier

EJB Tier

Copyright © Oded Nissan 2009
JEE Tier Architecture

Copyright © Oded Nissan 2009
JEE Application Servers
• JEE vendors provide their implementation of
JEE technologies within an Application Server.
• Each application server has its own
implementation of JEE standards as well as
some proprietary features.
• Comprised of a Web Container,EJB Container
and other server services.

Copyright © Oded Nissan 2009
The App server and JEE containers.

Copyright © Oded Nissan 2009
JEE Development Roles
• Component provider
– Bean provider

• Application assembler
• Deployer
• Platform provider
– Container provider

• Tools provider
• System administrator
Copyright © Oded Nissan 2009
The JEE Life Cycle
Creation

Assembly

Deployment

Created by JEE Modules
Component
Developer

Assembled
and Augmented JEE APP
by Application
Assembler

Processed
by Deployer
Deploy

JEE Container

Enterprise
Components

Copyright © Oded Nissan 2009
System Administrator Role
•
•
•
•

Manage servers
Install and manage applications.
Manage and maintain configurations.
Create and maintain server topologies:
network deployment, cluster etc.
• Monitor and troubleshoot production and test
deployments.
• Implement a security policy.
Copyright © Oded Nissan 2009
JEE Development Tools
• Provided by Application Server vendors or
open source projects.
• Usually provided as plugins to popular IDEs
such as Eclipse or NetBeans.
• The tools help developers create JEE
resources, debug and deploy them.

Copyright © Oded Nissan 2009
JEE Development Tools
• IBM – provides the RAD product (based on
Eclipse) for developing for WebSphere.
• RAD 7.0 is compatible with WAS 6.1
• The Eclipse project provides open source
plugins for most application servers.

Copyright © Oded Nissan 2009
The JEE Application Structure

Copyright © Oded Nissan 2009
JEE Application Structure
• A JEE application is packaged into an EAR file.
• The EAR file contains Web modules, EJB modules and
utility jars.
• The Web application is packaged into a WAR file, and
the WAR file is packaged into the EAR.
• The EJB’s are packaged into a special jar file which is
the EJB module, which is packaged into the EAR file.

Copyright © Oded Nissan 2009
JEE Application Structure

Copyright © Oded Nissan 2009
The EAR File Structure

Copyright © Oded Nissan 2009
JEE projects in RAD

Copyright © Oded Nissan 2009
Packaging JEE Applications
• In order to deploy applications to WebSphere
application code must be packaged into JEE
modules (EAR WAR JAR etc.)
• Packaging applications can be done using:
– RAD export options.
– Ant scripts.

Copyright © Oded Nissan 2009
WebSphere Architecture

Copyright © Oded Nissan 2009
The WebSphere Architecture
• Base or Single Server environment features a
standalone single server.
• Network Deployment or Multi Server
environment, features multi servers managed
centrally by a deployment management
process.

Copyright © Oded Nissan 2009
The WebSphere Architecture
• A server is the smallest configuration unit and
represents a WAS instance.
• A Node is a configuration unit that can include
several servers, usually a node represents a
physical machine running WAS.
• A Cell is a configuration unit that can include
several nodes.

Copyright © Oded Nissan 2009
The WebSphere Architecture
• In a Base environment a single node manages
a single server.
• In a Network Deployment environment we
have a cell managing several nodes each
containing one or more servers.

Copyright © Oded Nissan 2009
Base Environment

Copyright © Oded Nissan 2009
Network Deployment Environment

Copyright © Oded Nissan 2009
Java Management Extensions (JMX)
• The system management functionality of WebSphere
Application Server is based on the use of Java Management
Extensions (JMX). JMX is a framework that provides a
standard way of exposing Java esources, for example
application servers, to a system management infrastructure.
• The JMX framework allows a provider to implement
functions, such as listing the configuration settings, and
allows users to edit the settings. It also includes a notification
layer that can be used by management applications to
monitor events.

Copyright © Oded Nissan 2009
JMX Architecture
• The JMX architecture is structured into three layers:
• Instrumentation layer The instrumentation layer dictates
how resources can be wrapped within special Java beans
called Management Beans (MBeans).
• The agent layer consists of the MBean server and agents,
which provide a management infrastructure.
• Management layer The management layer defines how
external management applications can interact with the
underlying layers in terms of protocols, APIs, and so on.

Copyright © Oded Nissan 2009
JMX Architecture

Copyright © Oded Nissan 2009
JMX Distributed Administration

Copyright © Oded Nissan 2009
Distributed Administration
• Administration in a distributed server
environment is by necessity more complex
than administration in a stand-alone server
environment.
• In a distributed server environment, multiple
WebSphere Application Server nodes are
managed from a single central location.

Copyright © Oded Nissan 2009
Distributed Administration
• Administration is performed by three layers.

Copyright © Oded Nissan 2009
Distributed Administration

Copyright © Oded Nissan 2009
Distributed Process Discovery
• When a managed server begins its startup, it sends a
discovery request message that allows other
processes to discover its existence and
establishcommunication channels with the process.
• Each node agent and deployment manager maintains
status and configuration information by using
discovery addresses, or ports. On startup, processes
discover other running components, and create
communication channels
Copyright © Oded Nissan 2009
Distributed Process Discovery

Copyright © Oded Nissan 2009
Configuration Management
• In a distributed server environment, the master repository of
configuration and application data for the cell is managed by
the deployment manager.
• Each node contains a separate copy of the repository
containing only the required files.
• When an administrator makes changes to the configuration
using an administration tool and saves these changes to the
master repository, they are available for use. The next step is
to synchronize the changes out to the nodes of the cell.

Copyright © Oded Nissan 2009
Configuration Synchronization
• Responsible for synchronizing the master
configuration to all nodes in the cell.
• During the synchronization operation, the
node agent checks with the deployment
manager to see if any files that apply to the
node have been updated in the master
repository. New or updated files are sent to
the node, while any deleted files are also
deleted from the node.
Copyright © Oded Nissan 2009
Repository Directory Structure

Copyright © Oded Nissan 2009
WAS Installation

Copyright © Oded Nissan 2009
Hardware Requirements
• For Windows (32 bit WebSphere Application Server)
–
–
–
–
–

•

Intel® Pentium processor at 500 MHz or faster
Intel EM64T or AMD Opteron
1030 MB disk space
Minimum 512 MB physical memory; 1 GB recommended
CD-ROM drive

For Windows (64 bit WebSphere Application Server)
–
–
–
–

AMD Opteron or Intel EM64T
1030 MB disk space
Minimum 1 GB of physical memory recommended
CD-ROM drive

Copyright © Oded Nissan 2009
Software Requirements - OS
•
•
•
•
•
•
•

Microsoft Windows Server 2008,
Microsoft Windows XP Professional with SP2
Microsoft Vista Business
Microsoft Vista Enterprise
Microsoft Vista Ultimate
Microsoft Windows 2000
Microsoft Windows Server 2003

Copyright © Oded Nissan 2009
Software Requirements - Java
• IBM 32-bit SDK for Windows, Java 2
Technology Edition, V5.0 SR2
• IBM 64-bit SDK for Windows on
AMD64/EM64T architecture, Java 2
Technology Edition, V5.0 SR2
• The Java VM supplied with WebSphere must
be used to run WAS and application clients.

Copyright © Oded Nissan 2009
Software Requirements – Web Servers
•
•
•
•
•

IBM HTTP Server V7.0 V6.1 V6.0
Apache HTTP Server V2.2 V2.0.54
Microsoft IIS V7.0 V6.0 V5.0
Lotus Domino Enterprise Server 6.5.4 or 7.0
More specific details at:

– http://www-01.ibm.com/support/docview.wss?rs=180

Copyright © Oded Nissan 2009
WAS Installation

Copyright © Oded Nissan 2009
WAS Installation

Copyright © Oded Nissan 2009
WAS Installation

Copyright © Oded Nissan 2009
WAS Installation

Copyright © Oded Nissan 2009
WAS Installation

Copyright © Oded Nissan 2009
WAS Installation

Copyright © Oded Nissan 2009
WAS Installation

Copyright © Oded Nissan 2009
WAS Installation

Copyright © Oded Nissan 2009
WAS Installation

Copyright © Oded Nissan 2009
First Steps
• First Steps is a post installation tool that is
started automatically at the end of
installation.
• Can be started from the windows menu or
command line.
• Used to verify the installation. Run the
installation verification utility.

Copyright © Oded Nissan 2009
First Steps

Copyright © Oded Nissan 2009
Installing WebSphere
• Install WAS on your machine, according to the
options specified in the previous slides.
• Verify the installation by running the
installation verification from the FirstSteps
console.
• Run the administrative console from the First
Steps console.

Copyright © Oded Nissan 2009
Installing Silently
• Installing WebSphere Application Server using
silent installation refers to using a file to
supply installation options without user
interaction.
• To configure the installation, change the
options in the response file before you issue
the installation command.

Copyright © Oded Nissan 2009
Customizing the Response file
• Locate the sample options response file. The file is
named responsefile.base.txt in the WAS directory on
the product CD-ROM or DVD.
• Copy the file to preserve it in its original form. For
example, copy it as myoptions.txt on your disc drive.
• Edit the copy in your flat file editor of choice, on the
target operating system. Read the directions within
the response file to choose appropriate values.

Copyright © Oded Nissan 2009
Installing Silently
• Run the installer with the response file as a
parameter:
– "disc_drive_D:WASinstall" -options
"C:tempWASmyoptionsfile.txt" -silent

Copyright © Oded Nissan 2009
WAS Directory Structure

Copyright © Oded Nissan 2009
WAS Directory Structure
•
•
•
•
•
•
•

bin – contains command line tools
_uninst – uninstaller for products.
config – XML configuration files
InstalledApps – installed applications
java – the JRE installed with WAS
logs – WAS log files
properties – property files for WAS
configuration.
Copyright © Oded Nissan 2009
WAS Directory Structure
• profiles – contains WAS profiles. (A profile
defines a WAS configuration).
• lib – WAS java libraries
• derby – a lightweight relational DB.
• samples – sample applications with source
and jacl scripts.

Copyright © Oded Nissan 2009
Command Line Tools
•
•
•
•
•

startServer – starts the server
stopServer – stops the server
serverStatus – displays server status
wasProfile – manage WAS profiles.
versionInfo – displays installed product
versions.

Copyright © Oded Nissan 2009
Log files in the logs directory
• SystemOut.log – the JVM output log, contains all
WAS and application messages logged to the
standard output.
• SystemErr.log – contains all WAS and application
messages logged to standard error.
• startServer.log and stopServer.log – log messages
related to server startup and shutdown.
• Native_stderr.log and native_stdout.log – contains
log messages from native libraries logged to standard
output and standard error.

Copyright © Oded Nissan 2009
The Admin Console

Copyright © Oded Nissan 2009
The WAS Admin Console
• A web based application for administrating
the server.
• Configuration is read and saved into XML files
in the config directory.
• The admin console itself is a JEE application
installed on WebSphere.

Copyright © Oded Nissan 2009
Starting the admin console
• The admin console can be started using a
browser by pointing to the URL:
http://localhost:9060/ibm/console
• In the login screen we can optionally enter a
username
• If security is enabled we must enter a
username and password. Authentication is
performed using a JAAS module.
Copyright © Oded Nissan 2009
The WAS Admin Console

Copyright © Oded Nissan 2009
Admin Console Navigation Menu
• Servers – management and administration of
application servers, web servers and MQ
servers.
• Applications – installation, removal and
management of JEE applications.
• Resources – creation and configuration of JEE
resources such as JDBC Datasources, JMS
queues and messaging engines, JCA
Connectors and more.
Copyright © Oded Nissan 2009
Admin Console Navigation Menu
• Security – security management and
configuration for servers and applications.
• Environment – configuration of virtual hosts,
web server plugin generation, environment
variables, JNDI naming and more.
• System Administration – saving the master
configuration and console prefrences.

Copyright © Oded Nissan 2009
Admin Console Navigation Menu
• Users and Groups – configuration and
management of users, groups and roles.
Relevant only if administrative security is
enabled.
• Monitoring and Tuning – configuration of
performance monitoring.
• Troubleshooting – logging and tracing
configuration.
Copyright © Oded Nissan 2009
Admin Console Navigation Menu
• Service Integration – configuration of message
buses and web services (handlers, security
etc.)
• UDDI – management of UDDI nodes, UDDI is a
web services registry.
• Guided Activities – wizards for connecting a
web server to an application server and
connecting to a database.
Copyright © Oded Nissan 2009
Customizing the Admin Console
• The console navigation provides a hierarchical view
of all of the tasks available in the console. A task is a
page in the work area consisting of one or more
console modules.
• Use the view menu at the top of the navigation to
filter the list of tasks by product. Or, you can create a
customized list by selecting My tasks from the View
menu.

Copyright © Oded Nissan 2009
Saving Changes
• Until you save changes to the master repository, the
administrative console uses a local workspace to
track your changes.
• You can update the master repository with your
administrative console changes, discard your
administrative console changes and continue
working with the master repository, or continue
working with your administrative console changes
that are not saved to the master repository.
Copyright © Oded Nissan 2009
Console Preferences
• Turn on workspace automatic refresh - Specifies
whether you want the administrative console
workspace to redraw automatically after the
administrative configuration changes.
• No confirmation on workspace discard - Specifies
whether the confirmation dialog is displayed after a
request is received to discard the workspace. The
default is to display confirmation dialogs.

Copyright © Oded Nissan 2009
Console Preferences
• Use default scope - Specifies whether the default
scope is the administrative console node.
• Show the help portlet - Specifies whether the help
portlet on the right of the console displays.
• Synchronize changes with nodes - Specifies whether
to synchronize changes that are saved to the
deployment manager profile with all the nodes that
are running.

Copyright © Oded Nissan 2009
Console Preferences
• Enable command assistance notifications Specifies whether to send Java Management
Extensions (JMX) notifications that contain
command assistance data from the
administrative console.
• Log command assistance commands Specifies whether to log all the command
assistance wsadmin data to a file.

Copyright © Oded Nissan 2009
Application Server Settings

Copyright © Oded Nissan 2009
Application Server Settings
• Use this page to view or change the settings of an
application server instance. An application server is a
server which provides services required to run
enterprise applications.
• To view this administrative console page, click
Servers > Application Servers > server_name.
• On the Configuration tab, you can edit fields. On the
Runtime tab, you can look at read-only information.
The Runtime tab is available only when the server is
running.
Copyright © Oded Nissan 2009
Configuration Tab – General Properties
• Name - Specifies a logical name for the server. Server
names must be unique within a node. Read only.
• Node Name – the Websphere node.
• Run in development mode - Enabling this option may
reduce the startup time of an application server.
• Parallel Start - Specifies that you want the server
components, services, and applications to start in
parallel rather than sequentially.

Copyright © Oded Nissan 2009
Configuration Tab – General Properties
• Class loading mode - Specifies whether the
class loader should search in the parent class
loader or in the application class loader first to
load a class.
• Access to internal server classes - Specifies
whether the applications can access many of
the server implementation classes.

Copyright © Oded Nissan 2009
Runtime Tab
• Process Id – the process id of the server
process in the OS.
• Cell Name
• Node Name
• State – the server’s state

Copyright © Oded Nissan 2009
Container Settings
• Web Container – settings related to the web
container.
• EJB Container – settings related to the EJB
container.
• Container services – ORB service settings,
profiling settings, transaction settings and
more.

Copyright © Oded Nissan 2009
Server Infrastructure
• Java and process management – JVM settings,
JVM system properties, process parameters
etc.
• Administration – configuration of
administration services, JMX connection type
etc.

Copyright © Oded Nissan 2009
Communication
• Ports – the communication ports used by
WebSphere, here we can change the ports.
• Messaging – the JMS messaging listener
service used by MDBs.

Copyright © Oded Nissan 2009
In General
• The configuration tab contains shortcuts to
categories that can be reached using the
navigator.
• Use the console’s online help by pressing the
help link in the upper right corner of the
screen, in order to get help about the various
configuration options.

Copyright © Oded Nissan 2009
Administration with Scripting
• WebSphere can also be configured using a
scripting language.
• WebSphere provides a scripting interface base
on the Bean Scripting Framework(BSF) called
wsadmin.
• Wsadmin acts as an interface to Java objects
accessed by scripts.

Copyright © Oded Nissan 2009
Administration with Scripting
• Wsadmin uses JMX beans for configuration.

Copyright © Oded Nissan 2009
The wsadmin Tool
• Wsadmin supports two different scripting
language syntaxes: JACL and jython.
• JACL is on its way out, jython will be the only
scripting language used in WebSphere 7.
• Most existing scripts today are written in JACL.

Copyright © Oded Nissan 2009
The wsadmin Tool
• Wsadmin supports two different scripting
language syntaxes: JACL and jython.
• JACL is on its way out, jython will be the only
scripting language used in WebSphere 7.
• Most existing scripts today are written in JACL.

Copyright © Oded Nissan 2009
The wsadmin Tool
• Wsadmin can be launched from
<WAS_HOME>/profiles/<profile
name>/bin/wsadmin.bat
• Three ways to launch:
– Command option wsadmin –c <command>
– Script file: wsadmin –f <script file>
– Interactively: wsadmin

Copyright © Oded Nissan 2009
The wsadmin Tool
• There are five Java objects that perform different
operations:
– AdminConfig – create or change the configuration.
– AdminApp – install modify or manage applications.
– AdminControl – work with running objects, perform traces
and data type conversion.
– AdminTask – access a set of task oriented administration
commands.
– Help – display information and details about which
Mbeans are running.
Copyright © Oded Nissan 2009
JACL Script Example
set temp [catch {$AdminApp list} appList]
puts "List of application will be uninstalled are $appList"
foreach app $appList {
set temp [catch {$AdminApp uninstall $app} uninstallResult]
puts "Uninstall result $uninstallResult"
set temp [catch {$AdminConfig save} saveResult]
puts "Save result $saveResult"
}

Copyright © Oded Nissan 2009
Managing Applications

Copyright © Oded Nissan 2009
Managing Applications
• Use the console to manage existing
applications. (start, stop remove etc.)
• Use the console to install new JEE applications
packaged in an EAR file.

Copyright © Oded Nissan 2009
Enterprise Applications

Copyright © Oded Nissan 2009
Enterprise Applications
•
•
•
•
•

Start – start the selected application.
Stop – stop the selected application.
Install – install a new application.
Uninstall – remove an existing application.
Update – update an existing application with a
new EAR file.
• Remove file – remove a single file from an
application.
Copyright © Oded Nissan 2009
Enterprise Applications
• Export – export the application as an EAR file.
• Export DDL – export DDL files found in the
application.
• The application status shows the current
status of the application (started, stopped).

Copyright © Oded Nissan 2009
Installing an application
• We can install an application in WebSphere in
3 different ways:
– Using the Admin Console.
– Using wsadmin scripting files. (we will discuss
later).
– Programmatically using JMX beans.

Copyright © Oded Nissan 2009
Installing an Application (step 1)
• Choose the EAR file to install

Copyright © Oded Nissan 2009
Installing an Application (step 1)
• Browse the file system and choose the EAR
file to install.
• Context root – change the context root for
web applications. In case we are installing a
WAR file and not an EAR file.

Copyright © Oded Nissan 2009
Installing an Application (step 2)

Copyright © Oded Nissan 2009
Installing an Application (step 2)
• Precompile JavaServer Pages files - Specify
whether to precompile JavaServer Pages (JSP)
files as a part of installation.
• Directory to install application – install the
application is a specific directory.
• Deploy enterprise beans – deploy EJBs if they
have not been deployed.
• Press the next button without overriding
default values.
Copyright © Oded Nissan 2009
Installing an Application (step 3)

Copyright © Oded Nissan 2009
Installing an Application (step 3)
• Use this panel to specify deployment targets
where you want to install the modules
contained in your application. Modules can be
installed on the same deployment target or
dispersed among several deployment targets.
A deployment target can be an application
server, cluster of application servers or Web
server.
• Press the next button
Copyright © Oded Nissan 2009
Installing an Application (step 4)

Copyright © Oded Nissan 2009
Installing an Application (step 4)
• Review your settings and press finish to
complete the installation.

Copyright © Oded Nissan 2009
Installing an Application (step 5)

Copyright © Oded Nissan 2009
Installing an Application (step 5)
• WebSphere displays application deployment
messages. Installation problems will be
displayed here.
• Chose save to master configuration to
complete the application installation.
• We can now start the application by choosing
the manage applications link.

Copyright © Oded Nissan 2009
JEE Technologies

Copyright © Oded Nissan 2009
JEE 1.4 Technologies
• Presentation tier technologies
– Servlets 2.4
– Java Server Pages (JSP) 2.0
– Java Standard Tag Library
– Web Services
These technologies enable the implementation of a
presentation tier in the JEE framework.

Copyright © Oded Nissan 2009
JEE 1.4 Technologies
• Enterprise Application Technologies
– Enterprise Java Beans (EJB) 2.1
– Java Connector Architecture (JCA) 1.5
– Java Messaging Services (JMS) 1.1
– Java Transaction API (JTA) 1.1
These technologies enable the implementation of
the business tier in the JEE framework.

Copyright © Oded Nissan 2009
Enterprise Java Beans (EJB)
• What is EJB ?
– EJB is a standard JEE technology developed by Sun
and the Java community
– A component architecture for building distributed
applications.
– A server side technology.
– Usually used to implement the application’s
business logic.

Copyright © Oded Nissan 2009
Benefits of EJB
•
•
•
•
•
•

Distributed components
Transaction management support
Security
Scalability and fail-over
Asynchronous
Persistence – object relational mapping.

Copyright © Oded Nissan 2009
EJB Types
• Stateless Session beans
• Stateful Session beans
• Message driven beans – asynchronous, based
on JMS.
• Entities – Java Persistence architecture (JPA).
Object-relational mapping.

Copyright © Oded Nissan 2009
EJB Example

Copyright © Oded Nissan 2009
Java Messaging Services (JMS)
• Messaging systems (MOM) provide
– De-coupled communication
– Asynchronous communication
– Plays a role of centralized post office

• Benefits of Messaging systems
– Flexible, Reliable, Scalable communication systems

• Point-to-Point, Publish and Subscribe
• JMS defines standard Java APIs to messaging systems

Copyright © Oded Nissan 2009
Java Connector Architecture (JCA)
• Defines standard API for integrating J2EE technology with EIS
systems
– CICS, SAP, PeopleSoft, etc.

• Before Connector architecture, each App server has to
provide an proprietary adaptor for each EIS system
– m (# of App servers) x n (# of EIS's) Adaptors

• With Connector architecture, same adaptor works with all JEE
compliant containers
– 1 (common to all App servers) x n (# of EIS's) Adaptors

Copyright © Oded Nissan 2009
Java Transaction API
• The Java™ Transaction API (JTA) allows applications
to perform distributed transactions, that is,
transactions that access and update data on two or
more networked computer resources.
• The JTA specifies standard Java interfaces between a
transaction manager and the parties involved in a
distributed transaction system: the application, the
application server, and the resource manager that
controls access to the shared resources affected by
the transactions.
Copyright © Oded Nissan 2009
Java Transaction API (JTA)
• A JTA transaction is controlled by the Java EE
transaction manager.
• JEE support declarative transactions, called
Container Managed Transactions.
• The JTA API can also be used directly by the
developer.
• JTA supports XA transactions.

Copyright © Oded Nissan 2009
Servlets
• Java™ objects which extend the functionality
of a HTTP server
• Dynamic contents generation
• Better alternative to CGI, NSAPI, ISAPI, etc.
– Efficient
– Platform and server independent
– Session management
– Java-based

Copyright © Oded Nissan 2009
Servlet Example
A Servlet receives an HTTP request
performs an action and generate output,

Copyright © Oded Nissan 2009
Java Server Pages (JSP)
• Enables separation of business logic from
presentation
– Presentation is in the form of HTML or XML/XSLT
– Business logic is implemented as Java Beans or
custom tags
– Better maintainability, reusability

• Extensible via custom tags
• Builds on Servlet technology (JSP is compiled into a
Servlet).
Copyright © Oded Nissan 2009
JSP Example
<%@ page import="java.util.*" %>
<HTML>
<BODY>
<% System.out.println( "Evaluating date now" );
Date date = new Date(); %>
Hello! The time is now <%= date %>
</BODY>
</HTML>

Copyright © Oded Nissan 2009
Web Services
• What is a Web Service ?
– A web service is a software system identified by a
URI, whose public interfaces and bindings are
defined and described using XML. Its definition
can be discovered by other software systems.
These systems may then interact with the Web
service in a manner prescribed by its definition,
using XML-based messages conveyed by Internet
protocols.
Copyright © Oded Nissan 2009
Web Services
• Provide a way to connect heterogonous systems in a
Language neutral, platform neutral manner.
• Use the HTTP protocol to pass messages in the SOAP
protocol.
• Described by a Web Services Description language
(WSDL) document.
• Vendors provide tools to generate web service
clients from a WSDL.
• Web services can be registered and looked up in a
UDDI directory.
Copyright © Oded Nissan 2009
Web Services Architecture

Copyright © Oded Nissan 2009
Web Services in JEE
• Web services are a platform neutral standard, JEE
provides its own platform implementation.
• JEE provide tools for exposing JEE components such
as EJBs as web services.
• JEE also provides tools for generating web service
clients from existing WSDL documents and an API for
accessing the services.

Copyright © Oded Nissan 2009
Java Authentication and
Authorizations Service (JAAS)
• Pluggable authentication framework
–
–
–
–

Userid/password
Smartcard
Kerberos
Biometric

• Application portability regardless of authentication
schemes underneath

– JAAS provides authentication scheme independent API
– Authentication schemes are specified Login configuration
file, which will be read by JAAS
Copyright © Oded Nissan 2009
JAAS Pluggable Authentication

Copyright © Oded Nissan 2009
JNDI
• Java Naming and Directory Interface
• Utilized by J2EE applications to locate
resources and objects in portable fashion
– Applications use symbolic names to find object
references to resources via JNDI
– The symbolic names and object references have
to be configured by system administrator when
the application is deployed.

Copyright © Oded Nissan 2009
Java management Extensions (JMX)
• JMX technology provides a simple, standard way of
managing resources such as applications, devices,
and services.
• JMX is used to monitor and manage the JVM itself
(the jconsole application is an example).
• In JEE JMX is used to manage server configuration
and resources.
• All applications server vendors provide JMX beans,
which manage their servers.
Copyright © Oded Nissan 2009
Java management Extensions (JMX)

Copyright © Oded Nissan 2009
Putting it All Together

Copyright © Oded Nissan 2009
The App server and JEE containers.

Copyright © Oded Nissan 2009
Resources

• Info center for WAS 6.1 http://publib.boulder.ibm.com/infocenter/wasinfo
• IBM Redbook – sg247304 WAS 6.1 System
Management and configuration.
• Admin Console context sensitive online help.

Copyright © Oded Nissan 2009
Summary
•
•
•
•
•
•
•

WebSphere Overview
JEE Overview
WebSphere Architecture
Installing WebSphere
The Admin Console
Managing Applications
JEE Technologies
Copyright © Oded Nissan 2009

More Related Content

What's hot

WebSphere Application Server Information Resources
WebSphere Application Server Information ResourcesWebSphere Application Server Information Resources
WebSphere Application Server Information Resourcesejlp12
 
WebSphere Application Server Family (Editions Comparison)
WebSphere Application Server Family (Editions Comparison)WebSphere Application Server Family (Editions Comparison)
WebSphere Application Server Family (Editions Comparison)ejlp12
 
Ibm web sphere application server interview questions
Ibm web sphere application server interview questionsIbm web sphere application server interview questions
Ibm web sphere application server interview questionspraveen_guda
 
WebSphere application server 8.5.5 - quick overview
WebSphere application server 8.5.5 - quick overviewWebSphere application server 8.5.5 - quick overview
WebSphere application server 8.5.5 - quick overviewChris Sparshott
 
Using WebSphere MQ with WebSphere Application Server and the Liberty Profile
Using WebSphere MQ with WebSphere Application Server and the Liberty ProfileUsing WebSphere MQ with WebSphere Application Server and the Liberty Profile
Using WebSphere MQ with WebSphere Application Server and the Liberty Profilet_quigly
 
IBM WebSphere application server
IBM WebSphere application serverIBM WebSphere application server
IBM WebSphere application serverIBM Sverige
 
IBM WebSphere Application Server version to version comparison
IBM WebSphere Application Server version to version comparisonIBM WebSphere Application Server version to version comparison
IBM WebSphere Application Server version to version comparisonejlp12
 
Managing Websphere Application Server certificates
Managing Websphere Application Server certificatesManaging Websphere Application Server certificates
Managing Websphere Application Server certificatesPiyush Chordia
 
AAI-1445 Managing Dynamic Workloads with WebSphere ND and in the Cloud
AAI-1445 Managing Dynamic Workloads with WebSphere ND and in the CloudAAI-1445 Managing Dynamic Workloads with WebSphere ND and in the Cloud
AAI-1445 Managing Dynamic Workloads with WebSphere ND and in the CloudWASdev Community
 
WAS Support & Monitoring Tools
WAS Support & Monitoring ToolsWAS Support & Monitoring Tools
WAS Support & Monitoring ToolsRoyal Cyber Inc.
 
IBM WebSphere MQ Introduction
IBM WebSphere MQ Introduction IBM WebSphere MQ Introduction
IBM WebSphere MQ Introduction ejlp12
 
WebSphere Technical University: Top WebSphere Problem Determination Features
WebSphere Technical University: Top WebSphere Problem Determination FeaturesWebSphere Technical University: Top WebSphere Problem Determination Features
WebSphere Technical University: Top WebSphere Problem Determination FeaturesChris Bailey
 
Classloader leak detection in websphere application server
Classloader leak detection in websphere application serverClassloader leak detection in websphere application server
Classloader leak detection in websphere application serverRohit Kelapure
 
IBM WebSphere Application Server Update - Technical University (March 2015)
IBM WebSphere Application Server Update - Technical University (March 2015)IBM WebSphere Application Server Update - Technical University (March 2015)
IBM WebSphere Application Server Update - Technical University (March 2015)Ian Robinson
 
IBM WebSphere Application Server Introduction for Lotus
IBM WebSphere Application Server Introduction for LotusIBM WebSphere Application Server Introduction for Lotus
IBM WebSphere Application Server Introduction for Lotusdominion
 
AAI-4847 Full Disclosure on the Performance Characteristics of WebSphere Appl...
AAI-4847 Full Disclosure on the Performance Characteristics of WebSphere Appl...AAI-4847 Full Disclosure on the Performance Characteristics of WebSphere Appl...
AAI-4847 Full Disclosure on the Performance Characteristics of WebSphere Appl...WASdev Community
 
Collaborative lifecycle development for Mobile Software
Collaborative lifecycle development for Mobile Software Collaborative lifecycle development for Mobile Software
Collaborative lifecycle development for Mobile Software IBM WebSphereIndia
 

What's hot (20)

WebSphere Application Server Information Resources
WebSphere Application Server Information ResourcesWebSphere Application Server Information Resources
WebSphere Application Server Information Resources
 
WebSphere Application Server Family (Editions Comparison)
WebSphere Application Server Family (Editions Comparison)WebSphere Application Server Family (Editions Comparison)
WebSphere Application Server Family (Editions Comparison)
 
Ibm web sphere application server interview questions
Ibm web sphere application server interview questionsIbm web sphere application server interview questions
Ibm web sphere application server interview questions
 
WebSphere application server 8.5.5 - quick overview
WebSphere application server 8.5.5 - quick overviewWebSphere application server 8.5.5 - quick overview
WebSphere application server 8.5.5 - quick overview
 
Using WebSphere MQ with WebSphere Application Server and the Liberty Profile
Using WebSphere MQ with WebSphere Application Server and the Liberty ProfileUsing WebSphere MQ with WebSphere Application Server and the Liberty Profile
Using WebSphere MQ with WebSphere Application Server and the Liberty Profile
 
IBM WebSphere application server
IBM WebSphere application serverIBM WebSphere application server
IBM WebSphere application server
 
IBM WebSphere Application Server version to version comparison
IBM WebSphere Application Server version to version comparisonIBM WebSphere Application Server version to version comparison
IBM WebSphere Application Server version to version comparison
 
Managing Websphere Application Server certificates
Managing Websphere Application Server certificatesManaging Websphere Application Server certificates
Managing Websphere Application Server certificates
 
AAI-1445 Managing Dynamic Workloads with WebSphere ND and in the Cloud
AAI-1445 Managing Dynamic Workloads with WebSphere ND and in the CloudAAI-1445 Managing Dynamic Workloads with WebSphere ND and in the Cloud
AAI-1445 Managing Dynamic Workloads with WebSphere ND and in the Cloud
 
Was liberty
Was libertyWas liberty
Was liberty
 
WAS Support & Monitoring Tools
WAS Support & Monitoring ToolsWAS Support & Monitoring Tools
WAS Support & Monitoring Tools
 
IBM WebSphere MQ Introduction
IBM WebSphere MQ Introduction IBM WebSphere MQ Introduction
IBM WebSphere MQ Introduction
 
WebSphere Technical University: Top WebSphere Problem Determination Features
WebSphere Technical University: Top WebSphere Problem Determination FeaturesWebSphere Technical University: Top WebSphere Problem Determination Features
WebSphere Technical University: Top WebSphere Problem Determination Features
 
Classloader leak detection in websphere application server
Classloader leak detection in websphere application serverClassloader leak detection in websphere application server
Classloader leak detection in websphere application server
 
IBM WebSphere Application Server Update - Technical University (March 2015)
IBM WebSphere Application Server Update - Technical University (March 2015)IBM WebSphere Application Server Update - Technical University (March 2015)
IBM WebSphere Application Server Update - Technical University (March 2015)
 
IBM WebSphere Application Server Introduction for Lotus
IBM WebSphere Application Server Introduction for LotusIBM WebSphere Application Server Introduction for Lotus
IBM WebSphere Application Server Introduction for Lotus
 
Aws
AwsAws
Aws
 
AAI-4847 Full Disclosure on the Performance Characteristics of WebSphere Appl...
AAI-4847 Full Disclosure on the Performance Characteristics of WebSphere Appl...AAI-4847 Full Disclosure on the Performance Characteristics of WebSphere Appl...
AAI-4847 Full Disclosure on the Performance Characteristics of WebSphere Appl...
 
Ns was-resume
Ns was-resumeNs was-resume
Ns was-resume
 
Collaborative lifecycle development for Mobile Software
Collaborative lifecycle development for Mobile Software Collaborative lifecycle development for Mobile Software
Collaborative lifecycle development for Mobile Software
 

Viewers also liked

Designing JEE Application Structure
Designing JEE Application StructureDesigning JEE Application Structure
Designing JEE Application Structureodedns
 
Jee course web services
Jee course web servicesJee course web services
Jee course web servicesodedns
 
Significance of metrics
Significance of metricsSignificance of metrics
Significance of metricsDavid Karlsen
 
Crash Introduction to Modern Java Data Access: Understanding JPA, Hibernate, ...
Crash Introduction to Modern Java Data Access: Understanding JPA, Hibernate, ...Crash Introduction to Modern Java Data Access: Understanding JPA, Hibernate, ...
Crash Introduction to Modern Java Data Access: Understanding JPA, Hibernate, ...Vladimir Bacvanski, PhD
 
Developing, Testing and Scaling with Apache Camel - UberConf 2015
Developing, Testing and Scaling with Apache Camel - UberConf 2015Developing, Testing and Scaling with Apache Camel - UberConf 2015
Developing, Testing and Scaling with Apache Camel - UberConf 2015Matt Raible
 
Java EE Pattern: Entity Control Boundary Pattern and Java EE
Java EE Pattern: Entity Control Boundary Pattern and Java EEJava EE Pattern: Entity Control Boundary Pattern and Java EE
Java EE Pattern: Entity Control Boundary Pattern and Java EEBrockhaus Consulting GmbH
 
Java Web Application Security - Denver JUG 2013
Java Web Application Security - Denver JUG 2013Java Web Application Security - Denver JUG 2013
Java Web Application Security - Denver JUG 2013Matt Raible
 
Top 50 java ee 7 best practices [con5669]
Top 50 java ee 7 best practices [con5669]Top 50 java ee 7 best practices [con5669]
Top 50 java ee 7 best practices [con5669]Ryan Cuprak
 
Java Web Application Security with Java EE, Spring Security and Apache Shiro ...
Java Web Application Security with Java EE, Spring Security and Apache Shiro ...Java Web Application Security with Java EE, Spring Security and Apache Shiro ...
Java Web Application Security with Java EE, Spring Security and Apache Shiro ...Matt Raible
 
50 EJB 3 Best Practices in 50 Minutes - JavaOne 2014
50 EJB 3 Best Practices in 50 Minutes - JavaOne 201450 EJB 3 Best Practices in 50 Minutes - JavaOne 2014
50 EJB 3 Best Practices in 50 Minutes - JavaOne 2014Ryan Cuprak
 
WebSphere App Server vs JBoss vs WebLogic vs Tomcat (InterConnect 2016)
WebSphere App Server vs JBoss vs WebLogic vs Tomcat (InterConnect 2016)WebSphere App Server vs JBoss vs WebLogic vs Tomcat (InterConnect 2016)
WebSphere App Server vs JBoss vs WebLogic vs Tomcat (InterConnect 2016)Roman Kharkovski
 

Viewers also liked (12)

Designing JEE Application Structure
Designing JEE Application StructureDesigning JEE Application Structure
Designing JEE Application Structure
 
Jee course web services
Jee course web servicesJee course web services
Jee course web services
 
Significance of metrics
Significance of metricsSignificance of metrics
Significance of metrics
 
Crash Introduction to Modern Java Data Access: Understanding JPA, Hibernate, ...
Crash Introduction to Modern Java Data Access: Understanding JPA, Hibernate, ...Crash Introduction to Modern Java Data Access: Understanding JPA, Hibernate, ...
Crash Introduction to Modern Java Data Access: Understanding JPA, Hibernate, ...
 
Developing, Testing and Scaling with Apache Camel - UberConf 2015
Developing, Testing and Scaling with Apache Camel - UberConf 2015Developing, Testing and Scaling with Apache Camel - UberConf 2015
Developing, Testing and Scaling with Apache Camel - UberConf 2015
 
Java EE Pattern: Entity Control Boundary Pattern and Java EE
Java EE Pattern: Entity Control Boundary Pattern and Java EEJava EE Pattern: Entity Control Boundary Pattern and Java EE
Java EE Pattern: Entity Control Boundary Pattern and Java EE
 
Java EE Pattern: The Boundary Layer
Java EE Pattern: The Boundary LayerJava EE Pattern: The Boundary Layer
Java EE Pattern: The Boundary Layer
 
Java Web Application Security - Denver JUG 2013
Java Web Application Security - Denver JUG 2013Java Web Application Security - Denver JUG 2013
Java Web Application Security - Denver JUG 2013
 
Top 50 java ee 7 best practices [con5669]
Top 50 java ee 7 best practices [con5669]Top 50 java ee 7 best practices [con5669]
Top 50 java ee 7 best practices [con5669]
 
Java Web Application Security with Java EE, Spring Security and Apache Shiro ...
Java Web Application Security with Java EE, Spring Security and Apache Shiro ...Java Web Application Security with Java EE, Spring Security and Apache Shiro ...
Java Web Application Security with Java EE, Spring Security and Apache Shiro ...
 
50 EJB 3 Best Practices in 50 Minutes - JavaOne 2014
50 EJB 3 Best Practices in 50 Minutes - JavaOne 201450 EJB 3 Best Practices in 50 Minutes - JavaOne 2014
50 EJB 3 Best Practices in 50 Minutes - JavaOne 2014
 
WebSphere App Server vs JBoss vs WebLogic vs Tomcat (InterConnect 2016)
WebSphere App Server vs JBoss vs WebLogic vs Tomcat (InterConnect 2016)WebSphere App Server vs JBoss vs WebLogic vs Tomcat (InterConnect 2016)
WebSphere App Server vs JBoss vs WebLogic vs Tomcat (InterConnect 2016)
 

Similar to WebSphere 6.1 Admin Course 1

Web Sphere Administration guide – Packaging and Deploying Jee Applications
Web Sphere Administration guide – Packaging and Deploying Jee ApplicationsWeb Sphere Administration guide – Packaging and Deploying Jee Applications
Web Sphere Administration guide – Packaging and Deploying Jee ApplicationsGagandeep Singh
 
JEE Course - JEE Overview
JEE Course - JEE  OverviewJEE Course - JEE  Overview
JEE Course - JEE Overviewodedns
 
Introduction to java_ee
Introduction to java_eeIntroduction to java_ee
Introduction to java_eeYogesh Bindwal
 
The Foundation of the Software Defined Data Center
The Foundation of the Software Defined Data CenterThe Foundation of the Software Defined Data Center
The Foundation of the Software Defined Data CenterArraya Solutions
 
Eclipse tools for deployment to was liberty profile in Bluemix
Eclipse tools for deployment to was liberty profile in BluemixEclipse tools for deployment to was liberty profile in Bluemix
Eclipse tools for deployment to was liberty profile in BluemixEclipse Day India
 
Introduction to spring
Introduction to springIntroduction to spring
Introduction to springodedns
 
Oracle Master Serials Technology Experience Program 2013 - ADF
Oracle Master Serials Technology Experience  Program 2013 - ADFOracle Master Serials Technology Experience  Program 2013 - ADF
Oracle Master Serials Technology Experience Program 2013 - ADF益裕 張
 
Oracle Fusion & Cloud Applications Overview
Oracle Fusion & Cloud Applications OverviewOracle Fusion & Cloud Applications Overview
Oracle Fusion & Cloud Applications OverviewAhmed El-Demasy
 
Enterprise java unit-1_chapter-1
Enterprise java unit-1_chapter-1Enterprise java unit-1_chapter-1
Enterprise java unit-1_chapter-1sandeep54552
 
D02 - What are the best tools for Building Web 2.0 Applications.ppt
D02 - What are the best tools for Building Web 2.0 Applications.pptD02 - What are the best tools for Building Web 2.0 Applications.ppt
D02 - What are the best tools for Building Web 2.0 Applications.pptMatthew Perrins
 
Was migration benefits, planning, best practices
Was migration benefits, planning, best practicesWas migration benefits, planning, best practices
Was migration benefits, planning, best practicessflynn073
 
Oracle Weblogic for EBS and obiee (R12.2)
Oracle Weblogic for EBS and obiee (R12.2)Oracle Weblogic for EBS and obiee (R12.2)
Oracle Weblogic for EBS and obiee (R12.2)Berry Clemens
 
Chapter 12:Understanding Server-Side Technologies
Chapter 12:Understanding Server-Side TechnologiesChapter 12:Understanding Server-Side Technologies
Chapter 12:Understanding Server-Side TechnologiesIt Academy
 
Con11257 schifano con11257-best practices for deploying highly scalable virtu...
Con11257 schifano con11257-best practices for deploying highly scalable virtu...Con11257 schifano con11257-best practices for deploying highly scalable virtu...
Con11257 schifano con11257-best practices for deploying highly scalable virtu...Berry Clemens
 
Lecture 19 dynamic web - java - part 1
Lecture 19   dynamic web - java - part 1Lecture 19   dynamic web - java - part 1
Lecture 19 dynamic web - java - part 1Д. Ганаа
 

Similar to WebSphere 6.1 Admin Course 1 (20)

Web Sphere Administration guide – Packaging and Deploying Jee Applications
Web Sphere Administration guide – Packaging and Deploying Jee ApplicationsWeb Sphere Administration guide – Packaging and Deploying Jee Applications
Web Sphere Administration guide – Packaging and Deploying Jee Applications
 
JEE Course - JEE Overview
JEE Course - JEE  OverviewJEE Course - JEE  Overview
JEE Course - JEE Overview
 
Introduction to java_ee
Introduction to java_eeIntroduction to java_ee
Introduction to java_ee
 
4. J2EE.pptx
4. J2EE.pptx4. J2EE.pptx
4. J2EE.pptx
 
websphere - Understanding web sphere performance
websphere - Understanding web sphere performancewebsphere - Understanding web sphere performance
websphere - Understanding web sphere performance
 
Java Introduction
Java IntroductionJava Introduction
Java Introduction
 
The Foundation of the Software Defined Data Center
The Foundation of the Software Defined Data CenterThe Foundation of the Software Defined Data Center
The Foundation of the Software Defined Data Center
 
Eclipse tools for deployment to was liberty profile in Bluemix
Eclipse tools for deployment to was liberty profile in BluemixEclipse tools for deployment to was liberty profile in Bluemix
Eclipse tools for deployment to was liberty profile in Bluemix
 
Introduction to spring
Introduction to springIntroduction to spring
Introduction to spring
 
Oracle Master Serials Technology Experience Program 2013 - ADF
Oracle Master Serials Technology Experience  Program 2013 - ADFOracle Master Serials Technology Experience  Program 2013 - ADF
Oracle Master Serials Technology Experience Program 2013 - ADF
 
Java language pppppt
Java language ppppptJava language pppppt
Java language pppppt
 
Oracle Fusion & Cloud Applications Overview
Oracle Fusion & Cloud Applications OverviewOracle Fusion & Cloud Applications Overview
Oracle Fusion & Cloud Applications Overview
 
Enterprise java unit-1_chapter-1
Enterprise java unit-1_chapter-1Enterprise java unit-1_chapter-1
Enterprise java unit-1_chapter-1
 
D02 - What are the best tools for Building Web 2.0 Applications.ppt
D02 - What are the best tools for Building Web 2.0 Applications.pptD02 - What are the best tools for Building Web 2.0 Applications.ppt
D02 - What are the best tools for Building Web 2.0 Applications.ppt
 
Was migration benefits, planning, best practices
Was migration benefits, planning, best practicesWas migration benefits, planning, best practices
Was migration benefits, planning, best practices
 
Oracle Weblogic for EBS and obiee (R12.2)
Oracle Weblogic for EBS and obiee (R12.2)Oracle Weblogic for EBS and obiee (R12.2)
Oracle Weblogic for EBS and obiee (R12.2)
 
Chapter 12:Understanding Server-Side Technologies
Chapter 12:Understanding Server-Side TechnologiesChapter 12:Understanding Server-Side Technologies
Chapter 12:Understanding Server-Side Technologies
 
Advance java1.1
Advance java1.1Advance java1.1
Advance java1.1
 
Con11257 schifano con11257-best practices for deploying highly scalable virtu...
Con11257 schifano con11257-best practices for deploying highly scalable virtu...Con11257 schifano con11257-best practices for deploying highly scalable virtu...
Con11257 schifano con11257-best practices for deploying highly scalable virtu...
 
Lecture 19 dynamic web - java - part 1
Lecture 19   dynamic web - java - part 1Lecture 19   dynamic web - java - part 1
Lecture 19 dynamic web - java - part 1
 

Recently uploaded

Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 

Recently uploaded (20)

Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 

WebSphere 6.1 Admin Course 1

  • 2. Agenda • • • • • • • • WebSphere Overview JEE Overview WebSphere Architecture Installing WebSphere The Admin Console Managing Applications JEE Technologies Summary Copyright © Oded Nissan 2009
  • 4. What is WebSphere ? • WebSphere is not a product but an IBM brand, powered by Java and JEE. • WebSphere is infrastructure software for delivery of e-business applications. • The WebSphere product family is divided into three categories: – Foundation and Tools – Business portals – Business Integration Copyright © Oded Nissan 2009
  • 6. WebSphere Product Family • Foundation and Tools - represents the heart of the WebSphere product line; the WAS, the RAD product line, and the WebSphere tools for host integration. • Business Portals - include WebSphere Portal Server WebSphere Commerce etc. • Business Integration - includes the WebSphere MQ family of products for enterprise messaging, workflow, systems integration, WebSphere Business Integration. Copyright © Oded Nissan 2009
  • 7. Additional Product Families • The Tivoli family of products for systems management and security provide additional capabilities for WebSphere. • The Rational family of products for application development, such as Rational Application Developer, Rational Modeler for UML modeling, Rational Clear Case for SCM. Copyright © Oded Nissan 2009
  • 8. WebSphere Application Server (WAS) • A JEE compliant application server. • Provides the core technologies used by other WebSphere products. • Provides an environment to run web based multi-tier e-business applications. Copyright © Oded Nissan 2009
  • 9. WebSphere Application Server (WAS) Copyright © Oded Nissan 2009
  • 10. WAS Packaging • WAS Express V 6.0 – A lightweight edition of WAS without an EJB container. • WAS Base V6.1 – A fully compliant JEE server supporting the JEE 1.4 spec. • WAS Network Deployment V6.1 – extends WAS Base to include clustering capabilities, edge components and distributed configuration management. Copyright © Oded Nissan 2009
  • 11. WAS Packaging Copyright © Oded Nissan 2009
  • 12. Resources • Info center for WAS 6.1 http://publib.boulder.ibm.com/infocenter/wasi • IBM Redbooks http://www.redbooks.ibm.com/ Copyright © Oded Nissan 2009
  • 13. JEE Overview Copyright © Oded Nissan 2009
  • 14. What is JEE ? • A set of technologies for developing enterprise applications in Java • Specified by Sun and the Java Community Process (JCP). • Implemented by JEE vendors. • Implementations of JEE technologies are provided within Application Servers. • Previously named J2EE (until version 1.4) current version is JEE 5. Copyright © Oded Nissan 2009
  • 15. What is JEE ? • Relation between JEE vendors and developers. Copyright © Oded Nissan 2009
  • 16. What is JEE ? • The Java Platform Java Technology Enabled Devices Java Technology Enabled Desktop Copyright © Oded Nissan 2009 Workgroup Server High-End Server
  • 17. The Java Platform Java Platform Micro Edition (JavaMETM) Optional Packages Optional Packages Java Enterprise Edition (JEE) Java Standard Edition (JavaSE) Personal Basis Profile Personal Profile Foundation Profile CDC JVM MIDP CLDC KVM Copyright © Oded Nissan 2009 * Under development in JCP Java Card APIs CardVM
  • 18. Why do we need JEE ? • • • • • • • • Standard API Portable Tool Support Distribution Transactions Security Scalability Persistence Copyright © Oded Nissan 2009
  • 19. The JEE Architecture • N-tier architecture • Comprised of technologies for the business tier the presentation tier and other system services. • Runs within the application server and within specific containers (web container, EJB container) within the Application server. Copyright © Oded Nissan 2009
  • 20. The JEE Architecture • Uses the "component and container" model in which container provides system services in a well-defined and as industry standard • JEE is a standard that also provides portability of code because it is based on Java technology and standard-based Java programming APIs Copyright © Oded Nissan 2009
  • 21. About N-Tier Architecture • Single Tier – a simple desktop application. • Two Tier – A thin or a fat client and a server. • Three Tier – A presentation tier a business tier and a Data tier. Copyright © Oded Nissan 2009
  • 22. Three-Tier architecture Web Tier EJB Tier Copyright © Oded Nissan 2009
  • 23. JEE Tier Architecture Copyright © Oded Nissan 2009
  • 24. JEE Application Servers • JEE vendors provide their implementation of JEE technologies within an Application Server. • Each application server has its own implementation of JEE standards as well as some proprietary features. • Comprised of a Web Container,EJB Container and other server services. Copyright © Oded Nissan 2009
  • 25. The App server and JEE containers. Copyright © Oded Nissan 2009
  • 26. JEE Development Roles • Component provider – Bean provider • Application assembler • Deployer • Platform provider – Container provider • Tools provider • System administrator Copyright © Oded Nissan 2009
  • 27. The JEE Life Cycle Creation Assembly Deployment Created by JEE Modules Component Developer Assembled and Augmented JEE APP by Application Assembler Processed by Deployer Deploy JEE Container Enterprise Components Copyright © Oded Nissan 2009
  • 28. System Administrator Role • • • • Manage servers Install and manage applications. Manage and maintain configurations. Create and maintain server topologies: network deployment, cluster etc. • Monitor and troubleshoot production and test deployments. • Implement a security policy. Copyright © Oded Nissan 2009
  • 29. JEE Development Tools • Provided by Application Server vendors or open source projects. • Usually provided as plugins to popular IDEs such as Eclipse or NetBeans. • The tools help developers create JEE resources, debug and deploy them. Copyright © Oded Nissan 2009
  • 30. JEE Development Tools • IBM – provides the RAD product (based on Eclipse) for developing for WebSphere. • RAD 7.0 is compatible with WAS 6.1 • The Eclipse project provides open source plugins for most application servers. Copyright © Oded Nissan 2009
  • 31. The JEE Application Structure Copyright © Oded Nissan 2009
  • 32. JEE Application Structure • A JEE application is packaged into an EAR file. • The EAR file contains Web modules, EJB modules and utility jars. • The Web application is packaged into a WAR file, and the WAR file is packaged into the EAR. • The EJB’s are packaged into a special jar file which is the EJB module, which is packaged into the EAR file. Copyright © Oded Nissan 2009
  • 33. JEE Application Structure Copyright © Oded Nissan 2009
  • 34. The EAR File Structure Copyright © Oded Nissan 2009
  • 35. JEE projects in RAD Copyright © Oded Nissan 2009
  • 36. Packaging JEE Applications • In order to deploy applications to WebSphere application code must be packaged into JEE modules (EAR WAR JAR etc.) • Packaging applications can be done using: – RAD export options. – Ant scripts. Copyright © Oded Nissan 2009
  • 38. The WebSphere Architecture • Base or Single Server environment features a standalone single server. • Network Deployment or Multi Server environment, features multi servers managed centrally by a deployment management process. Copyright © Oded Nissan 2009
  • 39. The WebSphere Architecture • A server is the smallest configuration unit and represents a WAS instance. • A Node is a configuration unit that can include several servers, usually a node represents a physical machine running WAS. • A Cell is a configuration unit that can include several nodes. Copyright © Oded Nissan 2009
  • 40. The WebSphere Architecture • In a Base environment a single node manages a single server. • In a Network Deployment environment we have a cell managing several nodes each containing one or more servers. Copyright © Oded Nissan 2009
  • 41. Base Environment Copyright © Oded Nissan 2009
  • 43. Java Management Extensions (JMX) • The system management functionality of WebSphere Application Server is based on the use of Java Management Extensions (JMX). JMX is a framework that provides a standard way of exposing Java esources, for example application servers, to a system management infrastructure. • The JMX framework allows a provider to implement functions, such as listing the configuration settings, and allows users to edit the settings. It also includes a notification layer that can be used by management applications to monitor events. Copyright © Oded Nissan 2009
  • 44. JMX Architecture • The JMX architecture is structured into three layers: • Instrumentation layer The instrumentation layer dictates how resources can be wrapped within special Java beans called Management Beans (MBeans). • The agent layer consists of the MBean server and agents, which provide a management infrastructure. • Management layer The management layer defines how external management applications can interact with the underlying layers in terms of protocols, APIs, and so on. Copyright © Oded Nissan 2009
  • 45. JMX Architecture Copyright © Oded Nissan 2009
  • 47. Distributed Administration • Administration in a distributed server environment is by necessity more complex than administration in a stand-alone server environment. • In a distributed server environment, multiple WebSphere Application Server nodes are managed from a single central location. Copyright © Oded Nissan 2009
  • 48. Distributed Administration • Administration is performed by three layers. Copyright © Oded Nissan 2009
  • 50. Distributed Process Discovery • When a managed server begins its startup, it sends a discovery request message that allows other processes to discover its existence and establishcommunication channels with the process. • Each node agent and deployment manager maintains status and configuration information by using discovery addresses, or ports. On startup, processes discover other running components, and create communication channels Copyright © Oded Nissan 2009
  • 52. Configuration Management • In a distributed server environment, the master repository of configuration and application data for the cell is managed by the deployment manager. • Each node contains a separate copy of the repository containing only the required files. • When an administrator makes changes to the configuration using an administration tool and saves these changes to the master repository, they are available for use. The next step is to synchronize the changes out to the nodes of the cell. Copyright © Oded Nissan 2009
  • 53. Configuration Synchronization • Responsible for synchronizing the master configuration to all nodes in the cell. • During the synchronization operation, the node agent checks with the deployment manager to see if any files that apply to the node have been updated in the master repository. New or updated files are sent to the node, while any deleted files are also deleted from the node. Copyright © Oded Nissan 2009
  • 55. WAS Installation Copyright © Oded Nissan 2009
  • 56. Hardware Requirements • For Windows (32 bit WebSphere Application Server) – – – – – • Intel® Pentium processor at 500 MHz or faster Intel EM64T or AMD Opteron 1030 MB disk space Minimum 512 MB physical memory; 1 GB recommended CD-ROM drive For Windows (64 bit WebSphere Application Server) – – – – AMD Opteron or Intel EM64T 1030 MB disk space Minimum 1 GB of physical memory recommended CD-ROM drive Copyright © Oded Nissan 2009
  • 57. Software Requirements - OS • • • • • • • Microsoft Windows Server 2008, Microsoft Windows XP Professional with SP2 Microsoft Vista Business Microsoft Vista Enterprise Microsoft Vista Ultimate Microsoft Windows 2000 Microsoft Windows Server 2003 Copyright © Oded Nissan 2009
  • 58. Software Requirements - Java • IBM 32-bit SDK for Windows, Java 2 Technology Edition, V5.0 SR2 • IBM 64-bit SDK for Windows on AMD64/EM64T architecture, Java 2 Technology Edition, V5.0 SR2 • The Java VM supplied with WebSphere must be used to run WAS and application clients. Copyright © Oded Nissan 2009
  • 59. Software Requirements – Web Servers • • • • • IBM HTTP Server V7.0 V6.1 V6.0 Apache HTTP Server V2.2 V2.0.54 Microsoft IIS V7.0 V6.0 V5.0 Lotus Domino Enterprise Server 6.5.4 or 7.0 More specific details at: – http://www-01.ibm.com/support/docview.wss?rs=180 Copyright © Oded Nissan 2009
  • 60. WAS Installation Copyright © Oded Nissan 2009
  • 61. WAS Installation Copyright © Oded Nissan 2009
  • 62. WAS Installation Copyright © Oded Nissan 2009
  • 63. WAS Installation Copyright © Oded Nissan 2009
  • 64. WAS Installation Copyright © Oded Nissan 2009
  • 65. WAS Installation Copyright © Oded Nissan 2009
  • 66. WAS Installation Copyright © Oded Nissan 2009
  • 67. WAS Installation Copyright © Oded Nissan 2009
  • 68. WAS Installation Copyright © Oded Nissan 2009
  • 69. First Steps • First Steps is a post installation tool that is started automatically at the end of installation. • Can be started from the windows menu or command line. • Used to verify the installation. Run the installation verification utility. Copyright © Oded Nissan 2009
  • 70. First Steps Copyright © Oded Nissan 2009
  • 71. Installing WebSphere • Install WAS on your machine, according to the options specified in the previous slides. • Verify the installation by running the installation verification from the FirstSteps console. • Run the administrative console from the First Steps console. Copyright © Oded Nissan 2009
  • 72. Installing Silently • Installing WebSphere Application Server using silent installation refers to using a file to supply installation options without user interaction. • To configure the installation, change the options in the response file before you issue the installation command. Copyright © Oded Nissan 2009
  • 73. Customizing the Response file • Locate the sample options response file. The file is named responsefile.base.txt in the WAS directory on the product CD-ROM or DVD. • Copy the file to preserve it in its original form. For example, copy it as myoptions.txt on your disc drive. • Edit the copy in your flat file editor of choice, on the target operating system. Read the directions within the response file to choose appropriate values. Copyright © Oded Nissan 2009
  • 74. Installing Silently • Run the installer with the response file as a parameter: – "disc_drive_D:WASinstall" -options "C:tempWASmyoptionsfile.txt" -silent Copyright © Oded Nissan 2009
  • 75. WAS Directory Structure Copyright © Oded Nissan 2009
  • 76. WAS Directory Structure • • • • • • • bin – contains command line tools _uninst – uninstaller for products. config – XML configuration files InstalledApps – installed applications java – the JRE installed with WAS logs – WAS log files properties – property files for WAS configuration. Copyright © Oded Nissan 2009
  • 77. WAS Directory Structure • profiles – contains WAS profiles. (A profile defines a WAS configuration). • lib – WAS java libraries • derby – a lightweight relational DB. • samples – sample applications with source and jacl scripts. Copyright © Oded Nissan 2009
  • 78. Command Line Tools • • • • • startServer – starts the server stopServer – stops the server serverStatus – displays server status wasProfile – manage WAS profiles. versionInfo – displays installed product versions. Copyright © Oded Nissan 2009
  • 79. Log files in the logs directory • SystemOut.log – the JVM output log, contains all WAS and application messages logged to the standard output. • SystemErr.log – contains all WAS and application messages logged to standard error. • startServer.log and stopServer.log – log messages related to server startup and shutdown. • Native_stderr.log and native_stdout.log – contains log messages from native libraries logged to standard output and standard error. Copyright © Oded Nissan 2009
  • 80. The Admin Console Copyright © Oded Nissan 2009
  • 81. The WAS Admin Console • A web based application for administrating the server. • Configuration is read and saved into XML files in the config directory. • The admin console itself is a JEE application installed on WebSphere. Copyright © Oded Nissan 2009
  • 82. Starting the admin console • The admin console can be started using a browser by pointing to the URL: http://localhost:9060/ibm/console • In the login screen we can optionally enter a username • If security is enabled we must enter a username and password. Authentication is performed using a JAAS module. Copyright © Oded Nissan 2009
  • 83. The WAS Admin Console Copyright © Oded Nissan 2009
  • 84. Admin Console Navigation Menu • Servers – management and administration of application servers, web servers and MQ servers. • Applications – installation, removal and management of JEE applications. • Resources – creation and configuration of JEE resources such as JDBC Datasources, JMS queues and messaging engines, JCA Connectors and more. Copyright © Oded Nissan 2009
  • 85. Admin Console Navigation Menu • Security – security management and configuration for servers and applications. • Environment – configuration of virtual hosts, web server plugin generation, environment variables, JNDI naming and more. • System Administration – saving the master configuration and console prefrences. Copyright © Oded Nissan 2009
  • 86. Admin Console Navigation Menu • Users and Groups – configuration and management of users, groups and roles. Relevant only if administrative security is enabled. • Monitoring and Tuning – configuration of performance monitoring. • Troubleshooting – logging and tracing configuration. Copyright © Oded Nissan 2009
  • 87. Admin Console Navigation Menu • Service Integration – configuration of message buses and web services (handlers, security etc.) • UDDI – management of UDDI nodes, UDDI is a web services registry. • Guided Activities – wizards for connecting a web server to an application server and connecting to a database. Copyright © Oded Nissan 2009
  • 88. Customizing the Admin Console • The console navigation provides a hierarchical view of all of the tasks available in the console. A task is a page in the work area consisting of one or more console modules. • Use the view menu at the top of the navigation to filter the list of tasks by product. Or, you can create a customized list by selecting My tasks from the View menu. Copyright © Oded Nissan 2009
  • 89. Saving Changes • Until you save changes to the master repository, the administrative console uses a local workspace to track your changes. • You can update the master repository with your administrative console changes, discard your administrative console changes and continue working with the master repository, or continue working with your administrative console changes that are not saved to the master repository. Copyright © Oded Nissan 2009
  • 90. Console Preferences • Turn on workspace automatic refresh - Specifies whether you want the administrative console workspace to redraw automatically after the administrative configuration changes. • No confirmation on workspace discard - Specifies whether the confirmation dialog is displayed after a request is received to discard the workspace. The default is to display confirmation dialogs. Copyright © Oded Nissan 2009
  • 91. Console Preferences • Use default scope - Specifies whether the default scope is the administrative console node. • Show the help portlet - Specifies whether the help portlet on the right of the console displays. • Synchronize changes with nodes - Specifies whether to synchronize changes that are saved to the deployment manager profile with all the nodes that are running. Copyright © Oded Nissan 2009
  • 92. Console Preferences • Enable command assistance notifications Specifies whether to send Java Management Extensions (JMX) notifications that contain command assistance data from the administrative console. • Log command assistance commands Specifies whether to log all the command assistance wsadmin data to a file. Copyright © Oded Nissan 2009
  • 94. Application Server Settings • Use this page to view or change the settings of an application server instance. An application server is a server which provides services required to run enterprise applications. • To view this administrative console page, click Servers > Application Servers > server_name. • On the Configuration tab, you can edit fields. On the Runtime tab, you can look at read-only information. The Runtime tab is available only when the server is running. Copyright © Oded Nissan 2009
  • 95. Configuration Tab – General Properties • Name - Specifies a logical name for the server. Server names must be unique within a node. Read only. • Node Name – the Websphere node. • Run in development mode - Enabling this option may reduce the startup time of an application server. • Parallel Start - Specifies that you want the server components, services, and applications to start in parallel rather than sequentially. Copyright © Oded Nissan 2009
  • 96. Configuration Tab – General Properties • Class loading mode - Specifies whether the class loader should search in the parent class loader or in the application class loader first to load a class. • Access to internal server classes - Specifies whether the applications can access many of the server implementation classes. Copyright © Oded Nissan 2009
  • 97. Runtime Tab • Process Id – the process id of the server process in the OS. • Cell Name • Node Name • State – the server’s state Copyright © Oded Nissan 2009
  • 98. Container Settings • Web Container – settings related to the web container. • EJB Container – settings related to the EJB container. • Container services – ORB service settings, profiling settings, transaction settings and more. Copyright © Oded Nissan 2009
  • 99. Server Infrastructure • Java and process management – JVM settings, JVM system properties, process parameters etc. • Administration – configuration of administration services, JMX connection type etc. Copyright © Oded Nissan 2009
  • 100. Communication • Ports – the communication ports used by WebSphere, here we can change the ports. • Messaging – the JMS messaging listener service used by MDBs. Copyright © Oded Nissan 2009
  • 101. In General • The configuration tab contains shortcuts to categories that can be reached using the navigator. • Use the console’s online help by pressing the help link in the upper right corner of the screen, in order to get help about the various configuration options. Copyright © Oded Nissan 2009
  • 102. Administration with Scripting • WebSphere can also be configured using a scripting language. • WebSphere provides a scripting interface base on the Bean Scripting Framework(BSF) called wsadmin. • Wsadmin acts as an interface to Java objects accessed by scripts. Copyright © Oded Nissan 2009
  • 103. Administration with Scripting • Wsadmin uses JMX beans for configuration. Copyright © Oded Nissan 2009
  • 104. The wsadmin Tool • Wsadmin supports two different scripting language syntaxes: JACL and jython. • JACL is on its way out, jython will be the only scripting language used in WebSphere 7. • Most existing scripts today are written in JACL. Copyright © Oded Nissan 2009
  • 105. The wsadmin Tool • Wsadmin supports two different scripting language syntaxes: JACL and jython. • JACL is on its way out, jython will be the only scripting language used in WebSphere 7. • Most existing scripts today are written in JACL. Copyright © Oded Nissan 2009
  • 106. The wsadmin Tool • Wsadmin can be launched from <WAS_HOME>/profiles/<profile name>/bin/wsadmin.bat • Three ways to launch: – Command option wsadmin –c <command> – Script file: wsadmin –f <script file> – Interactively: wsadmin Copyright © Oded Nissan 2009
  • 107. The wsadmin Tool • There are five Java objects that perform different operations: – AdminConfig – create or change the configuration. – AdminApp – install modify or manage applications. – AdminControl – work with running objects, perform traces and data type conversion. – AdminTask – access a set of task oriented administration commands. – Help – display information and details about which Mbeans are running. Copyright © Oded Nissan 2009
  • 108. JACL Script Example set temp [catch {$AdminApp list} appList] puts "List of application will be uninstalled are $appList" foreach app $appList { set temp [catch {$AdminApp uninstall $app} uninstallResult] puts "Uninstall result $uninstallResult" set temp [catch {$AdminConfig save} saveResult] puts "Save result $saveResult" } Copyright © Oded Nissan 2009
  • 110. Managing Applications • Use the console to manage existing applications. (start, stop remove etc.) • Use the console to install new JEE applications packaged in an EAR file. Copyright © Oded Nissan 2009
  • 112. Enterprise Applications • • • • • Start – start the selected application. Stop – stop the selected application. Install – install a new application. Uninstall – remove an existing application. Update – update an existing application with a new EAR file. • Remove file – remove a single file from an application. Copyright © Oded Nissan 2009
  • 113. Enterprise Applications • Export – export the application as an EAR file. • Export DDL – export DDL files found in the application. • The application status shows the current status of the application (started, stopped). Copyright © Oded Nissan 2009
  • 114. Installing an application • We can install an application in WebSphere in 3 different ways: – Using the Admin Console. – Using wsadmin scripting files. (we will discuss later). – Programmatically using JMX beans. Copyright © Oded Nissan 2009
  • 115. Installing an Application (step 1) • Choose the EAR file to install Copyright © Oded Nissan 2009
  • 116. Installing an Application (step 1) • Browse the file system and choose the EAR file to install. • Context root – change the context root for web applications. In case we are installing a WAR file and not an EAR file. Copyright © Oded Nissan 2009
  • 117. Installing an Application (step 2) Copyright © Oded Nissan 2009
  • 118. Installing an Application (step 2) • Precompile JavaServer Pages files - Specify whether to precompile JavaServer Pages (JSP) files as a part of installation. • Directory to install application – install the application is a specific directory. • Deploy enterprise beans – deploy EJBs if they have not been deployed. • Press the next button without overriding default values. Copyright © Oded Nissan 2009
  • 119. Installing an Application (step 3) Copyright © Oded Nissan 2009
  • 120. Installing an Application (step 3) • Use this panel to specify deployment targets where you want to install the modules contained in your application. Modules can be installed on the same deployment target or dispersed among several deployment targets. A deployment target can be an application server, cluster of application servers or Web server. • Press the next button Copyright © Oded Nissan 2009
  • 121. Installing an Application (step 4) Copyright © Oded Nissan 2009
  • 122. Installing an Application (step 4) • Review your settings and press finish to complete the installation. Copyright © Oded Nissan 2009
  • 123. Installing an Application (step 5) Copyright © Oded Nissan 2009
  • 124. Installing an Application (step 5) • WebSphere displays application deployment messages. Installation problems will be displayed here. • Chose save to master configuration to complete the application installation. • We can now start the application by choosing the manage applications link. Copyright © Oded Nissan 2009
  • 125. JEE Technologies Copyright © Oded Nissan 2009
  • 126. JEE 1.4 Technologies • Presentation tier technologies – Servlets 2.4 – Java Server Pages (JSP) 2.0 – Java Standard Tag Library – Web Services These technologies enable the implementation of a presentation tier in the JEE framework. Copyright © Oded Nissan 2009
  • 127. JEE 1.4 Technologies • Enterprise Application Technologies – Enterprise Java Beans (EJB) 2.1 – Java Connector Architecture (JCA) 1.5 – Java Messaging Services (JMS) 1.1 – Java Transaction API (JTA) 1.1 These technologies enable the implementation of the business tier in the JEE framework. Copyright © Oded Nissan 2009
  • 128. Enterprise Java Beans (EJB) • What is EJB ? – EJB is a standard JEE technology developed by Sun and the Java community – A component architecture for building distributed applications. – A server side technology. – Usually used to implement the application’s business logic. Copyright © Oded Nissan 2009
  • 129. Benefits of EJB • • • • • • Distributed components Transaction management support Security Scalability and fail-over Asynchronous Persistence – object relational mapping. Copyright © Oded Nissan 2009
  • 130. EJB Types • Stateless Session beans • Stateful Session beans • Message driven beans – asynchronous, based on JMS. • Entities – Java Persistence architecture (JPA). Object-relational mapping. Copyright © Oded Nissan 2009
  • 131. EJB Example Copyright © Oded Nissan 2009
  • 132. Java Messaging Services (JMS) • Messaging systems (MOM) provide – De-coupled communication – Asynchronous communication – Plays a role of centralized post office • Benefits of Messaging systems – Flexible, Reliable, Scalable communication systems • Point-to-Point, Publish and Subscribe • JMS defines standard Java APIs to messaging systems Copyright © Oded Nissan 2009
  • 133. Java Connector Architecture (JCA) • Defines standard API for integrating J2EE technology with EIS systems – CICS, SAP, PeopleSoft, etc. • Before Connector architecture, each App server has to provide an proprietary adaptor for each EIS system – m (# of App servers) x n (# of EIS's) Adaptors • With Connector architecture, same adaptor works with all JEE compliant containers – 1 (common to all App servers) x n (# of EIS's) Adaptors Copyright © Oded Nissan 2009
  • 134. Java Transaction API • The Java™ Transaction API (JTA) allows applications to perform distributed transactions, that is, transactions that access and update data on two or more networked computer resources. • The JTA specifies standard Java interfaces between a transaction manager and the parties involved in a distributed transaction system: the application, the application server, and the resource manager that controls access to the shared resources affected by the transactions. Copyright © Oded Nissan 2009
  • 135. Java Transaction API (JTA) • A JTA transaction is controlled by the Java EE transaction manager. • JEE support declarative transactions, called Container Managed Transactions. • The JTA API can also be used directly by the developer. • JTA supports XA transactions. Copyright © Oded Nissan 2009
  • 136. Servlets • Java™ objects which extend the functionality of a HTTP server • Dynamic contents generation • Better alternative to CGI, NSAPI, ISAPI, etc. – Efficient – Platform and server independent – Session management – Java-based Copyright © Oded Nissan 2009
  • 137. Servlet Example A Servlet receives an HTTP request performs an action and generate output, Copyright © Oded Nissan 2009
  • 138. Java Server Pages (JSP) • Enables separation of business logic from presentation – Presentation is in the form of HTML or XML/XSLT – Business logic is implemented as Java Beans or custom tags – Better maintainability, reusability • Extensible via custom tags • Builds on Servlet technology (JSP is compiled into a Servlet). Copyright © Oded Nissan 2009
  • 139. JSP Example <%@ page import="java.util.*" %> <HTML> <BODY> <% System.out.println( "Evaluating date now" ); Date date = new Date(); %> Hello! The time is now <%= date %> </BODY> </HTML> Copyright © Oded Nissan 2009
  • 140. Web Services • What is a Web Service ? – A web service is a software system identified by a URI, whose public interfaces and bindings are defined and described using XML. Its definition can be discovered by other software systems. These systems may then interact with the Web service in a manner prescribed by its definition, using XML-based messages conveyed by Internet protocols. Copyright © Oded Nissan 2009
  • 141. Web Services • Provide a way to connect heterogonous systems in a Language neutral, platform neutral manner. • Use the HTTP protocol to pass messages in the SOAP protocol. • Described by a Web Services Description language (WSDL) document. • Vendors provide tools to generate web service clients from a WSDL. • Web services can be registered and looked up in a UDDI directory. Copyright © Oded Nissan 2009
  • 142. Web Services Architecture Copyright © Oded Nissan 2009
  • 143. Web Services in JEE • Web services are a platform neutral standard, JEE provides its own platform implementation. • JEE provide tools for exposing JEE components such as EJBs as web services. • JEE also provides tools for generating web service clients from existing WSDL documents and an API for accessing the services. Copyright © Oded Nissan 2009
  • 144. Java Authentication and Authorizations Service (JAAS) • Pluggable authentication framework – – – – Userid/password Smartcard Kerberos Biometric • Application portability regardless of authentication schemes underneath – JAAS provides authentication scheme independent API – Authentication schemes are specified Login configuration file, which will be read by JAAS Copyright © Oded Nissan 2009
  • 146. JNDI • Java Naming and Directory Interface • Utilized by J2EE applications to locate resources and objects in portable fashion – Applications use symbolic names to find object references to resources via JNDI – The symbolic names and object references have to be configured by system administrator when the application is deployed. Copyright © Oded Nissan 2009
  • 147. Java management Extensions (JMX) • JMX technology provides a simple, standard way of managing resources such as applications, devices, and services. • JMX is used to monitor and manage the JVM itself (the jconsole application is an example). • In JEE JMX is used to manage server configuration and resources. • All applications server vendors provide JMX beans, which manage their servers. Copyright © Oded Nissan 2009
  • 148. Java management Extensions (JMX) Copyright © Oded Nissan 2009
  • 149. Putting it All Together Copyright © Oded Nissan 2009
  • 150. The App server and JEE containers. Copyright © Oded Nissan 2009
  • 151. Resources • Info center for WAS 6.1 http://publib.boulder.ibm.com/infocenter/wasinfo • IBM Redbook – sg247304 WAS 6.1 System Management and configuration. • Admin Console context sensitive online help. Copyright © Oded Nissan 2009
  • 152. Summary • • • • • • • WebSphere Overview JEE Overview WebSphere Architecture Installing WebSphere The Admin Console Managing Applications JEE Technologies Copyright © Oded Nissan 2009