<Insert Picture Here>Whats Cool in Java EE 6 ?Arun Gupta, Java EE & GlassFish Guyblogs.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’sproducts remains at the sole discretion of Oracle.
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
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 ServerJava 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
GlassFish Server DistributionsDistribution License Features • Java EE 6 compatibilityGlassFish Server Open CDDL & • Web Profile supportSource Edition 3.1 GPLv2 • In-memory replication / clusteringWeb Profile • Centralized Administration • Java EE 6 compatibilityGlassFish Open Source CDDL & • Full Java EE distributionEdition 3.1 GPLv2 • In-memory replication / clustering • Centralized Administration • AddsOracle GlassFish Server 3.1 Commercial • Oracle GlassFish Server ControlWeb Profile • Patches, support, knowledge base • AddsOracle GlassFish Server 3.1 Commercial • Oracle GlassFish Server Control • Patches, support, knowledge base
Compatible Java EE 5 Implhttp://java.sun.com/javaee/overview/compatibility-javaee5.jsp
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
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 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, millisecondssimple and annotation driven, and kilobyte deployment single-classloader WARs, next level of industry standard http://blogs.sun.com/arungupta/tags/community+feedback
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
The Age of Frameworks is OverFrameworks like Spring are really just a bridgebetween the mistakes of the J2EE past and thesuccess of the Java EE 6 future. Frameworks are out,and extensions to the Java EE 6 platform are in. Now isthe time to start looking past Spring, and lookingforward 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 its Spring whos 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.
Whats 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!