SlideShare une entreprise Scribd logo
1  sur  31
Télécharger pour lire hors ligne
GlassFish v3
The future of app servers and Java EE is here



             Alexis Moussine-Pouchkine
GlassFish v3
The future of app servers and Java EE is here...
                 well almost ;)


             Alexis Moussine-Pouchkine
What a difference 2 years make
                          GlassFish v2 just released
                          The “enterprise” version




 70x hits growth
 v3 soon to be released
Disclaimer

 This presentation has no
  GlassFish v2.1 content
      (and thus no...)
   Record breaking perf numbers
   Web Services interop (Metro)
Easy clustering and centralized admin
 Large deployment success stories
th
April 20 , 2009
th
                       August 4 , 2009




http://weblogs.java.net/blog/robc/archive/2009/08/dependency_inje.html
In the mean time in GlassFish land...
●   Releases
    ●   v3 Preview + refresh, and 16 promoted builds
●   Numerous new features
    ●   Java EE 6 API's, restart, btrace/dtrace, embedded,
        modularity, OSGi, RESTful Admin, ACC, ...
    ●   Sub-projects: Jersey 1.x, Grizzly 2.0, Grizzly
        Comet, Atmosphere, Metro, OpenMQ, and scripting:
        jRoR, Grails, and now Django (jython)
    ●   Tooling: Eclipse Bundle 1.1, NetBeans 6.8 M1
●   4 patch releases for the GlassFish v2.1 branch
    ●   Now at v2.1patch5
●   On track for November release of v3 Final
Demo




Painless development with
        GlassFish
Painless Java EE development !
●   Incremental compile of all Java EE artifacts
●   Auto-deploy of all Java EE and static artifacts
Session Retention
●   Deployment option to maintain stateful
     sessions across re-deployments

$ asadmin redeploy --properties
 keepSessions=true myapp.war

●
    Greatly simplifies the
     development paradigm

●   Integrated in NetBeans 6.x :
Java EE
●   Java EE 5
    ●   Arguably the most important enterprise release
    ●   Learning from past mistakes and from others
    ●   Innovation with compatibility

●   Java EE 6
    ●   More Ease of Use
    ●   Extensibility          Homogeneous Platform
    ●   Profiles
    ●   Pruning
Java EE 6 (JSR 316)
●   EJB 3.1                      ●   JAXB 2.2
●   JPA 2.0                      ●   JAX-WS 2.2
●   Servlet 3.0                  ●   JSR-109 1.3
●   JSF 2.0                      ●   JAX-RS 1.1
●   Connector Architecture 1.6   ●   JSP 2.2, EL 2.2
●   Bean Validation 1.0          ●   Authentication SPI 1.1
●   JSR 299 JCDI 1.0 (née Web    ●   Common Annotations 1.1
    Beans)                           (JSR 250)
●   JSR 330 (@Inject)
Web Profile
●   EJB 3.1, EJB 3.1 lite           ●             JAXB 2.2
●   JPA 2.0                         ●             JAX-WS 2.2
●   Servlet 3.0                     ●             JSR-109 1.3
●   JSF 2.0                         ●             JAX-RS 1.1
●   Connector Architecture 1.6      ●             JSP 2.2, EL 2.2
●   Bean Validation 1.0             ●             Authentication SPI 1.1
●   JSR 299 JCDI 1.0 (née Web ●                   Common Annotations 1.1
    Beans)                                        (JSR 250)
●   JSR 330 (@Inject) EJB 3.1 JTA 1.1
                          Lite                     JPA 2.0




                                                             Bean Validation 1.0
                         JSTL 1.2     JSP 2.2      EL 2.2


                                     JSF 2.0


                                    Servlet 3.0
Beginning Java EE 6 w/ GlassFish 3
                 From Novice to Professional
●   Antonio Goncalves
    ●   ParisJUG leader
    ●   JCP EG member
    ●   Independent consultant
●   JavaOne Best seller
    ●   Covers JPA 2, EJB 3.1,
        JSF 2.0, JAX-RS, ...
Introducing
GlassFish v3
Modular and Dynamic
●   Modular : Apache Felix (OSGi)
●   Extensible : HK2
●   Yet very Fast !
Demo




Painless Java EE (6) development
Yes, Eclipse too !




