Title: Chapter 5: Web Application Architecture and Design
1Chapter 5Web Application Architecture and
Design
Reference Eclipse WTP
2Objectives
- Web Applications
- MVC for the Web
- Java Application Frameworks
- Service-Oriented Architecture
- Case Study League Planet
3Simple Web Applications
4Distributed Multi-tiered Applications
J2EE Web Tier and Business Tier can run on
separate application servers
Source Java EE 5 Tutorial Chapter 1
5J2EE Containers
Client-side Presentation
Server-side Presentation
Server-side Business Logic
Enterprise Information System
Source Java EE 5 Tutorial Chapter 1
6MVC of the Web
7Java Application Frameworks
- Examples
- Struts, JSF, Spring, Beehive, Hibernate
- Pros
- Can simplify development of Java Web Applications
- Can improve testability and maintainability
- Cons
- Framework may not be up-to-date
- Especially when it is no longer popular
- May require lots of work when migrating
- E.g., migrating from Apache Struts to JSF
8Service-Oriented Architecture (SOA)
Makes application interoperable via UDDI, WSDL,
etc.
9League Planet Case StudyService Layer Design
10League Planet Case Study
- Presentation Layer
- JSP pages
- Controller Layer
- Servlets
- Service Layer
- Java Interface/Implementation, EJB Session
(Façade), Web Services - Model Layer
- Java Objects (POJO), EJB Entity Bean
- Persistence
- SQL (RDBMS)