Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 27

JEE Framework

Java 2 Enterprise Edition


Building Software for enterprises

Document Version: 1.00


Enterprise Application

 Enterprises are very big organization whose activities are spread


across the globe .
 S/W Application for enterprises are Distributed.
 Different parts of an enterprise application runs on different
computer and they are geographically apart.
 One enterprise may have several business partner
 Each partner has there own IT framework

Document Version: 1.00


Non Distributed Application

Invoice Accounts
Module

Inventory
CRM

COMPUTER – COMP1
3

Document Version: 1.00


Distributed Application

Invoice Accounts

COMP1 COMP2

Inventory CRM

COMP4
COMP3
4

Document Version: 1.00


Distributed Application

Invoice Accounts

windows OS 390

COMP1 COMP2

Inventory CRM

COMP3 COMP4
5

Document Version: 1.00


Kingfisher

Lufthansa British
Airways

TravelGuru BANK

Le meridian Taj
Insurance
Cos

Document Version: 1.00


Challenges

 Heterogeneous
 No guarantee that all parts of enterprise application will be on
same platform.
 Security
 As enterprise application are geographically spread , data flows
across the public network– they are not trusted.
 Availability
 If one part of the enterprise application is down , that should not
affect entire application.

Document Version: 1.00


Challenges

 Scalability
 Enterprise always grows or evolves , enterprise application
should be very smart to adopt that growth.
 Maintainability
 Should not take longer time to upgrade .
 Need to upgrade without shutting down entire system.
 Performance
 Distributed Transaction

Document Version: 1.00


Framework

 As we see , while developing an Enterprise S/W , we need to take


care about several challenges.
 That makes an enterprise application very complicated
 Long time required
 Chance of having error(bug) is high
 We need to work on the top of a framework
 What is a framework?

Document Version: 1.00


Framework

 Running services
 Example – OS provides framework
• Memory management service
• File management service
• Security service
• Lot more…..
 API(Application Programming Interface)
 Accessing runtime services

10

Document Version: 1.00


Framework

 2 frameworks are available


 Microsoft
 .Net
 Sun
 Java2 Enterprise Edition (J2EE)
• This is a specification.
• This specification is meant to be implemented.
• Implemented by several Vendor
– IBM
» WebSpehere
– Bea
» WebLogic
– Jakarta Open Source– Geronimo
• This implementation known as J2EE platform.
• This implementation also known as Application Server.
11

Document Version: 1.00


Till now…

 We have learnt
 Enterprise Applications are complex to build
 Ent Apps are distributed
 We build ent app on the top of a framework
 Framework provides runtime services
 We access runtime services through API
 2 Frameworks are available
• .Net
• J2EE==Specification

12

Document Version: 1.00


J2EE Specification

 Has 2 parts/section
 One part is for the implementors like IBM,BEA….
 Describes how to build runtime services like transaction
handling,security etc
 Another for developers
 How to write business logic
 J2EE spec is based on 3 tier architecture

13

Document Version: 1.00


Enterprise App Development in J2EE

 Every enterprise has several business processes .


 Algorithm for each business process (application logic) is developed
as component .
 In J2EE terminology , they are known as business component.
 Components are assembled together to make an enterprise
application.

14

Document Version: 1.00


Single tier

User Interface/
Business logic

Data manipulation
logic

Computer
15

Document Version: 1.00


2 tier

Business Logic
User Interface/
Data manipulation
Business logic logic

Client Server

16

Document Version: 1.00


3 tier

User Interface Data manipulation


Business Logic logic

Client Middle tier EIS Server


computer

17

Document Version: 1.00


3 tier

Business comp

User Interface Data manipulation


logic
framework

Client Middle tier EIS Server


computer

18

Document Version: 1.00


J2EE tiers

 Client tier
 Middle tier
 Business Logic Tier
 EIS(Enterprise Information System) Tier
 Enterprise data management

19

Document Version: 1.00


J2EE tiers
 Client tiers
 This tier contains S/w , by which client accesses services
provided by enterprise application – User Interface.
 This can be standalone java client.
• Not flexible as the program must be installed/configured in
each client machine.
 Web Browser
• Very flexible as no installation of specific client s/w is
required.
• Enterprises can reach maximum no of client, as internet is
cheap.

20

Document Version: 1.00


J2EE tier -Client
 Standalone Java Client
 User Interface is created by Java Swing.
 Installed/Configured in client computer.
 Web based client
 User Interface is displayed by browser.
 User Interface is created by HTML.
 HTML pages are generated dynamically by some program, that runs on
middle tier.
 These programs are known as presentation logic
 Presentation logics are generated as components.
 In J2EE , they are known as presentation component.

21

Document Version: 1.00


Programs to
browser
Generate html

Business logic

Standalone
client

22

Document Version: 1.00


J2EE tier- Middle tier

 Known as Business Logic Tier.


 In simple configuration , Middle tier is hosted on a server
computer .
 This server has J2EE implementation s/w (Application
Server) installed.
 WebSphere , WebLogic,Geronimo,Jboss etc
 Houses 2 types of components
 Presentation components
• They are developed using JSP , Servlet
 Business Component
• They are developed as EJB.
 Provides framework services to components
23

Document Version: 1.00


J2EE –Middle tier

 J2EE provides framework services to components developed.


 It provides framework services through Container.
 Separate container for each type.
 Web Container for presentation comp.
 EJB Container for Business Comp.

24

Document Version: 1.00


Presentation comp

Business comp

services

Web Container

services

EJB Container

Application Server 25

Document Version: 1.00


J2EE tier—EIS tier

 This tier is data tier.


 Enterprise may have many form to keep data.
 Using RDBMS.

26

Document Version: 1.00


Client tier Middle tier EIS tier

browser

RDBMS

browser
Mail server

Web cont EJB Cont


Standalone client
MQ
Application server

Standalone client
CORBA
J2EE 3 tire Architecture
27

Document Version: 1.00

You might also like