SlideShare a Scribd company logo
Tools Coverage for the Java EE Platform @ Silicon Valley Code Camp 2010
<Insert Picture Here>




Tools Coverage for the Java EE 6 Platform
Ludovic Champenois
GlassFish
AGENDA



• Java EE 6: Overview And Status
• Tools Support and Demos
  – In NetBeans, Eclipse, IntelliJ
     • Demo 1: Server runtime
     • Demo 2: JPA
     • Demo 3: JSF2.0
     • Demo 4: CDI
     • Demo 5: RestFul Services Jax-RS
• Q&A




                                         3
Java EE 6



• What's New?
  –   Lots of improvements to existing EE 5 APIs
  –   Several New APIs
  –   Web Profile
  –   Pluggability/Extensibility
  –   Dependency Injection
• A Major new release for Java Enterprise Applications
  – Easier, Smaller, Extensible
  – GlassFish 3 is the Reference Implementation (and a quality
    product...)
  – GlassFish 3.1 is adding Clustering support



                                                                 4
Java EE 6: Fast Uptake within Open
 Source and Commercial Community

Available



Announced




                                      5
Java EE 6: New and Updated components



Updated Components          New Components          Tools Support?

• EJB 3.1                   ●
                              JAX-RS 1.1            • Netbeans
• JPA 2.0
                            ●
                              CDI 1.0               • Eclipse
                            ●
                              Bean Validation 1.0
• Servlet 3.0               ●
                              DI 1.0                • IntelliJ
• JSF 2.0                   ●
                              Managed Beans 1.0     • Complete Support
                            ●
                              JASPIC 1.1
• Interceptors 1.1          ●
                                                    • Partial Support...
• JAX-WS 2.2
• JSR-109 1.3

• JSP 2.2
• EL 2.2 JSR-250 1.1
• JACC 1.5 Connectors 1.6




                                                                           6
Java EE 6: Impact on Tools

• New APIs are easy to expose:
  – Libraries in project path. More and more on Maven (EE 6 APIs in
    Maven)
  – Automatic Code completion
  – JavaDoc: Some IDEs...
• New Concepts:
  – JSF 2.0: face-config obsolete, ManagedBeans obsolete (->CDI)
  – JAX-RS
  – No Web.xml, more annotations
• New Packaging:
  – EBJ Inside Web Application Projects!
  – Web Profile versus Full Profile



                                                                 7
Java EE 6 : Impact on Tools



• Alignment of Platform changes and the IDEs
  – Emacs (James Gosling 81), vi (Bill Joy 76): First IDES choice
     • Java EE 6 compliant
  – NetBeans 6.8: same day as Java EE 6 GlassFish (Dec 2009)
     • Almost everything but CDI and advanced JF 2.0 (fixed in 6.9)
  – IntelliJ: Same week as Java EE 6
     • GlassFish Runtime target Supported in Dec 2009
• Eclipse:
  – ava EE 6 support June 2010
  – But GlassFish Plugin with EE 6 support before...
  – Oracle Enterprise Pack for Eclipse



                                                                  8
Oracle Involvement In Java EE 6 And Tools



• Oracle is the main driver of the GlassFish Community
  – The Java EE 6 Reference Implementation
  – Production Ready (Clustering, HA,...)
• Oracle is the main driver of the NetBeans Community
  – Tight coupling with Java SE and EE changes.
• Oracle has many Eclipse Committers
  – In JPA: EclipseLink Runtime and Dali Tooling
  – In Core Java EE tooling
  – In JSF: Most JSF WTP Eclipse tooling done by Oracle folks
     • Jboss Tools has their own JSF tooling
  – GlassFish and Weblogic support via OEPE


                                                                9
Java EE 6: Oracle Gives Developer Choices




Oracle Enterprise Pack for Eclipse      NetBeans 6.9.1 and Coming 6.10
Target WebLogic and GlassFish 3         Bundled with GlassFish 3




                   IntelliJ IDEA has great Java EE 6 Support



                                                                         10
Java EE 6 Runtime in Tools:



NetBeans                     Eclipse                              IntelliJ

• NetBeans 6.8: same day • Eclipse 3.5 WTP GlassFish Plugin       • IntelliJ 9.0 same week as Java EE
  as Java EE 6 GlassFish       for Java EE 6                        6
