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 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
8. ∗ 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
13. 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
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
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 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