3
Most read
8
Most read
9
Most read
Java EE Introduction
ejlp12@gmail.com
Keywords
Java
JVM
ArrayList
JRE
JDK
J2SE
POJO
Bytecode
JAR
Main class
Manifest.MF
.class
Javadoc
Object.class
debugger
UML
Object language
Reflection
heap
GC
Keywords
JavaEE
JSF
@EJB
JMS
JPA
Validation
CriteriaBuilder
JPQL NativeQuery
Renderer
@MessageDrivenBean
@PersistenceContext
@Inject
@SessionScope
@ManagedBean
@NotNull
Transaction
@TransactionAttribute
component
@Converter
@Validator
EntityManager
@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 ContainerEJB Container
Web ContainerWeb Container
Application
Client
Application
Client
Web BrowserWeb Browser
Enterprise
Bean
Enterprise
Bean
ServletServlet JSP PageJSP Page
Java EE Server
Enterprise
Bean
Enterprise
Bean
Enterprise
Bean
Enterprise
Bean
JSP PageJSP PageServletServlet
‱ 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
Java EE Ecosystem - Frameworks
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

Java EE Introduction

  • 1.
  • 2.
  • 3.
  • 4.
    ∗ 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
  • 5.
    ∗ 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
  • 6.
    ∗ Java 2SE  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
  • 7.
  • 8.
    ∗ Specifications ofstandard 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
  • 9.
    ∗ Version History ∗Java EE 8 (expected mid 2017) Java EE
  • 10.
    Java EE 6(JSR 316)
  • 11.
    Java EE 7(JSR 342)
  • 12.
    Java EE 6 EJBLite in Web Profile
  • 13.
    Java EE architecture Client Database EJBContainerEJB Container Web ContainerWeb Container Application Client Application Client Web BrowserWeb Browser Enterprise Bean Enterprise Bean ServletServlet JSP PageJSP Page Java EE Server Enterprise Bean Enterprise Bean Enterprise Bean Enterprise Bean JSP PageJSP PageServletServlet ‱ Presentation Tier ‱ Business Logic Tier ‱ Data (EIS) Tier
  • 14.
    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
  • 16.
  • 17.
  • 18.
    J2EE APIs –The big picture
  • 19.
    Java EE Ecosystem- Frameworks
  • 20.
  • 21.
    ∗ 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
  • 22.
    ∗ J2EE extendsJ2SE ∗ 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

Editor's Notes