• NetBeans 6.9.1 and 7.0     • Eclipse 3.6 (June 2010): initial
  nightlies: complete EE 6     support for Java EE 6, far from
  support                      being Complete
                             • GlassFish Plugin in OEPE and a
• GlassFish Plugin bundled                                        • GlassFish Support bundled
                               dev Update Center
• GlassFish Runtime          • No bundle at this time, can
  Bundled and                  download the runtime via the       • No Bundle, need separate dowload
  Preconfigured                plugin
• EveryThing works Out of                                         • Manual Configurations, a bit
                             • Some manual Configurations
  the Box                                                           difficult




                                                                                                   11
Java EE 6: Working with
a GlassFish Server in the
Tools.




                            12
Java EE 6 Working with Databases



• Via JPA 2.0
• Out of the Box, GlassFish 3 bundles JavaDB
    – Registered in NetBeans and Eclipse
•   All IDEs can register DB Resources and Introspect
•   All IDEs can Generate JPA From DB
•   All IDEs give decent Mapping Tooling
•   Can Start/Stop Dbs only in NetBeans!
•   NetBeans has extra Wizards to Generate CRUD JSF2
•   NetBeans has better Default in Persistence.xml
•   IntelliJ has some ER/UML view and JP/QL Support

                                                        13
Java EE 6 JPA Demo




                     14
JSF 2.0



• Faceletes is the foundation
  – XHTML and tags
  – Templating
     • ui:include, ui:composition, ui:define,...
  – Composite Components
     • Reusable
     • Turn page markup into a JSF UI component
• Managed Beans
  – Annotations (faces-config is optional)
  – JSF APIs or
  – CDI APIs (Preferred)
     • CDI support (@Named, @Inject, @SessionScoped,...)

                                                           15
JSF 2.0 Tooling




• NetBeans and IntelliJ are best
  – XHTML/Facelet Editor
     • Code Completion, Beans navigation
  – NetBeans 6.10 bundles Primefaces components
                              >


  – JPA to JSF 2.0 Wizards (only NetBeans)
  – Create Composite Components automatically
• Eclipse is really lacking the new features with CDI and
  annotations




                                                            16
Java EE 6 JSF 2.0 Demo




                         17
Java EE 6 CDI: Contexts and Dependency Injection


JSF/Facelets
  Servlets                      ●Dependency injection
                                  ● Builds on @Inject API

                                ●Context/scope management
JSF/Facelets
                                ●Works with multiple bean types

                Managed Bean    ●Includes ELResolver

   MDB                          ●Ejb Session and Singleton




Web Services   Managed Bean
                                ●   The CDI Container will
                                     ● Resolve dependencies
                CDI Container
                                     ● Offer the bean for

                                       Injection


                                                              18
Java EE 6 CDI Tooling



• Should be easy:
  – Enable CDI in a Module: Create an empty beans.xml file
  – Use @Inject, @Named, @SessionScoped, @ApplicationScoped
• Only Need EE 6 APIs in Path and Code Completion.
• JavaDoc a Goody
• But in EL (Facelets and JSP): Code Completion?
  – Not for Eclipse at this moment. Only in NetBeans and IntelliJ




                                                                    19
Java EE 6 CDI Demo




                     20
JAX-RS



• REST made easy
• Java Annotation Based Resource Creation
  –   Identity of Resources
  –   Self-Descriptive Resources
  –   Navigation between Resources
  –   Representation choices
• CRUD Operations: GET, DELETE, POST, PUT




                                            21
Java EE 6 Jax-RS and Web Services



• Simple REST Resources Creation
• Advanced Wizards Generating
  – Only in NetBeans
     • Resources from Database
     • Resources from Entity Classes
     • Resources from Patterns
• JAX-WS:
  – Service Creation
  – Testing Web Services: Advantage NetBeans
  – Eclipse is Axis based




                                               22
Java EE 6 REST Web
Services Demo




                     23
Java EE 6 In IDEs



• IntelliJ http://www.jetbrains.com/idea/
• Eclipse https://glassfishplugins.dev.java.net/
• NetBeans http://netbeans.org/




                                                   24
Tools Coverage for the Java EE Platform @ Silicon Valley Code Camp 2010

