1. Trang chủ
  2. » Công Nghệ Thông Tin

Introduction to Java EE (J2EE) pdf

45 599 0
Tài liệu đã được kiểm tra trùng lặp

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Tiêu đề Introduction to Java EE (J2EE)
Trường học Unknown University
Chuyên ngành Information Technology
Thể loại Lecture Notes
Định dạng
Số trang 45
Dung lượng 1,22 MB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

Lecture Objectives Understanding the value propositions of J2EE  Getting a big picture of J2EE architecture and platform  Getting high-level exposure of APIs and Technologies that con

Trang 1

Introduction to Java EE

(J2EE)

Trang 2

Lecture Objectives

 Understanding the value propositions of J2EE

 Getting a big picture of J2EE architecture and

platform

 Getting high-level exposure of APIs and

Technologies that constitute J2EE

 You don't have to understand all the details

 Understanding why J2EE can be used for as a

platform for development and deployment of web

services

Trang 3

J2SE ™ J2EE ™ JMS Servlet JSP Connector XML

Data Binding XSLT

Products

App Servers Web Servers Components Databases Object to DB tools

Legacy Systems

Databases

TP Monitors EIS Systems

Enterprise Computing

Trang 4

What Is the J2EE?

 Open and standard based platform for

 developing, deploying and managing

 n-tier, Web-enabled, server-centric, and component-based enterprise applications

Trang 5

The Java™ Platform

High-End Server

Java Technology Enabled Desktop Workgroup Server Java Technology

Enabled Devices

Trang 6

The Java TM Platform

Optional Packages

Personal Basis Profile Personal Profile

Foundation Profile MIDP Java 2 Platform Micro Edition

(J2ME TM )

Trang 7

Open and Standard Solution

 Use "component and container" model in which

container provides system services in a well-defined and as industry standard

 J2EE is that standard that also provides portability of code because it is based on Java technology and

standard-based Java programming APIs

Trang 8

Platform Value to Developers

Can use any J2EE implementation for development

Vast amount of J2EE community resources

 Many J2EE related books, articles, tutorials, quality code you can use, best practice guidelines, design patterns etc.

Trang 9

Platform Value to Vendors

 Vendors work together on specifications and then compete in implementations

 In the areas of Scalability, Performance, Reliability,

Availability, Management and development tools, and so on

 Freedom to innovate while maintaining the

portability of applications

Do not have create/maintain their own

proprietary APIs

Trang 10

Platform Value to Business Customers

 Best of breed of applications and platforms

 Large developer pool

Trang 11

J2EE APIs & Technologies

Trang 12

J2EE 1.4 APIs and Technologies

Trang 14

Servlet &

JSP (JavaServer

Pages)

Trang 15

What is a Servlet?

 Java™ objects which extend the functionality of a HTTP server

 Dynamic contents generation

 Better alternative to CGI, NSAPI, ISAPI, etc

 Efficient

 Platform and server independent

 Session management

 Java-based

Trang 16

What is JSP Technology?

 Enables separation of business logic from

presentation

 Presentation is in the form of HTML or XML/XSLT

 Business logic is implemented as Java Beans or

custom tags

 Better maintainability, reusability

 Extensible via custom tags

 Builds on Servlet technology

Trang 17

EJB (Enterprise Java

Beans)

Trang 18

What is EJB Technology?

 A server-side component technology

 Easy development and deployment of Java

technology-based application that are:

 Transactional, distributed, multi-tier, portable, scalable,

secure, …

Trang 19

Why EJB Technology?

● Leverages the benefits of component-model on the server side

● Separates business logic from system code

− Container provides system services

● Provides framework for portable components

− Over different J2EE-compliant servers

− Over different operational environments

● Enables deployment-time configuration

− Deployment descriptor

Trang 20

EJB Architecture

Trang 21

Enterprise JavaBeans

Enterprise JavaBeans

Entity Bean Message-Driven Bean

Synchronous communication Asynchronous communication

Stateless Stateful

Bean managed Persistence (BMP)

Container managed Persistence (CMP)

Session Bean

Trang 22

JMS (Java Message

Service)

Trang 23

Java Message Service (JMS)

 Messaging systems (MOM) provide

 De-coupled communication

 Asynchronous communication

 Plays a role of centralized post office

 Benefits of Messaging systems

 Flexible, Reliable, Scalable communication systems

 Point-to-Point, Publish and Subscribe

 JMS defines standard Java APIs to messaging

systems

Trang 24

Connector

Architecture

Trang 25

Connector Architecture

 Defines standard API for integrating J2EE

technology with EIS systems

 CICS, SAP, PeopleSoft, etc.

 Before Connector architecture, each App server has

to provide an proprietary adaptor for each EIS

system

 m (# of App servers) x n (# of EIS's) Adaptors

 With Connector architecture, same adaptor works with all J2EE compliant containers

 1 (common to all App servers) x n (# of EIS's) Adaptors

Trang 26

m x n Problem Before Connector

Architecture

App Server1

App

App Server3

App Server2

SAP

EIS3

EIS 2

Trang 27

JAAS (Part of J2SE 1.4)

(Java Authentication &

Authorization Service)

Trang 29

JAAS Pluggable Authentication

Trang 30

Other J2EE APIs &

Technologies

Trang 31

JNDI

 Java Naming and Directory Interface

 Utilized by J2EE applications to locate resources

and objects in portable fashion

 Applications use symbolic names to find object references

to resources via JNDI

 The symbolic names and object references have to be

configured by system administrator when the application is deployed.

Trang 32

 Provides standard Java programming API to

relational database

 Uses SQL

 Vendors provide JDBC compliant driver which

can be invoked via standard Java programming API

Trang 33

 Management protocol specifications ensure a

uniform view by SNMP and WBEM management

stations

 Leverages JMX

Trang 34

J2EE Deployment (JSR-88) - J2EE 1.4

Standard Deployment API (Universal Remote)

IDEs

Vendor Deploy

Tools

Trang 35

the J2EE 1.4 platform

A single technology for the J2EE platform

JMX

Trang 36

J2EE is an End-to-End

Architecture

Trang 37

N-tier J2EE Architecture

Trang 38

J2EE Component &

Container

Architecture

Trang 39

Web Container EJB Container

RMI

J2SE

J2EE Containers & Components

Trang 41

Containers & Components

 Containers do their work invisibly

– No complicated APIs

– They control by interposition

 Containers implement J2EE

– Look the same to components

– Vendors making the containers have great freedom to

innovate

Trang 42

J2EE Application

Anatomies

Trang 43

DB & EIS Resources

Trang 44

J2EE Application Anatomies

– HTML client, JSP/Servlets, EJB, JDBC/Connector

– HTML client, JSP/Servlets, JDBC

– EJB standalone applications, EJB, JDBC/Connector

– J2EE platform to J2EE platform through the

Trang 45

Which One to Use?

− Requirements of applications

− Availability of EJB tier

− Availability of developer resource

Ngày đăng: 31/03/2014, 20:20

TỪ KHÓA LIÊN QUAN