GlassFish (v2/v3) + Eclipse 3.4 Tools Bundle: http://download.java.net/glassfish/eclipse/
Now version 1.1 (refreshed in August 2009), based on Eclipse 3.4.2
Update Center
Demo




GlassFish à la Carte
What's the deal with OSGi?
●   GlassFish runs on top of OSGi (Felix by default)
    ●   Also runs unmodified on Knopflerfish and Equinox
    ●   GlassFish ships with 100+ bundles
    ●   Can run without OSGi (Static mode, thanks to HK2)
    ●   Can use OSGi management tools (CLI or Web)
●   Any OSGi bundle will run in GlassFish v3
    ●   Drop it in glassfish/modules
    ●   Can also asadmin deploy it using --type osgi
Extending GlassFish v3
         OSGi-style – an example, a demo and a picture


                                                       ●   OSGi declarative service
                                                       ●   Service-Component
                                                           entry in the JAR Manifest
                                                       ●   Invoke the service from a
                                                           servlet using standard
                                                           @Resource injection
                                                       ●   Never use a GlassFish
                                                           API !
                                                       ●   No need to chose
                                                           between OSGi and
                                                           Java EE

Step by step: http://blogs.sun.com/dochez/entry/glassfish_v3_extensions_part_4
Demo




Extending GlassFish v3
     OSGi-style
Extending GlassFish v3
         SpringDM – another example, demo and picture


                                                       ●   Extend GlassFish with
                                                           an unmodified Spring dm
                                                           container
                                                       ●   Simple Spring bean
                                                           implementing the service
                                                       ●   Invoke the service from a
                                                           servlet using standard
                                                           @Resource injection
                                                       ●   Still no use of a
                                                           GlassFish API
                                                       ●   Single runtime for both
                                                           Spring and full Java EE
Step by step: http://blogs.sun.com/dochez/entry/glassfish_v3_extensions_part_4
Monitoring and Management
            Beyond web console and asadmin
●   Dynamic and non-intrusive monitoring of events
    from any GlassFish runtime classes
    ●
        BTrace integration new!
        –   Portable, dynamic and safe tracing tool for Java
        –   Btrace annotations and API to write scripts
    ●
        Probe Providers defined in java or XML new!
        –   Default providers & roll out your own
    ●
        RESTful interface new!
    ●
        DTrace for end-to-end new!
●   Still exposed via JMX
    ●   jconsole and visualvm as natural clients
RESTful admin
●   JAX-RS/Jersey + Grizzly to provide REST
    interfaces to :
    ●   Configure data (via GET, POST, DELETE)
    ●   Invoke commands (restart, stop, deploy, etc..)
    ●   Monitoring (GET only)
●   Available from :
    ●   http://localhost:4848/management/domain
    ●   http://localhost:4848/monitoring/domain
●   Use REST clients as Admin GUI substitute
    ●   Use you favorite glue/scripting language or tool
●   Data offered as either XML, HTML or JSON
●   Extensible
Demo




RESTful admin
A lot more ...
●   Dynamic languages : Rails, Grails, Django, ...
●   Comet, Cometd/Bayeux
●   Embedded API
●   Full support for mod_jk, WebDAV, CGI, SSI
●   Web Services Metro 1.4 (.Net 3.5)
●   OpenMQ
●   Extensible !
GlassFish v3 – Practical
●   Get it from http://glassfish.org
    ●   GlassFish v3 Preview today, Final in November

●   Choice !
    ●   Eclipse or NetBeans (or vi...)
    ●   Felix or Equinox

●   Download size: starting at 35MB
    ●   Graphical Installer, Zip version
    ●   Can move from Web profile to full (and vice-versa)
        using pkg/updatetool
    ●   Can always start from the IPS bootstrap...
GlassFish v3
The future of app servers and Java EE is here...
                 well almost ;)


              alexis.mp@sun.com
         http://blogs.sun.com/alexismp
                 Twitter: alexismp

Contenu connexe

Tendances

Andrei Niculae - glassfish - 24mai2011
Andrei Niculae - glassfish - 24mai2011Andrei Niculae - glassfish - 24mai2011
Andrei Niculae - glassfish - 24mai2011
Agora Group
 
Java EE 6 Component Model Explained
Java EE 6 Component Model Explained Java EE 6 Component Model Explained
Java EE 6 Component Model Explained
Shreedhar Ganapathy
 

