You are on page 1of 19

IBM Academic Initiative

J2EE Fundamentals
“In-demand skills for an on-demand world”

Sriram Venkatesan | IT Specialist


IBM Academic Initiative

10/16/08 © 2004 IBM Corporation


IBM Academic Initiative

Agenda
 What is J2EE
 Why Java
 Evolution of Web Applications
 MVC & J2EE Architecture
 J2EE Components and Containers
 J2EE Technology
 Logical Flow
 J2EE Benefits

2 10/16/08 © 2003 IBM Corporation


IBM Academic Initiative

What is J2EE?
 Enterprise application development Specification
 Platform for
– developing, deploying and managing
– n-tier ,web-enabled ,server centric and component
based enterprise application

3 10/16/08 © 2003 IBM Corporation


IBM Academic Initiative

Why Java ?
 Platform Independence
– Enterprise information spread across different
platforms
 Reusability and Modularity
– Business requirement into component
– Complex business logic into Modules

4 10/16/08 © 2003 IBM Corporation


IBM Academic Initiative

Web Application Evolution - Static

•Organizations want to make their information available to as


many people in the world as possible. This can be achieved
by using the Web, delivering the information as static HTML
pages
5 10/16/08 © 2003 IBM Corporation
IBM Academic Initiative

Web Application Evolution - Applets

With static HTML, users see passive page presentations which


are always the same. Presentation can be improved with Java
applets or other client-side programs

6 10/16/08 © 2003 IBM Corporation


IBM Academic Initiative

Web Application Evolution - Servlets

Applets cannot access data on back-end systems. A Web


container can provide server-side components (such as
Servlets) to generate dynamic content
7 10/16/08 © 2003 IBM Corporation
IBM Academic Initiative

Web Application Evolution - JSPs

Servlets give poor separation between business logic and


presentation logic. Use JavaServer Pages and JavaBeans to
improve separation
8 10/16/08 © 2003 IBM Corporation
IBM Academic Initiative

Web Application Evolution - EJBs

EJBs – Are available remotely over the network –Encapsulate


business rules, application-specific logic, and access to data –
Can be used by many different types of application concurrently
– Represent a central repository of business logic
9 10/16/08 © 2003 IBM Corporation
IBM Academic Initiative

The M-V-C Pattern


 MVC – Model View Controller is a Design
Pattern
– Very widely used and regarded as a core
concept in J2EE development
– Various practical benefits
• Promotes code reuse
• Reduces development time

10 10/16/08 © 2003 IBM Corporation


IBM Academic Initiative

MVC Pattern
 The model
– Represents the underlying data and business logic in one place
– Contains no information about the user interface

 The view
– The user interface – things the user can see and respond to
– Represent a "window" into the model – there can be many of
these

 The controller
– Connects the model and the view
– Used to communicate between the model and view
 A fourth layer – persistence – is often added to the pattern

11 10/16/08 © 2003 IBM Corporation


IBM Academic Initiative

MVC – Application to J2EE

12 10/16/08 © 2003 IBM Corporation


IBM Academic Initiative

J2EE Architecture

13 10/16/08 © 2003 IBM Corporation


IBM Academic Initiative

Components and Containers


 Components - represents unit of development
and deployment
 Provide standardized Functionality , well
defined application interfaces
 Can easily be developed and deployed for
specific business purpose

14 10/16/08 © 2003 IBM Corporation


IBM Academic Initiative

Container
 Container - Facilitates a run time environment for the
application
– Client Container
• Platform for the client application to run
– Web Container
• Platform for the Server side application, like Servlets
and JSPs to be executed
– EJB Container
• Runtime environment for EJB

15 10/16/08 © 2003 IBM Corporation


IBM Academic Initiative

J2EE Multi-tier Model

16 10/16/08 © 2003 IBM Corporation


IBM Academic Initiative

J2EE Benefits
 Standards
– A wide range of standard services, components, clients, and tools are
supported
– Applications are portable across J2EE platforms
 Distribution
– Provides scalability for performance and availability
 Common services
– Most commonly required services are provided by J2EE servers
 Component model
– Good separation of development responsibilities
– Good reuse of code and opportunities to share logic between
applications
 Interoperability
– Integration with other systems using standard protocols

17 10/16/08 © 2003 IBM Corporation


IBM Academic Initiative

Summary

18 10/16/08 © 2003 IBM Corporation


IBM Academic Initiative

Questions???

Thank You!

19 10/16/08 © 2003 IBM Corporation

You might also like