Cours de Java EE
Introduction à java EE
Session Objectives
Name is Java Enterprise Edition, or Java
EE (previously J2EE)
Understanding the value proposition of JEE
Getting the big picture of JEE architecture and platform
Getting high-level understanding of
Technologies that constitute JEE
Have a basic know-how on JEE as a platform and for development
Keywords
JCP
@Stateless
JSR
@EJB
container
@SessionScope
@MessageDrivenBean
@Converter
JMS
@Resource
@TransactionAttribute
component
JSF
Renderer
JEE
Transaction
@ManagedBean
@Validator
EntityManager
Validation
@Inject
JPQL
@NotNull
JPA
CriteriaBuilder
NativeQuery
@PersistenceContext
What is Java?
An object-oriented programming language
A Virtual Machine architecture
A rich set of libraries
A set of tools
Particularly those in the Software Development Kit (JDK)
Note: API (= library functions) are equivalent to C/C++ standard libraries, but far richer: library for graphical interfaces, sound, multithreading, network programming, ...
4
Java : Le JDK
JDK = Java Development Kit
On dit aussi Java SDK (Software Dev. Kit)
JDK = L'environnement minimal pour écrire des programmes Java
le JDK est gratuit et disponible en ligne sur le site de
SUN ( http://java.sun.com ou sur le site Oracle)
Il existe une version du JDK pour chaque plateforme :
Solaris, Windows, Linux, Mac OS,IBM AIX, HP-UX...)
donc télécharger la bonne version sur le site de SUN
Le JDK contient principalement:
un compilateur de sources java : javac
un interpréteur de byte code : java (la JVM)
des API pour gérer le son, interfaces graphiques, le multithreading, le réseau, … : Les API Java core
5
Java: the different flavours
JDK or JRE?
JDK = Java Development Kit
J2EE
J2SE
JRE = Java Runtime Environment
JDK = JRE + compilateur
JRE = JVM + API Java Core