1. <Insert Picture Here>
What's Cool in Java EE 6 ?
Arun Gupta, Java EE & GlassFish Guy
blogs.sun.com/arungupta, @arungupta
2. Arun Gupta
Java EE & GlassFish Guy
• GlassFish
• Server-side technology enthusiast
• Engineering, Standards, ...
• Running, Blogging, 2 boys
• “The best way to find yourself is to
lose in the service of others" - Gandhi
Santa Clara, CA
3. The following/preceding is intended to outline our
general product direction. It is intended for
information purposes only, and may not be
incorporated into any contract. It is not a
commitment to deliver any material, code, or
functionality, and should not be relied upon in
making purchasing decisions.
The development, release, and timing of any
features or functionality described for Oracle’s
products remains at the sole discretion of Oracle.
4. Java EE 6 Themes
•
Web Profile •
Embrace open
•
Pruning Flexible source frameworks
& Extensible •
Enables Drag &
Drop framework
Lightweight installation
Java EE 6
Developer
Productivity
•
More annotations
•
POJO development
•
Less XML configuration
6. Java EE 6 Web Profile 1.0
• Fully functional mid-sized profile
• Actively discussed in the Java EE 6 Expert Group and outside
• Technologies
• Servlets 3.0, JSP 2.2, EL 2.2, Debugging Support for Other
Languages 1.0, JSTL 1.2, JSF 2.0, Common Annotations 1.1,
EJB 3.1 Lite, JTA 1.1, JPA 2.0, Bean Validation 1.0, Managed
Beans 1.0, Interceptors 1.1, Context & Dependency Injection 1.0,
Dependency Injection for Java 1.0
7.
8. Oracle GlassFish Server
Java EE 6 Themes Oracle GlassFish Server
Flexibility Flexible
Extensibility Extensible
Productivity Productive
First to
support
…Ë… Java EE 6 !
Modularity / OSGi
Manageability, Clustering
GlassFish Server Control
Enhancing the value of Java EE 6
Support & Patches
9. GlassFish Server Distributions
Distribution License Features
• Java EE 6 compatibility
GlassFish Server Open CDDL & • Web Profile support
Source Edition 3.1 GPLv2 • In-memory replication / clustering
Web Profile
• Centralized Administration
• Java EE 6 compatibility
GlassFish Open Source CDDL & • Full Java EE distribution
Edition 3.1 GPLv2 • In-memory replication / clustering
• Centralized Administration
• Adds
Oracle GlassFish Server 3.1 Commercial • Oracle GlassFish Server Control
Web Profile • Patches, support, knowledge
base
• Adds
Oracle GlassFish Server 3.1 Commercial • Oracle GlassFish Server Control
• Patches, support, knowledge
base
10. Compatible Java EE 5 Impl
http://java.sun.com/javaee/overview/compatibility-javaee5.jsp
15. Sample POJO/JPA/REST Based Application
Java Classes* Lines of Code* Lines of XML*
25 50 80
% %
Le Le %
ss ss Le
th th ss
an an Ja
Ja Ja va
va va EE
EE EE 5
5 5
16. 9 Reasons why Java EE 6 will save $$
• Prototyping (multiple IDEs)
• Development (~30MB, incremental deployment, ...)
• Production (Variety, Start small/then scale)
• Support (Pick the best one)
• Training (“Only” Java EE 6 APIs)
• Portability (Backwards compatibility)
• Adoption (Growing)
• Freedom of choice (Multiple vendors)
• Plan B (Similar component models)
http://www.adam-bien.com/roller/abien/entry/8_reasons_why_java_ee
17. From real Java EE 6 users ...
Developers can concentrate Jigsaw puzzle,
on business logic, Java EE 6 Modular, standard,
is providing a standard for less xml, easy, easy,
the infrastructure. have I said easy?
Standards compliance, vendor
Higher integrated specs,
independence, milliseconds
simple and annotation driven,
and kilobyte deployment
single-classloader WARs,
next level of industry
standard
http://blogs.sun.com/arungupta/tags/community+feedback
18. Avoid “framework explosion”
In selecting an application server our main goal
was to avoid the framework explosion that
happens when you use a "custom" Enterprise
stack like Tomcat + Spring + Hibernate +
Myfaces +... Java EE 6 had 80% of what we
needed out of the box: strong persistence
support ( JPA ), inversion of control ( CDI ), and
a lightweight component model ( EJB 3.1 )
http://blogs.sun.com/stories/entry/egesa_engineering_avoids_framework_explosion
19. The Age of Frameworks is Over
Frameworks like Spring are really just a bridge
between the mistakes of the J2EE past and the
success of the Java EE 6 future. Frameworks are out,
and extensions to the Java EE 6 platform are in. Now is
the time to start looking past Spring, and looking
forward to Seam and Weld and CDI technologies.
Java EE has far surpassed Spring, which always felt
as a patched together thing instead of a coherent
whole. Spring seems to be resting too much on their
laurels, and keep thinking they invented DI and
therefor will be the leading platform forever. Now it's
Spring who's limping behind.
http://www.theserverside.com/news/thread.tss?thread_id=61023
20. Misc quotes/points ...
• Rod Johnson - taken a look at GlassFish and given it
the thumbs up
• Jurgen Holler - A Java EE 6 server like GlassFish 3 is
a fine runtime environment for Spring 3
• Adam Bien - With Spring, you need support from two
companies
• WAR = 90% framework + 10% app ?
• Spring becoming a technical debt ?
21. First they ignore you,
Then they laugh at you,
Then they fight you,
Then you win.
22. What's cool about Java EE 6 ?
• Java EE: Cooperate on standards, compete on
implementations
• Java EE 6 = Simplicity + Flexibility + Extensibility
• Growth of Adoption (70% using EE 5/6)
• No vendor lock-in
• YOU help us define it!