whats cool in java e 6

24
<Insert Picture Here> What's Cool in Java EE 6 ? Arun Gupta, Java EE & GlassFish Guy blogs.sun.com/arungupta, @arungupta

Upload: arun-gupta

Post on 16-May-2015

2.510 views

Category:

Technology


0 download

DESCRIPTION

"Whats Cool in Java E 6" at Oracle User Group Leaders Summit 2011

TRANSCRIPT

Page 1: Whats Cool in Java E 6

<Insert Picture Here>

What's Cool in Java EE 6 ?

Arun Gupta, Java EE & GlassFish Guy

blogs.sun.com/arungupta, @arungupta

Page 2: Whats Cool in Java E 6

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

Page 3: Whats Cool in Java E 6

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.

Page 4: Whats Cool in Java E 6

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

Page 5: Whats Cool in Java E 6

http://blog.eisele.net/2010/12/who-is-afraid-of-java-ee-6-get-rid-of.html

Page 6: Whats Cool in Java E 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

Page 7: Whats Cool in Java E 6
Page 8: Whats Cool in Java E 6

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 !

Page 9: Whats Cool in Java E 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

Page 10: Whats Cool in Java E 6

Compatible Java EE 5 Impl

http://java.sun.com/javaee/overview/compatibility-javaee5.jsp

Page 11: Whats Cool in Java E 6

Compatible Java EE 6 Impls

Today:

Announced:

Page 12: Whats Cool in Java E 6

IDE Support for Java EE 6

Page 13: Whats Cool in Java E 6

http://blogs.sun.com/arungupta/entry/java_ee_6_twitter_demo

Page 14: Whats Cool in Java E 6
Page 15: Whats Cool in Java E 6

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

Page 16: Whats Cool in Java E 6

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

Page 17: Whats Cool in Java E 6

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

Page 18: Whats Cool in Java E 6

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

Page 19: Whats Cool in Java E 6

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

Page 20: Whats Cool in Java E 6

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 ?

Page 21: Whats Cool in Java E 6

First they ignore you, Then they laugh at you, Then they fight you, Then you win.

Page 22: Whats Cool in Java E 6

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!

Page 23: Whats Cool in Java E 6

References

• glassfish.org• oracle.com/goto/glassfish• blogs.sun.com/theaquarium• youtube.com/user/GlassFishVideos• Follow @glassfish

Page 24: Whats Cool in Java E 6

<Insert Picture Here>

What's Cool in Java EE 6 ?

Arun Gupta, Java EE & GlassFish Guy

blogs.sun.com/arungupta, @arungupta