Tendances (20)

Getting Started with Rails on GlassFish (Hands-on Lab) - Spark IT 2010
Getting Started with Rails on GlassFish (Hands-on Lab) - Spark IT 2010Getting Started with Rails on GlassFish (Hands-on Lab) - Spark IT 2010
Getting Started with Rails on GlassFish (Hands-on Lab) - Spark IT 2010
 
Java EE 6 & GlassFish V3 - Alexis Moussine-Pouchkine - May 2010
Java EE 6 & GlassFish V3 - Alexis Moussine-Pouchkine - May 2010Java EE 6 & GlassFish V3 - Alexis Moussine-Pouchkine - May 2010
Java EE 6 & GlassFish V3 - Alexis Moussine-Pouchkine - May 2010
 
GlassFish v3 : En Route Java EE 6
GlassFish v3 : En Route Java EE 6GlassFish v3 : En Route Java EE 6
GlassFish v3 : En Route Java EE 6
 
Tools Coverage for the Java EE Platform @ Silicon Valley Code Camp 2010
Tools Coverage for the Java EE Platform @ Silicon Valley Code Camp 2010Tools Coverage for the Java EE Platform @ Silicon Valley Code Camp 2010
Tools Coverage for the Java EE Platform @ Silicon Valley Code Camp 2010
 
GlassFish & Java EE Business Update @ CEJUG
GlassFish & Java EE Business Update @ CEJUGGlassFish & Java EE Business Update @ CEJUG
GlassFish & Java EE Business Update @ CEJUG
 
GlassFish and JavaEE, Today and Future
GlassFish and JavaEE, Today and FutureGlassFish and JavaEE, Today and Future
GlassFish and JavaEE, Today and Future
 
Building HTML5 WebSocket Apps in Java at JavaOne Latin America 2012
Building HTML5 WebSocket Apps in Java at JavaOne Latin America 2012Building HTML5 WebSocket Apps in Java at JavaOne Latin America 2012
Building HTML5 WebSocket Apps in Java at JavaOne Latin America 2012
 
Deploying Java EE 6 Apps in a Cluster: GlassFish 3.1 at Dallas Tech Fest 2011
Deploying Java EE 6 Apps in a Cluster: GlassFish 3.1 at Dallas Tech Fest 2011Deploying Java EE 6 Apps in a Cluster: GlassFish 3.1 at Dallas Tech Fest 2011
Deploying Java EE 6 Apps in a Cluster: GlassFish 3.1 at Dallas Tech Fest 2011
 
Overview of Java EE 6 by Roberto Chinnici at SFJUG
Overview of Java EE 6 by Roberto Chinnici at SFJUGOverview of Java EE 6 by Roberto Chinnici at SFJUG
Overview of Java EE 6 by Roberto Chinnici at SFJUG
 
Project Fuji/OpenESB Aquarium Paris
Project Fuji/OpenESB Aquarium ParisProject Fuji/OpenESB Aquarium Paris
Project Fuji/OpenESB Aquarium Paris
 
Java EE 6 & GlassFish = Less Code + More Power at CEJUG
Java EE 6 & GlassFish = Less Code + More Power at CEJUGJava EE 6 & GlassFish = Less Code + More Power at CEJUG
Java EE 6 & GlassFish = Less Code + More Power at CEJUG
 
Arun Gupta: London Java Community: Java EE 6 and GlassFish 3
Arun Gupta: London Java Community: Java EE 6 and GlassFish 3 Arun Gupta: London Java Community: Java EE 6 and GlassFish 3
Arun Gupta: London Java Community: Java EE 6 and GlassFish 3
 
Deep Dive Hands-on in Java EE 6 - Oredev 2010
Deep Dive Hands-on in Java EE 6 - Oredev 2010Deep Dive Hands-on in Java EE 6 - Oredev 2010
Deep Dive Hands-on in Java EE 6 - Oredev 2010
 
Getting Started with Java EE 7
Getting Started with Java EE 7Getting Started with Java EE 7
Getting Started with Java EE 7
 
Sun Java EE 6 Overview
Sun Java EE 6 OverviewSun Java EE 6 Overview
Sun Java EE 6 Overview
 
