J 2 EE PET STORE NET PET SHOP

















































- Slides: 49
J 2 EE PET STORE &. NET PET SHOP Yong-Han Lee & Charles Harsch
Introduction n Project Description
Recapitulation J 2 EE Pet Store &. NET Pet Shop n Business Model n
Purpose of Pet Store & Pet Shop n n Illustrate basic usage of J 2 EE technology and . NET technology Demonstrate current best practices in system design.
Comparison of J 2 EE PS and. NET PS n n J 2 EE: platform-independent, JAVA-centric. NET: Windows-centric and language-neutral Design goals of J 2 EE Pet Store and. NET Pet Shop were the same Almost the same performance
Business Model
Technological Architecture Model
Model of the Sample Applications n Tier Overview n n Tiered Architecture and used Technology MVC Patterns Design Patterns Modular Design (for J 2 EE Pet Store)
Tiered Architecture and used Technology
Pet Shop multi-tier: Purpose of Tiers
Pet Shop: High-Level Logical Architecture
General structure of a J 2 EE multi-tiered application
Technologies used in different tiers and their functionality in J 2 EE Pet Store
Correspondance of Tiers
Presentation Tier
Components in the Presentation Tier Computational Viewpoint – Detail Level 0
Pet Shop Presentation Tier: Computational Viewpoint of Components – Level 1
Files of J 2 EE Pet Store Web Site Web tier
Middle Tier
Components in the Business Logic Tier Computational Viewpoint – Detail Level 0
Pet Shop Business Logic Tier: Computational Viewpoint of Components – IT Level
Different enterprise beans in J 2 EE PS Web Site EJB tier
Implementation of an EJB
EJB in. NET? n n Enterprise Services Business Entity
Data Access Layer
Components in the Data Access Layer Computational Viewpoint – Detail Level 0
Pet Shop Data Access Layer: Computational Viewpoint of Components – IT Level
MVC Pattern
Model-View-Controller Pattern
Model-View-Controller Pattern: « Code behind »
J 2 EE: Model-View-Controller and corresponding Tiers
Design Patterns used in J 2 EE Pet Store n Design Patterns used in. NET Pet Shop n
Design Patterns used in J 2 EE Pet Store
In which tiers the Design Patterns are best implemented
Design Patterns and MVC
. NET Design Patterns: Design Patterns used in. NET Pet Shop
. NET Design Patterns: Design Patterns in Tiers
Model-View-Controller Pattern: Model-Controller separation
Model-View-Controller Pattern: MVC in Controller Pattern
Modular Design of J 2 EE Pet Store Modular development decouples components from one another benefits: • • • ease maintenance simplifies parallel development provides opportunities for incorporating third-party components
J 2 EE Pet Store Modular Design
Implementation of Control Module
Implementation of Catalog Module
Conclusion
Conclusion n n No big differences Performance: n n . NET a bit better, because efficient caching. . NET PS fewer lines of code, but not significant. J 2 EE PS not optimized for performance Architecture: n n n Both are multi-tiered application with same functionality. NET uses additional tier, business entity to track and pass data J 2 EE uses enterprise beans in EJB tier
Our Website http: //icwww. epfl. ch/~lee/project
Questions?
Thank you for your attention