whats cool in java e 6
DESCRIPTION
"Whats Cool in Java E 6" at Oracle User Group Leaders Summit 2011TRANSCRIPT
<Insert Picture Here>
What's Cool in Java EE 6 ?
Arun Gupta, Java EE & GlassFish Guy
blogs.sun.com/arungupta, @arungupta
Arun GuptaJava 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
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.
Java EE 6 Themes
DeveloperProductivity
Flexible&
Lightweight
Extensible
• Web Profile• Pruning
• Embrace open source frameworks
• Enables Drag & Drop framework installation
• More annotations• POJO development• Less XML configuration
Java EE 6
http://blog.eisele.net/2010/12/who-is-afraid-of-java-ee-6-get-rid-of.html
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
Oracle GlassFish Server
Java EE 6 Themes
Flexibility
Extensibility
Productivity
Oracle GlassFish Server
Flexible
Extensible
Productive
… Ë …
Modularity / OSGi
Manageability, Clustering
GlassFish Server Control
Support & PatchesEnhancing the value of Java EE 6
First tosupport
Java EE 6 !
Distribution License Features
GlassFish Server Open Source Edition 3.1Web Profile
CDDL & GPLv2
• Java EE 6 compatibility• Web Profile support• In-memory replication / clustering• Centralized Administration
GlassFish Open Source Edition 3.1
CDDL & GPLv2
• Java EE 6 compatibility• Full Java EE distribution• In-memory replication / clustering• Centralized Administration
Oracle GlassFish Server 3.1Web Profile Commercial
• Adds• Oracle GlassFish Server Control• Patches, support, knowledge base
Oracle GlassFish Server 3.1 Commercial
• Adds• Oracle GlassFish Server Control• Patches, support, knowledge base
GlassFish Server Distributions
Compatible Java EE 5 Impl
http://java.sun.com/javaee/overview/compatibility-javaee5.jsp
Compatible Java EE 6 Impls
Today:
Announced:
IDE Support for Java EE 6
http://blogs.sun.com/arungupta/entry/java_ee_6_twitter_demo
50% Less than Java EE 5
50% Less than Java EE 5
Lines of Code*
80% Less Java EE 5
80% Less Java EE 5
Lines of XML*Java Classes*
25% Less than Java EE 5
25% Less than Java EE 5
Sample POJO/JPA/REST Based Application
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
From real Java EE 6 users ...
Developers can concentrateon business logic, Java EE 6 is providing a standard for
the infrastructure.
Jigsaw puzzle, Modular, standard,
less xml, easy, easy, have I said easy?
Higher integrated specs,simple and annotation driven,
single-classloader WARs,next level of industry
standard
Standards compliance, vendor independence, milliseconds
and kilobyte deployment
http://blogs.sun.com/arungupta/tags/community+feedback
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 )
Avoid “framework explosion”
http://blogs.sun.com/stories/entry/egesa_engineering_avoids_framework_explosion
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
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 ?
First they ignore you, Then they laugh at you, Then they fight you, Then you win.
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!
References
• glassfish.org• oracle.com/goto/glassfish• blogs.sun.com/theaquarium• youtube.com/user/GlassFishVideos• Follow @glassfish
<Insert Picture Here>
What's Cool in Java EE 6 ?
Arun Gupta, Java EE & GlassFish Guy
blogs.sun.com/arungupta, @arungupta