JBoss Enterprise Application Platform 6 Troubleshooting
JBoss Enterprise Application Platform 6 TroubleshootingJBoss Enterprise Application Platform 6 Troubleshooting
JBoss Enterprise Application Platform 6 Troubleshooting
 
JBoss Snowdrop
JBoss SnowdropJBoss Snowdrop
JBoss Snowdrop
 
Andrei Niculae - glassfish - 24mai2011
Andrei Niculae - glassfish - 24mai2011Andrei Niculae - glassfish - 24mai2011
Andrei Niculae - glassfish - 24mai2011
 
Java EE 6 Component Model Explained
Java EE 6 Component Model Explained Java EE 6 Component Model Explained
Java EE 6 Component Model Explained
 
The State of Java under Oracle at JCertif 2011
The State of Java under Oracle at JCertif 2011The State of Java under Oracle at JCertif 2011
The State of Java under Oracle at JCertif 2011
 

En vedette

En vedette (8)

Tuning Java Servers
Tuning Java Servers Tuning Java Servers
Tuning Java Servers
 
Java application server in the cloud
Java application server in the cloudJava application server in the cloud
Java application server in the cloud
 
Glassfish An Introduction
Glassfish An IntroductionGlassfish An Introduction
Glassfish An Introduction
 
Introducción a Tomcat
Introducción a TomcatIntroducción a Tomcat
Introducción a Tomcat
 
Tomcat server
 Tomcat server Tomcat server
Tomcat server
 
Introduction to Apache Tomcat 7 Presentation
Introduction to Apache Tomcat 7 PresentationIntroduction to Apache Tomcat 7 Presentation
Introduction to Apache Tomcat 7 Presentation
 
Tomcat Server
Tomcat ServerTomcat Server
Tomcat Server
 
Servers
ServersServers
Servers
 

Similaire à GlassFish v3 at JavaZone 09

GlassFish Server 3.1: Deploying your Java EE 6 Applications
GlassFish Server 3.1: Deploying your Java EE 6 ApplicationsGlassFish Server 3.1: Deploying your Java EE 6 Applications
GlassFish Server 3.1: Deploying your Java EE 6 Applications
Arun Gupta
 
Java EE 6 Clustering with Glassfish 3.1
Java EE 6 Clustering with Glassfish 3.1 Java EE 6 Clustering with Glassfish 3.1
Java EE 6 Clustering with Glassfish 3.1
Shreedhar Ganapathy
 

Similaire à GlassFish v3 at JavaZone 09 (20)

Glass Fish V3 University Amers May2009
Glass Fish V3  University Amers May2009Glass Fish V3  University Amers May2009
Glass Fish V3 University Amers May2009
 
GlassFish OSGi Server
GlassFish OSGi ServerGlassFish OSGi Server
GlassFish OSGi Server
 
Plugins 2.0: The Overview
Plugins 2.0: The OverviewPlugins 2.0: The Overview
Plugins 2.0: The Overview
 
GlassFish Server 3.1: Deploying your Java EE 6 Applications
GlassFish Server 3.1: Deploying your Java EE 6 ApplicationsGlassFish Server 3.1: Deploying your Java EE 6 Applications
GlassFish Server 3.1: Deploying your Java EE 6 Applications
 
GlassFish 3.1 at JCertif 2011
GlassFish 3.1 at JCertif 2011GlassFish 3.1 at JCertif 2011
GlassFish 3.1 at JCertif 2011
 
Java EE 6 workshop at Dallas Tech Fest 2011
Java EE 6 workshop at Dallas Tech Fest 2011Java EE 6 workshop at Dallas Tech Fest 2011
Java EE 6 workshop at Dallas Tech Fest 2011
 
Server Day 2009: GlassFish 3 by Alexis Moussine-Pouchkine
Server Day 2009: GlassFish 3 by Alexis Moussine-PouchkineServer Day 2009: GlassFish 3 by Alexis Moussine-Pouchkine
Server Day 2009: GlassFish 3 by Alexis Moussine-Pouchkine
 
GlassFish Embedded API
GlassFish Embedded APIGlassFish Embedded API
GlassFish Embedded API
 
OSGi and Java EE in GlassFish - Tech Days 2010 India
OSGi and Java EE in GlassFish - Tech Days 2010 IndiaOSGi and Java EE in GlassFish - Tech Days 2010 India
OSGi and Java EE in GlassFish - Tech Days 2010 India
 
