BYSUNITA D. RATHOD
J2EE Objective:  - simplify development and maintenance of enterprise applications ( B2B, B2C ).
Enterprise applications goals•   To support or advance the goals of the    organization.•   To be able to compete effectiv...
Need for J2EE• Integration with legacy EIS.• Reliability and confidence.• Complexity (mission-critical) in building and ma...
J2EE goals• To provide an architecture to:  • Reduce server down-time.  • Increase application scalability (raise to deman...
Advantages of J2EE• Being developed and enhanced under the ordinance of JCP, meets the real-time requirements of enterpris...
Advantages of J2EE• Provides infrastructure/design to enable developers to create, distributed and interoperable enterpris...
What is J2EE?• It’s a separate edition of Java optimized to meet the usage  and performance requirements of enterprise sol...
What is J2EE?• It is an architecture specification to provide/support distributed, multi-tiered, component based platform/...
When do I use J2EE? To provide fast, reliable access to corporate databases from the Web. To build dynamic, data-driven ...
When do I use J2EE? To provide robust user authentication/authorization for web resources and other services. To write a...
Evolution of EnterpriseApplication Framework Single tier Two tier Three tier N- tier
About EnterpriseApplications Things that make up an enterprise application    – Presentation logic    – Business logic ...
Single Tier (Mainframe-based) Dumb terminals are directly  connected to mainframe Centralized model (as opposed  distrib...
Single-Tier : Pros & Cons Pros:    – No client side management is required    – Data consistency is easy to achieve Co...
Two-Tier Fat clients talking to back end database   – SQL queries sent, raw data    returned Presentation, Business log...
Two-Tier : Pros & Cons Pro:    – DB product independence (compared to single-tier model) Cons:    – Presentation, data...
Three-Tier (RPC based) Thinner client: business & data  model separated from  presentation   – Business logic and data a...
Three-Tier (RPC based) : Pros& Cons Pro:    – Business logic can change more flexibly than 2-tier     model        Most...
N-Tier• N-Tiered architecture: Various components that make up the application are logically separated or distributed acro...
Tier Architecture in J2EE
Tier Architecture in J2EE• Front end (Client):  • Viewed and manipulated by the users.  • It can live in a Web browser or ...
Tier Architecture in J2EE• Middle:  • Contains business logic Ex: Discounts.  • It may contain two sub-tiers:    •   Web T...
Tier Architecture in J2EE
Need for MVCJ2EE designers were faced with a question of whereto place the code in a distributed environment.Reasonable ...
What is MVC?• Technique aimed to make large applications  flexible/simple during development and maintenance.• It is a des...
What is MVC? In this pattern, application flow is mediated by a central controller that delegates requests to an appropri...
What is MVC? Ex: A pure GUI controller accepts input from the user and instructs the model to create a view based on that...
MVC ExampleVIEW   CONTROLLER            MODEL         getBalance()            Transfer()         Withdraw() ATM           ...
 THAT’S ALL FOR TODAY GOOD DAY
Upcoming SlideShare
Loading in …5
×

J2 ee archi

639 views

Published on

Published in: Technology, Education
2 Comments
0 Likes
Statistics
Notes
  • blessing_11111@yahoo.com

    My name is Blessing
    i am a young lady with a kind and open heart,
    I enjoy my life,but life can't be complete if you don't have a person to share it
    with. blessing_11111@yahoo.com

    Hoping To Hear From You
    Yours Blessing
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • blessing_11111@yahoo.com

    My name is Blessing
    i am a young lady with a kind and open heart,
    I enjoy my life,but life can't be complete if you don't have a person to share it
    with. blessing_11111@yahoo.com

    Hoping To Hear From You
    Yours Blessing
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Be the first to like this

No Downloads
Views
Total views
639
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
15
Comments
2
Likes
0
Embeds 0
No embeds

No notes for slide

J2 ee archi

  1. 1. BYSUNITA D. RATHOD
  2. 2. J2EE Objective: - simplify development and maintenance of enterprise applications ( B2B, B2C ).
  3. 3. Enterprise applications goals• To support or advance the goals of the organization.• To be able to compete effectively.• To streamline operations.• To save or make money.
  4. 4. Need for J2EE• Integration with legacy EIS.• Reliability and confidence.• Complexity (mission-critical) in building and maintaining. odules exist on heterogeneous environment. ifferent modules written in different languages.
  5. 5. J2EE goals• To provide an architecture to: • Reduce server down-time. • Increase application scalability (raise to demands). • Application stability (should execute as expected without crashing without exhibiting buggy nature or incompleteness). • Secure (be tolerant to unauthorized access of vital data). • Simplicity (to enable faster development and maintenance).
  6. 6. Advantages of J2EE• Being developed and enhanced under the ordinance of JCP, meets the real-time requirements of enterprise application developers.• Portable deployment – “develop once, deploy anywhere” mantra.• Forces to abide by three-tiered architecture and supports n-tier.
  7. 7. Advantages of J2EE• Provides infrastructure/design to enable developers to create, distributed and interoperable enterprise apps.• It is a distributed, multi-tiered and component based architecture that facilitates scalable applications.• Scalability of not only applications performance but also of application development process.
  8. 8. What is J2EE?• It’s a separate edition of Java optimized to meet the usage and performance requirements of enterprise solutions.• J2EE is J2SE + additional API’s (that provide enterprise computing capabilities) and an execution environment for them.• It is designed for construction of distributed apps and is based on MVC paradigm, a proven approach for designing multi-tier, enterprise apps that are scalable and maintainable.
  9. 9. What is J2EE?• It is an architecture specification to provide/support distributed, multi-tiered, component based platform/infrastructure to enable developers to create (develop) and deploy enterprise applications that are secure, distributed, interoperable and scalable.• It simplifies enterprise application development and maintenance by basing them on standardized, modular components, by providing a complete set of services to those components, and by handling details of application behavior automatically.
  10. 10. When do I use J2EE? To provide fast, reliable access to corporate databases from the Web. To build dynamic, data-driven web applications for large user populations that expect 24*7 availability. To automate E-Mail or wireless communications with partners, vendors, employees or customers. To implement complex business logic.
  11. 11. When do I use J2EE? To provide robust user authentication/authorization for web resources and other services. To write applications that seamlessly integrate data from disparate sources on multiple platforms. To execute distributed transactions across multiple data stores.
  12. 12. Evolution of EnterpriseApplication Framework Single tier Two tier Three tier N- tier
  13. 13. About EnterpriseApplications Things that make up an enterprise application  – Presentation logic  – Business logic  – Data access logic (and data model)  – System services The evolution of enterprise application framework reflects  – How flexibly you want to make changes  – Where the system services are coming from
  14. 14. Single Tier (Mainframe-based) Dumb terminals are directly connected to mainframe Centralized model (as opposed distributed model) Presentation, business logic, and data access are intertwined in one monolithic mainframe application Eg. FOXPRO
  15. 15. Single-Tier : Pros & Cons Pros:  – No client side management is required  – Data consistency is easy to achieve Cons:  – Functionality (presentation, data model, business logic) intertwined, difficult for updates and maintenance and code reuse
  16. 16. Two-Tier Fat clients talking to back end database  – SQL queries sent, raw data returned Presentation, Business logic and Data Model processing logic in client application • Client – Server systems • Ex:- Unix, mainframes
  17. 17. Two-Tier : Pros & Cons Pro:  – DB product independence (compared to single-tier model) Cons:  – Presentation, data model, business logic are intertwined (at client side), difficult for updates and maintenance  – Data Model is “tightly coupled” to every client: If DB Schema changes, all clients break  – Updates have to be deployed to all clients making System maintenance nightmare  – DB connection for every client, thus difficult to scale  – Raw data transferred to client for processing causes high network traffic
  18. 18. Three-Tier (RPC based) Thinner client: business & data model separated from presentation  – Business logic and data access logic reside in middle tier server while client handles presentation Middle tier server is now required to handle system services  – Concurrency control, threading, transaction, security, persistence, multiplexing, performance, etc.
  19. 19. Three-Tier (RPC based) : Pros& Cons Pro:  – Business logic can change more flexibly than 2-tier model  Most business logic reside in the middle-tier server Cons:  – Complexity is introduced in the middle-tier server  – Client and middle-tier server is more tightlycoupled (than the three-tier object based model)  – Code is not really reusable (compared to object model based)
  20. 20. N-Tier• N-Tiered architecture: Various components that make up the application are logically separated or distributed across network. • Client  Server  Server  Database • Eg. ATM Application
  21. 21. Tier Architecture in J2EE
  22. 22. Tier Architecture in J2EE• Front end (Client): • Viewed and manipulated by the users. • It can live in a Web browser or a standalone application. • Presents customized information to clients requirements. • Servlets and JSP is used as Front end development.
  23. 23. Tier Architecture in J2EE• Middle: • Contains business logic Ex: Discounts. • It may contain two sub-tiers: • Web Tier – It handles communication to client. • EJB Tier – It manages business logic and access to corporate data.• Backend (EIS): • Provides access to various corporate data stores (Databases, E-Mail system, Legacy systems…)
  24. 24. Tier Architecture in J2EE
  25. 25. Need for MVCJ2EE designers were faced with a question of whereto place the code in a distributed environment.Reasonable solution: To divide the code and putthem closer to their respective tier.This approach reminds a popular, proven 20 yearold application design pattern called MVC.MVC is a design pattern for building maintainableapplications, introduced by Xerox researchers.
  26. 26. What is MVC?• Technique aimed to make large applications flexible/simple during development and maintenance.• It is a design pattern for partitioning of labor into three layers.• The "model" is the internal workings of the program (the algorithms), the "view" is how the user sees the state of the model and the "controller" is how the user changes the state or provides input.
  27. 27. What is MVC? In this pattern, application flow is mediated by a central controller that delegates requests to an appropriate handler. Controller is the means by which users interacts with web application. Controller is responsible for input to the model.
  28. 28. What is MVC? Ex: A pure GUI controller accepts input from the user and instructs the model to create a view based on that input. If an invalid input is sent to the controller from the view, model informs controller to direct the view that error occurred and to tell it to try again.
  29. 29. MVC ExampleVIEW CONTROLLER MODEL getBalance() Transfer() Withdraw() ATM Account DB Deposit() ATM Network
  30. 30.  THAT’S ALL FOR TODAY GOOD DAY

×