You are on page 1of 21

INTRODUCTION TO JAVA 2

ENTERPRISE EDITION (J2EE)


Week – 2 (Part – 3)
Enterprise Application Development
(CS4183)
By: Maryam Zahid
Capital University of Science and Technology (C.U.S.T)
Content
• Basic Web Terminologies
• Preview on Enterprise Applications
• Introduction to J2EE
Web Terminologies - Website
• Website is a collection of related web pages that may
contain text, images, audio and video. Each website has
specific internet address (URL) that you need to enter in
your browser to access a website.
• Website is hosted on one or more servers and can be
accessed by visiting its homepage using a computer
network.
• A website is managed by its owner that can be an
individual, company or an organization.
Types of Website

Static
Website

Dynamic
Website
Static Website
• Static website is the basic type of website that is easy to
create.
• Static web pages are coded in HTML.
• You don't need web programming and database design to
create a static website.
• The codes are fixed for each page so the information
contained in the page does not change and it looks like a
printed page.
Dynamic Website
• Dynamic website is a collection of dynamic web pages
whose content changes dynamically. It accesses content
from a database or Content Management System
(CMS).
• When you alter or update the content of the web page or
database, the content of the website is also altered or
updated.
• Dynamic website uses client-side scripting or server-side
scripting, or both to generate dynamic content.
Static VS Dynamic Website - Example
Web Server
• Define HTTP?
• Web Server or HTTP Server: a server which is capable of
handling HTTP request send by a client and respond back
with a HTTP response.
Web Container
• In Java: Web Container or Servlet Container or Servlet
Engine : is used to manage the components like servlets,
JSP.
Application Server
Application Server or App Server: can handle all application
operations between users and an organization's back end
business applications or databases.
Static VS Dynamic Website
• Home Task (Assignment # 1b):
• Write down the similarities and the differences between static and
dynamic websites. Also represent is using an example
diagrammatically!
• Plagiarized Assignment will be marked ZERO!!
• Due Next Lecture!
Basic Terminologies

• A physical separation of
Tier components

• A logical separation of
Layer components
What is an Enterprise?
• In broad terms, enterprise means a business organization
• Enterprise applications are those software applications that f
facilitate various activities in an enterprise
• Enterprise applications help an enterprise to mange its
various business activities
Evolution of Enterprise Applications

Singl N-
2-Tier 3-Tier
e Tier Tier
Single Tier
• Also known as “One-Tier” or “Monolithic Code”
• Presentation, business logic, and data access are
intertwined in one mainframe application
• Dumb terminals are directly connected to mainframe
• Centralized model
• Presentation, business logic, and data access are
tightly coupled
• Changes required to any part of the functionality may
potentially affect other parts. Why ?
2-Tier
• Interaction of two-tier architecture
• Client: simply accesses web pages through web browser
• Server: retrieves html documents
• Disadvantages?
Java Applet-based Web Client/Server
• Interaction of two-tier architecture
• Client: uses Java Applet for client-side computation
• Server: provides Applet bytecode
• Fat Client/Thin Server
• Disadvantages?
3-Tier
• Comprises of 3 independent layers:
• Presentation Layer (Client Layer)
• Application Layer (Business Logic Layer)
• Data Access Layer connected to the database
• Is easier. How?
• Concurrent programming is possible
• Drawbacks?
Assignment # 1:
• List down the advantages and consequences of Single-
tier, Two-tier, 3-Tier and N-tier web applications

• Briefly explain N-Tier architecture using a diagram (with


highlighted and explained components). Also give an
example of an application mapping onto N-Tier
architecture using diagram!

• Plagiarized Assignment will be marked ZERO!!


• Due Next Week!

You might also like