Boston 2011 OTN Developer Days - GlassFish
Boston 2011 OTN Developer Days - GlassFishBoston 2011 OTN Developer Days - GlassFish
Boston 2011 OTN Developer Days - GlassFish
 
Hybrid Applications
Hybrid ApplicationsHybrid Applications
Hybrid Applications
 
GlassFish 3.1 – Simplifying your Java EE 6 Development and Deployment @ JAX L...
GlassFish 3.1 – Simplifying your Java EE 6 Development and Deployment @ JAX L...GlassFish 3.1 – Simplifying your Java EE 6 Development and Deployment @ JAX L...
GlassFish 3.1 – Simplifying your Java EE 6 Development and Deployment @ JAX L...
 
Java EE 6 & GlassFish = Less Code + More Power @ DevIgnition
Java EE 6 & GlassFish = Less Code + More Power @ DevIgnitionJava EE 6 & GlassFish = Less Code + More Power @ DevIgnition
Java EE 6 & GlassFish = Less Code + More Power @ DevIgnition
 
Java EE 6 = Less Code + More Power
Java EE 6 = Less Code + More PowerJava EE 6 = Less Code + More Power
Java EE 6 = Less Code + More Power
 
OTN Developer Days - GlassFish
OTN Developer Days - GlassFishOTN Developer Days - GlassFish
OTN Developer Days - GlassFish
 
Java EE 6 & GlassFish 3: Light-weight, Extensible, and Powerful @ JAX London ...
Java EE 6 & GlassFish 3: Light-weight, Extensible, and Powerful @ JAX London ...Java EE 6 & GlassFish 3: Light-weight, Extensible, and Powerful @ JAX London ...
Java EE 6 & GlassFish 3: Light-weight, Extensible, and Powerful @ JAX London ...
 
Java EE 6 Clustering with Glassfish 3.1
Java EE 6 Clustering with Glassfish 3.1 Java EE 6 Clustering with Glassfish 3.1
Java EE 6 Clustering with Glassfish 3.1
 
GlassFish Community and future larochelle
GlassFish Community and future larochelleGlassFish Community and future larochelle
GlassFish Community and future larochelle
 
Dynamic Languages Web Frameworks Indicthreads 2009
Dynamic Languages Web Frameworks Indicthreads 2009Dynamic Languages Web Frameworks Indicthreads 2009
Dynamic Languages Web Frameworks Indicthreads 2009
 
New Features of Java7 SE
New Features of Java7 SENew Features of Java7 SE
New Features of Java7 SE
 

Plus de Alexis Moussine-Pouchkine

Plus de Alexis Moussine-Pouchkine (20)

GlassFish Article September 07
GlassFish Article September 07GlassFish Article September 07
GlassFish Article September 07
 
GlassFish OSGi - Java2days 2010
GlassFish OSGi - Java2days 2010GlassFish OSGi - Java2days 2010
GlassFish OSGi - Java2days 2010
 
Javaee glassfish jcertif2010
Javaee glassfish jcertif2010Javaee glassfish jcertif2010
Javaee glassfish jcertif2010
 
GlassFish Community - FISL 2010
GlassFish Community - FISL 2010GlassFish Community - FISL 2010
GlassFish Community - FISL 2010
 
GlassFish OSGi - From modular runtime to hybrid applications
GlassFish OSGi - From modular runtime to hybrid applicationsGlassFish OSGi - From modular runtime to hybrid applications
GlassFish OSGi - From modular runtime to hybrid applications
 
Feuille de route (roadmap) GlassFish
Feuille de route (roadmap) GlassFishFeuille de route (roadmap) GlassFish
Feuille de route (roadmap) GlassFish
 
Java EE 6 Solutions Linux 2010
Java EE 6 Solutions Linux 2010Java EE 6 Solutions Linux 2010
Java EE 6 Solutions Linux 2010
 
L'association GUSES
L'association GUSESL'association GUSES
L'association GUSES
 
Open Solaris 2009.06
Open Solaris 2009.06Open Solaris 2009.06
Open Solaris 2009.06
 
Java EE 6 and GlassFish portfolio
Java EE 6 and GlassFish portfolioJava EE 6 and GlassFish portfolio
Java EE 6 and GlassFish portfolio
 
