+ All Categories
Home > Software > Java EE Introduction

Java EE Introduction

Date post: 15-Apr-2017
Category:
Upload: ejlp12
View: 893 times
Download: 1 times
Share this document with a friend
22
Java EE Introduction [email protected] om
Transcript
Page 1: Java EE Introduction

Java EE Introduction [email protected]

m

Page 2: Java EE Introduction

Keywords

Java

JVM

ArrayList

JRE

JDK

J2SEPOJO

Bytecode

JAR

Main class

Manifest.MF

.class

Javadoc

Object.class

debugger

UML

Object language

Reflectionheap

GC

Page 3: Java EE Introduction

Keywords

JavaEEJSF

@EJBJMS

JPAValidation

CriteriaBuilder

JPQL NativeQueryRenderer

@MessageDrivenBean

@PersistenceContext

@Inject

@SessionScope

@ManagedBean

@NotNull

Transaction

@TransactionAttributecomponent

@Converter

@ValidatorEntityManager

@Resource

@Stateless

container

JCP JSR

Page 4: Java EE Introduction

Java Coffee A technology invented by Sun Microsystem now an Oracle product. A programming language « Write once, run everywhere ».

JVM – Java Virtual Machine. It abstracts your OS and executes the Java byte code.

Java

Page 5: Java EE Introduction

JRE – Java Runtime Environment . Set of tools aims to execute a Java program The virtual machine The byte code interpreter and converter into native code The standard Java API

JDK – Java Standard Development Kit. It’s your toolbox. It allows to write Java source code and compiles it into byte code. Javac, the java compiler which converts source code (.java) into byte code

(.class) Jar, the java archiver. It archives a set of class files into a jar file Javadoc, the documentation generator (abuse it!) Jdb, the java debugger A JRE

Java

Page 6: Java EE Introduction

Java 2 SE Java SE Java Standard Edition. Contains the basics API. It’s desktop

computer oriented. A set of basics API

Example: Collections, Date, Math, etc Major release versions of Java:

JDK 1.0 (January 21, 1996) JDK 1.1 (February 19, 1997) J2SE 1.2 (December 8, 1998) J2SE 1.3 (May 8, 2000) J2SE 1.4 (February 6, 2002) J2SE 5.0 (September 30, 2004) Java SE 6 (December 11, 2006) Java SE 7 (July 28, 2011) Java SE 8 (March 18, 2014)

Java SE

Page 7: Java EE Introduction

Java SE

Page 8: Java EE Introduction

Specifications of standard API Defined by the Java Community Process (JCP)

Java Specification Requests (JSRs): proposed and final specifications Different implementation of same API

Example: JPA is implemented by Eclipselink, OpenJPA, Hibernate Certifications Architecture pattern

Large scale Multi-tiers (Presentation Logic, Business Logic, Persistence) Scalable Reliable Secure

J2EE = an extension of Java SE to facilitate the development of enterprise applications ?

Java EE

Page 9: Java EE Introduction

Version History Java EE 8 (expected mid 2017)

Java EE

Page 10: Java EE Introduction

Java EE 6 (JSR 316)

Page 11: Java EE Introduction

Java EE 7 (JSR 342)

Page 12: Java EE Introduction

Java EE 6

EJB Lite in Web Profile

Page 13: Java EE Introduction

Java EE architecture

Client

Database

EJB Container

Web Container

Application Client

Web Browser

Enterprise Bean

Servlet JSP Page

Java EE Server

Enterprise Bean

Enterprise Bean

JSP PageServlet

• Presentation Tier• Business Logic Tier• Data (EIS) Tier

Page 14: Java EE Introduction

Java EE servers ‘’Java EE is a set of specifications implemented by different containers. Containers

are Java EE runtime environment that provides certain services to the component they host… ’’

Antonio Goncalves, Beginning Java EE 6 Platform with GlassFish 3

J2EE server = Web container + J2EE implementation

Page 15: Java EE Introduction
Page 16: Java EE Introduction

Java EE 6 APIs

Page 17: Java EE Introduction

Java EE 7 APIs

Page 18: Java EE Introduction

J2EE APIs – The big picture

Page 20: Java EE Introduction

Web Technology

Admin Template

Page 21: Java EE Introduction

jar – EJB Module war – web module

normally contain several Servlets, JavaServer Pages and other Web resources e.g. HTML files, graphics files, audio files and movies

jar – Application Client rar – Resource Adapter

Module

Java EE Packaging

Configuratoin in xml file is optional since Java EE 6

Page 22: Java EE Introduction

J2EE extends J2SE J2EE is multi-tiers/layered J2EE is a set of specifications, not a set of

implementations J2EE server = container + J2EE implementations A J2EE server host J2EE applications

To sum up


Recommended