More Related Content

PDF
Java EE and Google App Engine
PDF
OSGi-enabled Java EE Applications using GlassFish at JCertif 2011
PDF
Running your Java EE applications in the Cloud
PDF
Overview of Java EE 6 by Roberto Chinnici at SFJUG
PDF
Java 7 workshop
PDF
Sun Java EE 6 Overview
PDF
Java EE6 CodeCamp16 oct 2010
PDF
Java EE 6 & GlassFish 3
Java EE and Google App Engine
OSGi-enabled Java EE Applications using GlassFish at JCertif 2011
Running your Java EE applications in the Cloud
Overview of Java EE 6 by Roberto Chinnici at SFJUG
Java 7 workshop
Sun Java EE 6 Overview
Java EE6 CodeCamp16 oct 2010
Java EE 6 & GlassFish 3

What's hot (20)

PDF
Java EE 6 Component Model Explained
PDF
The State of Java under Oracle at JCertif 2011
PDF
Java EE 6 workshop at Dallas Tech Fest 2011
PDF
Understanding
ODP
OTN Developer Days - Java EE 6
PDF
Glass Fishv3 March2010
PDF
JavaEE 6 tools coverage
PPTX
Getting Started with Java EE 7
PDF
WildFly AppServer - State of the Union
PDF
JBoss Application Server 7
PDF
Arun Gupta: London Java Community: Java EE 6 and GlassFish 3
PDF
Java EE 6, Eclipse @ EclipseCon
PDF
OSGi & Java EE in GlassFish @ Silicon Valley Code Camp 2010
PDF
Java EE 6 & GlassFish = Less Code + More Power at CEJUG
PDF
WildFly BOF and V9 update @ Devoxx 2014
PDF
Running your Java EE 6 applications in the Cloud @ Silicon Valley Code Camp 2010
PDF
GlassFish & Java EE Business Update @ CEJUG
PDF
WildFly v9 - State of the Union Session at Voxxed, Istanbul, May/9th 2015.
PDF
Deep Dive Hands-on in Java EE 6 - Oredev 2010
PDF
Java EE 6 & GlassFish v3 @ DevNexus
Java EE 6 Component Model Explained
The State of Java under Oracle at JCertif 2011
Java EE 6 workshop at Dallas Tech Fest 2011
Understanding
OTN Developer Days - Java EE 6
Glass Fishv3 March2010
JavaEE 6 tools coverage
Getting Started with Java EE 7
WildFly AppServer - State of the Union
JBoss Application Server 7
Arun Gupta: London Java Community: Java EE 6 and GlassFish 3
Java EE 6, Eclipse @ EclipseCon
OSGi & Java EE in GlassFish @ Silicon Valley Code Camp 2010
Java EE 6 & GlassFish = Less Code + More Power at CEJUG
WildFly BOF and V9 update @ Devoxx 2014
Running your Java EE 6 applications in the Cloud @ Silicon Valley Code Camp 2010
GlassFish & Java EE Business Update @ CEJUG
WildFly v9 - State of the Union Session at Voxxed, Istanbul, May/9th 2015.
Deep Dive Hands-on in Java EE 6 - Oredev 2010
Java EE 6 & GlassFish v3 @ DevNexus
Ad

Similar to Tools Coverage for the Java EE Platform @ Silicon Valley Code Camp 2010 (20)

