Java EE Introduction

Post on 15-Apr-2017

893 views 1 download

transcript

Java EE Introduction ejlp12@gmail.co

m

Keywords

Java

JVM

ArrayList

JRE

JDK

J2SEPOJO

Bytecode

JAR

Main class

Manifest.MF

.class

Javadoc

Object.class

debugger

UML

Object language

Reflectionheap

GC

Keywords

JavaEEJSF

@EJBJMS

JPAValidation

CriteriaBuilder

JPQL NativeQueryRenderer

@MessageDrivenBean

@PersistenceContext

@Inject

@SessionScope

@ManagedBean

@NotNull

Transaction

@TransactionAttributecomponent

@Converter

@ValidatorEntityManager

@Resource

@Stateless

container

JCP JSR

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

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

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

Java SE

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

Version History Java EE 8 (expected mid 2017)

Java EE

Java EE 6 (JSR 316)

Java EE 7 (JSR 342)

Java EE 6

EJB Lite in Web Profile

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

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

Java EE 6 APIs

Java EE 7 APIs

J2EE APIs – The big picture

Web Technology

Admin Template

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

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