Metro Web Services
Metro Web ServicesMetro Web Services
Metro Web Services
 
Retour JavaOne 2009
Retour JavaOne 2009Retour JavaOne 2009
Retour JavaOne 2009
 
Zembly
ZemblyZembly
Zembly
 
Behind The Clouds
Behind The CloudsBehind The Clouds
Behind The Clouds
 
Retour d'expérience Cap Gemini GlassFish
Retour d'expérience Cap Gemini GlassFishRetour d'expérience Cap Gemini GlassFish
Retour d'expérience Cap Gemini GlassFish
 
OpenDS - Open Source Java LDAP server
OpenDS - Open Source Java LDAP serverOpenDS - Open Source Java LDAP server
OpenDS - Open Source Java LDAP server
 
GlassFish v2.1
GlassFish v2.1GlassFish v2.1
GlassFish v2.1
 
Open MQ Jerome Moliere
Open MQ Jerome MoliereOpen MQ Jerome Moliere
Open MQ Jerome Moliere
 
OpenMQ François Ostyn
OpenMQ François OstynOpenMQ François Ostyn
OpenMQ François Ostyn
 
OpenSSO Microsoft Interop
OpenSSO Microsoft InteropOpenSSO Microsoft Interop
OpenSSO Microsoft Interop
 

Dernier

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Dernier (20)

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 