PDF
Java EE 6, Eclipse, GlassFish @EclipseCon 2010
PDF
Andrei Niculae - JavaEE6 - 24mai2011
PDF
Java EE 6 & GlassFish v3: Paving the path for the future - Tech Days 2010 India
PDF
Java EE 6 : Paving The Path For The Future
PDF
Understanding the nuts & bolts of Java EE 6
PDF
JavaEE 6 and GlassFish v3 at SFJUG
PDF
Java EE 6 Hands-on Workshop at Dallas Tech Fest 2010
PDF
Java E
PDF
Java EE 6 & GlassFish v3: Paving the path for the future - Spark IT 2010
PDF
GlassFish v3 at JavaZone 09
PDF
Java EE 6 and GlassFish v3: Paving the path for future
PDF
Java EE 6 & GlassFish v3 at Vancouver JUG, Jan 26, 2010
PDF
Java EE 6 = Less Code + More Power
PDF
Java EE 6 & GlassFish = Less Code + More Power @ DevIgnition
PDF
2012 04-06-v2-tdp-1163-java e-evsspringshootout-final
PDF
The Java Ee 6 Platform Normandy Jug
PDF
Java EE 6 Aquarium Paris
PDF
Java EE6 Overview
PDF
Java EE 6 & GlassFish V3 - Alexis Moussine-Pouchkine - May 2010
ODP
GlassFish and JavaEE, Today and Future
Java EE 6, Eclipse, GlassFish @EclipseCon 2010
Andrei Niculae - JavaEE6 - 24mai2011
Java EE 6 & GlassFish v3: Paving the path for the future - Tech Days 2010 India
Java EE 6 : Paving The Path For The Future
Understanding the nuts & bolts of Java EE 6
JavaEE 6 and GlassFish v3 at SFJUG
Java EE 6 Hands-on Workshop at Dallas Tech Fest 2010
Java E
Java EE 6 & GlassFish v3: Paving the path for the future - Spark IT 2010
GlassFish v3 at JavaZone 09
Java EE 6 and GlassFish v3: Paving the path for future
Java EE 6 & GlassFish v3 at Vancouver JUG, Jan 26, 2010
Java EE 6 = Less Code + More Power
Java EE 6 & GlassFish = Less Code + More Power @ DevIgnition
2012 04-06-v2-tdp-1163-java e-evsspringshootout-final
The Java Ee 6 Platform Normandy Jug
Java EE 6 Aquarium Paris
Java EE6 Overview
Java EE 6 & GlassFish V3 - Alexis Moussine-Pouchkine - May 2010
GlassFish and JavaEE, Today and Future
Ad

More from Arun Gupta (20)

PDF
5 Skills To Force Multiply Technical Talents.pdf
PPTX
Machine Learning using Kubernetes - AI Conclave 2019
PDF
Machine Learning using Kubeflow and Kubernetes
PPTX
Secure and Fast microVM for Serverless Computing using Firecracker
PPTX
Building Java in the Open - j.Day at OSCON 2019
PPTX
Why Amazon Cares about Open Source
PDF
Machine learning using Kubernetes
PDF
Building Cloud Native Applications
PDF
Chaos Engineering with Kubernetes
PDF
How to be a mentor to bring more girls to STEAM
PDF
Java in a World of Containers - DockerCon 2018
PPTX
The Serverless Tidal Wave - SwampUP 2018 Keynote
PDF
Introduction to Amazon EKS - KubeCon 2018
PDF
Mastering Kubernetes on AWS - Tel Aviv Summit
PDF
Top 10 Technology Trends Changing Developer's Landscape
PDF
Container Landscape in 2017
PDF
Java EE and NoSQL using JBoss EAP 7 and OpenShift
PDF
Docker, Kubernetes, and Mesos recipes for Java developers
PDF
Thanks Managers!
PDF
Migrate your traditional VM-based Clusters to Containers
5 Skills To Force Multiply Technical Talents.pdf
Machine Learning using Kubernetes - AI Conclave 2019
Machine Learning using Kubeflow and Kubernetes
Secure and Fast microVM for Serverless Computing using Firecracker
Building Java in the Open - j.Day at OSCON 2019
Why Amazon Cares about Open Source
Machine learning using Kubernetes
Building Cloud Native Applications
Chaos Engineering with Kubernetes
How to be a mentor to bring more girls to STEAM
Java in a World of Containers - DockerCon 2018
The Serverless Tidal Wave - SwampUP 2018 Keynote
Introduction to Amazon EKS - KubeCon 2018
Mastering Kubernetes on AWS - Tel Aviv Summit
Top 10 Technology Trends Changing Developer's Landscape
Container Landscape in 2017
Java EE and NoSQL using JBoss EAP 7 and OpenShift
Docker, Kubernetes, and Mesos recipes for Java developers
Thanks Managers!
Migrate your traditional VM-based Clusters to Containers

Recently uploaded (20)

PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
A Presentation on Artificial Intelligence
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
MYSQL Presentation for SQL database connectivity
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Machine learning based COVID-19 study performance prediction
PPTX
Cloud computing and distributed systems.
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Empathic Computing: Creating Shared Understanding
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Programs and apps: productivity, graphics, security and other tools
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Chapter 3 Spatial Domain Image Processing.pdf
Spectral efficient network and resource selection model in 5G networks
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
20250228 LYD VKU AI Blended-Learning.pptx
Assigned Numbers - 2025 - Bluetooth® Document
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Network Security Unit 5.pdf for BCA BBA.
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Per capita expenditure prediction using model stacking based on satellite ima...
A Presentation on Artificial Intelligence
Mobile App Security Testing_ A Comprehensive Guide.pdf
MYSQL Presentation for SQL database connectivity
sap open course for s4hana steps from ECC to s4
Machine learning based COVID-19 study performance prediction
Cloud computing and distributed systems.
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Empathic Computing: Creating Shared Understanding
gpt5_lecture_notes_comprehensive_20250812015547.pdf

Tools Coverage for the Java EE Platform @ Silicon Valley Code Camp 2010

  • 2. <Insert Picture Here> Tools Coverage for the Java EE 6 Platform Ludovic Champenois GlassFish
  • 3. AGENDA • Java EE 6: Overview And Status • Tools Support and Demos – In NetBeans, Eclipse, IntelliJ • Demo 1: Server runtime • Demo 2: JPA • Demo 3: JSF2.0 • Demo 4: CDI • Demo 5: RestFul Services Jax-RS • Q&A 3
  • 4. Java EE 6 • What's New? – Lots of improvements to existing EE 5 APIs – Several New APIs – Web Profile – Pluggability/Extensibility – Dependency Injection • A Major new release for Java Enterprise Applications – Easier, Smaller, Extensible – GlassFish 3 is the Reference Implementation (and a quality product...) – GlassFish 3.1 is adding Clustering support 4
  • 5. Java EE 6: Fast Uptake within Open Source and Commercial Community Available Announced 5
  • 6. Java EE 6: New and Updated components Updated Components New Components Tools Support? • EJB 3.1 ● JAX-RS 1.1 • Netbeans • JPA 2.0 ● CDI 1.0 • Eclipse ● Bean Validation 1.0 • Servlet 3.0 ● DI 1.0 • IntelliJ • JSF 2.0 ● Managed Beans 1.0 • Complete Support ● JASPIC 1.1 • Interceptors 1.1 ● • Partial Support... • JAX-WS 2.2 • JSR-109 1.3 • JSP 2.2 • EL 2.2 JSR-250 1.1 • JACC 1.5 Connectors 1.6 6
  • 7. Java EE 6: Impact on Tools • New APIs are easy to expose: – Libraries in project path. More and more on Maven (EE 6 APIs in Maven) – Automatic Code completion – JavaDoc: Some IDEs... • New Concepts: – JSF 2.0: face-config obsolete, ManagedBeans obsolete (->CDI) – JAX-RS – No Web.xml, more annotations • New Packaging: – EBJ Inside Web Application Projects! – Web Profile versus Full Profile 7
  • 8. Java EE 6 : Impact on Tools • Alignment of Platform changes and the IDEs – Emacs (James Gosling 81), vi (Bill Joy 76): First IDES choice • Java EE 6 compliant – NetBeans 6.8: same day as Java EE 6 GlassFish (Dec 2009) • Almost everything but CDI and advanced JF 2.0 (fixed in 6.9) – IntelliJ: Same week as Java EE 6 • GlassFish Runtime target Supported in Dec 2009 • Eclipse: – ava EE 6 support June 2010 – But GlassFish Plugin with EE 6 support before... – Oracle Enterprise Pack for Eclipse 8
  • 9. Oracle Involvement In Java EE 6 And Tools • Oracle is the main driver of the GlassFish Community – The Java EE 6 Reference Implementation – Production Ready (Clustering, HA,...) • Oracle is the main driver of the NetBeans Community – Tight coupling with Java SE and EE changes. • Oracle has many Eclipse Committers – In JPA: EclipseLink Runtime and Dali Tooling – In Core Java EE tooling – In JSF: Most JSF WTP Eclipse tooling done by Oracle folks • Jboss Tools has their own JSF tooling – GlassFish and Weblogic support via OEPE 9
  • 10. Java EE 6: Oracle Gives Developer Choices Oracle Enterprise Pack for Eclipse NetBeans 6.9.1 and Coming 6.10 Target WebLogic and GlassFish 3 Bundled with GlassFish 3 IntelliJ IDEA has great Java EE 6 Support 10
  • 11. Java EE 6 Runtime in Tools: NetBeans Eclipse IntelliJ • NetBeans 6.8: same day • Eclipse 3.5 WTP GlassFish Plugin • IntelliJ 9.0 same week as Java EE as Java EE 6 GlassFish for Java EE 6 6 • NetBeans 6.9.1 and 7.0 • Eclipse 3.6 (June 2010): initial nightlies: complete EE 6 support for Java EE 6, far from support being Complete • GlassFish Plugin in OEPE and a • GlassFish Plugin bundled • GlassFish Support bundled dev Update Center • GlassFish Runtime • No bundle at this time, can Bundled and download the runtime via the • No Bundle, need separate dowload Preconfigured plugin • EveryThing works Out of • Manual Configurations, a bit • Some manual Configurations the Box difficult 11
  • 12. Java EE 6: Working with a GlassFish Server in the Tools. 12
  • 13. Java EE 6 Working with Databases • Via JPA 2.0 • Out of the Box, GlassFish 3 bundles JavaDB – Registered in NetBeans and Eclipse • All IDEs can register DB Resources and Introspect • All IDEs can Generate JPA From DB • All IDEs give decent Mapping Tooling • Can Start/Stop Dbs only in NetBeans! • NetBeans has extra Wizards to Generate CRUD JSF2 • NetBeans has better Default in Persistence.xml • IntelliJ has some ER/UML view and JP/QL Support 13
  • 14. Java EE 6 JPA Demo 14
  • 15. JSF 2.0 • Faceletes is the foundation – XHTML and tags – Templating • ui:include, ui:composition, ui:define,... – Composite Components • Reusable • Turn page markup into a JSF UI component • Managed Beans – Annotations (faces-config is optional) – JSF APIs or – CDI APIs (Preferred) • CDI support (@Named, @Inject, @SessionScoped,...) 15
  • 16. JSF 2.0 Tooling • NetBeans and IntelliJ are best – XHTML/Facelet Editor • Code Completion, Beans navigation – NetBeans 6.10 bundles Primefaces components > – JPA to JSF 2.0 Wizards (only NetBeans) – Create Composite Components automatically • Eclipse is really lacking the new features with CDI and annotations 16
  • 17. Java EE 6 JSF 2.0 Demo 17
  • 18. Java EE 6 CDI: Contexts and Dependency Injection JSF/Facelets Servlets ●Dependency injection ● Builds on @Inject API ●Context/scope management JSF/Facelets ●Works with multiple bean types Managed Bean ●Includes ELResolver MDB ●Ejb Session and Singleton Web Services Managed Bean ● The CDI Container will ● Resolve dependencies CDI Container ● Offer the bean for Injection 18
  • 19. Java EE 6 CDI Tooling • Should be easy: – Enable CDI in a Module: Create an empty beans.xml file – Use @Inject, @Named, @SessionScoped, @ApplicationScoped • Only Need EE 6 APIs in Path and Code Completion. • JavaDoc a Goody • But in EL (Facelets and JSP): Code Completion? – Not for Eclipse at this moment. Only in NetBeans and IntelliJ 19
  • 20. Java EE 6 CDI Demo 20
  • 21. JAX-RS • REST made easy • Java Annotation Based Resource Creation – Identity of Resources – Self-Descriptive Resources – Navigation between Resources – Representation choices • CRUD Operations: GET, DELETE, POST, PUT 21
  • 22. Java EE 6 Jax-RS and Web Services • Simple REST Resources Creation • Advanced Wizards Generating – Only in NetBeans • Resources from Database • Resources from Entity Classes • Resources from Patterns • JAX-WS: – Service Creation – Testing Web Services: Advantage NetBeans – Eclipse is Axis based 22
  • 23. Java EE 6 REST Web Services Demo 23
  • 24. Java EE 6 In IDEs • IntelliJ http://www.jetbrains.com/idea/ • Eclipse https://glassfishplugins.dev.java.net/ • NetBeans http://netbeans.org/ 24