GlassFish v3 at JavaZone 09

  • 1. GlassFish v3 The future of app servers and Java EE is here Alexis Moussine-Pouchkine
  • 2. GlassFish v3 The future of app servers and Java EE is here... well almost ;) Alexis Moussine-Pouchkine
  • 3. What a difference 2 years make GlassFish v2 just released The “enterprise” version 70x hits growth v3 soon to be released
  • 4. Disclaimer This presentation has no GlassFish v2.1 content (and thus no...) Record breaking perf numbers Web Services interop (Metro) Easy clustering and centralized admin Large deployment success stories
  • 6. th August 4 , 2009 http://weblogs.java.net/blog/robc/archive/2009/08/dependency_inje.html
  • 7. In the mean time in GlassFish land... ● Releases ● v3 Preview + refresh, and 16 promoted builds ● Numerous new features ● Java EE 6 API's, restart, btrace/dtrace, embedded, modularity, OSGi, RESTful Admin, ACC, ... ● Sub-projects: Jersey 1.x, Grizzly 2.0, Grizzly Comet, Atmosphere, Metro, OpenMQ, and scripting: jRoR, Grails, and now Django (jython) ● Tooling: Eclipse Bundle 1.1, NetBeans 6.8 M1 ● 4 patch releases for the GlassFish v2.1 branch ● Now at v2.1patch5 ● On track for November release of v3 Final
  • 9. Painless Java EE development ! ● Incremental compile of all Java EE artifacts ● Auto-deploy of all Java EE and static artifacts
  • 10. Session Retention ● Deployment option to maintain stateful sessions across re-deployments $ asadmin redeploy --properties keepSessions=true myapp.war ● Greatly simplifies the development paradigm ● Integrated in NetBeans 6.x :
  • 11. Java EE ● Java EE 5 ● Arguably the most important enterprise release ● Learning from past mistakes and from others ● Innovation with compatibility ● Java EE 6 ● More Ease of Use ● Extensibility Homogeneous Platform ● Profiles ● Pruning
  • 12. Java EE 6 (JSR 316) ● EJB 3.1 ● JAXB 2.2 ● JPA 2.0 ● JAX-WS 2.2 ● Servlet 3.0 ● JSR-109 1.3 ● JSF 2.0 ● JAX-RS 1.1 ● Connector Architecture 1.6 ● JSP 2.2, EL 2.2 ● Bean Validation 1.0 ● Authentication SPI 1.1 ● JSR 299 JCDI 1.0 (née Web ● Common Annotations 1.1 Beans) (JSR 250) ● JSR 330 (@Inject)
  • 13. Web Profile ● EJB 3.1, EJB 3.1 lite ● JAXB 2.2 ● JPA 2.0 ● JAX-WS 2.2 ● Servlet 3.0 ● JSR-109 1.3 ● JSF 2.0 ● JAX-RS 1.1 ● Connector Architecture 1.6 ● JSP 2.2, EL 2.2 ● Bean Validation 1.0 ● Authentication SPI 1.1 ● JSR 299 JCDI 1.0 (née Web ● Common Annotations 1.1 Beans) (JSR 250) ● JSR 330 (@Inject) EJB 3.1 JTA 1.1 Lite JPA 2.0 Bean Validation 1.0 JSTL 1.2 JSP 2.2 EL 2.2 JSF 2.0 Servlet 3.0
  • 14. Beginning Java EE 6 w/ GlassFish 3 From Novice to Professional ● Antonio Goncalves ● ParisJUG leader ● JCP EG member ● Independent consultant ● JavaOne Best seller ● Covers JPA 2, EJB 3.1, JSF 2.0, JAX-RS, ...
  • 16. Modular and Dynamic ● Modular : Apache Felix (OSGi) ● Extensible : HK2 ● Yet very Fast !
  • 17.
  • 18. Demo Painless Java EE (6) development
  • 19. Yes, Eclipse too ! GlassFish (v2/v3) + Eclipse 3.4 Tools Bundle: http://download.java.net/glassfish/eclipse/ Now version 1.1 (refreshed in August 2009), based on Eclipse 3.4.2
  • 22. What's the deal with OSGi? ● GlassFish runs on top of OSGi (Felix by default) ● Also runs unmodified on Knopflerfish and Equinox ● GlassFish ships with 100+ bundles ● Can run without OSGi (Static mode, thanks to HK2) ● Can use OSGi management tools (CLI or Web) ● Any OSGi bundle will run in GlassFish v3 ● Drop it in glassfish/modules ● Can also asadmin deploy it using --type osgi
  • 23. Extending GlassFish v3 OSGi-style – an example, a demo and a picture ● OSGi declarative service ● Service-Component entry in the JAR Manifest ● Invoke the service from a servlet using standard @Resource injection ● Never use a GlassFish API ! ● No need to chose between OSGi and Java EE Step by step: http://blogs.sun.com/dochez/entry/glassfish_v3_extensions_part_4
  • 25. Extending GlassFish v3 SpringDM – another example, demo and picture ● Extend GlassFish with an unmodified Spring dm container ● Simple Spring bean implementing the service ● Invoke the service from a servlet using standard @Resource injection ● Still no use of a GlassFish API ● Single runtime for both Spring and full Java EE Step by step: http://blogs.sun.com/dochez/entry/glassfish_v3_extensions_part_4
  • 26. Monitoring and Management Beyond web console and asadmin ● Dynamic and non-intrusive monitoring of events from any GlassFish runtime classes ● BTrace integration new! – Portable, dynamic and safe tracing tool for Java – Btrace annotations and API to write scripts ● Probe Providers defined in java or XML new! – Default providers & roll out your own ● RESTful interface new! ● DTrace for end-to-end new! ● Still exposed via JMX ● jconsole and visualvm as natural clients
  • 27. RESTful admin ● JAX-RS/Jersey + Grizzly to provide REST interfaces to : ● Configure data (via GET, POST, DELETE) ● Invoke commands (restart, stop, deploy, etc..) ● Monitoring (GET only) ● Available from : ● http://localhost:4848/management/domain ● http://localhost:4848/monitoring/domain ● Use REST clients as Admin GUI substitute ● Use you favorite glue/scripting language or tool ● Data offered as either XML, HTML or JSON ● Extensible
  • 29. A lot more ... ● Dynamic languages : Rails, Grails, Django, ... ● Comet, Cometd/Bayeux ● Embedded API ● Full support for mod_jk, WebDAV, CGI, SSI ● Web Services Metro 1.4 (.Net 3.5) ● OpenMQ ● Extensible !
  • 30. GlassFish v3 – Practical ● Get it from http://glassfish.org ● GlassFish v3 Preview today, Final in November ● Choice ! ● Eclipse or NetBeans (or vi...) ● Felix or Equinox ● Download size: starting at 35MB ● Graphical Installer, Zip version ● Can move from Web profile to full (and vice-versa) using pkg/updatetool ● Can always start from the IPS bootstrap...
  • 31. GlassFish v3 The future of app servers and Java EE is here... well almost ;) alexis.mp@sun.com http://blogs.sun.com/alexismp Twitter: alexismp