la révolutionAlexis Hassler
@AlexisHassler
AlexisHassler
JavaEE 6Enterprise        Web           Web        ManagementApplication    Application     Service      & Security CDI   ...
JavaEE 6 – Web Profile  Enterprise            Web  Application        Application  CDI      DI          Servlet     Bean  ...
JavaEE 6 - PruningEnterprise         Web         Web      ManagementApplication     Application   Service    & SecurityEJB...
Full Profile               Web Profile ++                              .0 previewJavaEE 6           Web Profile           ...
Historique                  1999                  2000   2.0JBoss Group LLC   2001   2.2                  2002   3.0      ...
JBoss Logging  JSF - Mojarra  JAX-WS - CXFJBoss Transaction   Datasource     JavaEE       EJB   CDI - Weld JPA - Hibernate...
JBoss Logging  JSF - Mojarra  JAX-WS - CXFJBoss Transaction   Datasource     JavaEE       EJB   CDI - Weld JPA - Hibernate...
Architecture AS7              JBoss  MSC                        DMR       Controller    Threads             Modules       ...
Startup50 s                              AS 6.045 s                         AS 5.140 s35 s30 s25 s20 s15 s            AS 4...
Startup                                                Geronimo 2                                                GlassFish...
Startuphttp://community.jboss.org/wiki/AS7StartupTimeShowdown
LightweightHeap used180 Mo160 Mo140 Mo                     AS 5.1120 Mo                              AS 6.0100 Mo 80 Mo 60...
Configurationfind <profile_dir> -name *.xml | wc -l  160  140  120                      AS 5.1                            ...
Configurationbinclient                     binlib                           bundlesserver     default               module...
Configurationstandalone/configutation/standalone.xml
Configurationserver/default/deploy/hdscanner-jboss-beans.xml                                 server/default/conf/bootstrap...
✔   Configuration (réseau)       ✔   Démarrage
Déploiement                                            binAutomatique                                 bundles             ...
DéploiementÉtat               .dodeploy.pending                          .skipdeploy              .isdeploying            ...
Déploiement  Manuel   –   auto-deploy-zipped="false"cp demo.war $JBOSS_HOME/standalone/deployments/17:12:24,923 INFO ... F...
✔   Déploiement automatique    ✔   Déploiement manuel
Administration Console                CLIHTTP / JSON        Java API
http://<host>:9990/console
jboss-admin.shNaviguer–   cd, ls, pwdLire la configuration–   :read-resource, :read-attribute,...Modifier la configuration...
jboss-admin.shDatasourceDéploiement–   upload + deploy–   undeploy
✔   Datasource
Modules"Classpath is dead!"Mark Reinhold, JavaOne 2009           http://java.sun.com/javaone/2009/general_sessions.jsp
ModulesJava Module–   Projet Jigsaw–   JavaSE 8OSGiJBoss Module
ModulesHiérarchie                         Modularité             System                 org.javassist           Classloade...
ModulesModules système–   Java EEModules userLocal ResourceInter deployment dependencies
DéploiementSéparation module / application1 war => 1 module–   deployment.demo.war
Déploiement1 ear => n modules–   ear/lib              <!-- config globale -->–   war       <subsystem xmlns="urn:jboss:dom...
Module globalstandalone.xml ou domain.xml–   Slot = version<subsystem xmlns="urn:jboss:domain:ee:1.0" >  <global-modules> ...
✔   SLF4J
Domain                               Server                    Host                  Controller                           ...
Domain                                         Server                               Server    Group 1                    H...
RHQ                        OS       MySQL                  Mem, CPU, FS                  RHQ            JBoss AS          ...
IDEEclipse 3.7 + JBoss ToolsIntelliJ IDEA 11Netbeans 7.0
Cloud          SaaS                 Software  Software as a Service                               Runtime          PaaS   ...
PaaS by redhatJava, Perl, PHP, Python, Ruby
Express             Flex–   Git             –   Contrôle étendu–   < Web profile   –   Amazon EC2
✔   OpenShift Express
JBoss EAP 6Q1 2012 (TBC)Dérivé de AS 7.1–   JavaEE 6 full profile… à suivre
ConclusionTravaux en cours–   Full profile–   Documentation                .0Retour dexpérience
Conclusion              1999              2000   2.0              2001   2.2              2002   3.0              2003   3...
http://www.jboss.org/as7.htmlhttp://www.jboss.org/openshift/
Auto-promotionhttp://www.sewatech.fr/formation-jboss-7.htmlhttp://blog.alexis-hassler.com
JBoss AS 7, la révolution
JBoss AS 7, la révolution
JBoss AS 7, la révolution
Upcoming SlideShare
Loading in …5
×

JBoss AS 7, la révolution

5,740 views

Published on

JBoss AS 7 est sorti pendant l’été 2011. Cette version est une véritable révolution pour tous les utilisateurs JBoss : temps de démarrage et de déploiement record, techniques d’administration renouvelées, configuration simplifiée et plus expressive,…

Dans cette présentation, j’explique ces nouveautés et je les montre avec des vrais morceaux de ligne de commande et peu de cloud.

Published in: Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
5,740
On SlideShare
0
From Embeds
0
Number of Embeds
2,486
Actions
Shares
0
Downloads
89
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

JBoss AS 7, la révolution

  1. 1. la révolutionAlexis Hassler
  2. 2. @AlexisHassler
  3. 3. AlexisHassler
  4. 4. JavaEE 6Enterprise Web Web ManagementApplication Application Service & Security CDI DI Servlet JAX-RS Auth. SPI Bean Validation JAX-WS JSF JAX-WS JAX-WS JACCEJB JPA JSP EL JAXB DeploymentInterceptors JSTL Ent. WS ManagementJCA JTA Debugging WS Metadata Common Java SE JAX-RPCAnnotations JMX StAX JMS Managed JAXM JDBC JAXP JavaMail Beans JAXR JAF
  5. 5. JavaEE 6 – Web Profile Enterprise Web Application Application CDI DI Servlet Bean JAX-WS JSF Validation EJB 3 lite JSP EL Interceptors JSTL JPA JTA Debugging Managed Beans
  6. 6. JavaEE 6 - PruningEnterprise Web Web ManagementApplication Application Service & SecurityEJB 2 entity Deployment Java SE JAX-RPC JAXR
  7. 7. Full Profile Web Profile ++ .0 previewJavaEE 6 Web Profile .0 .1
  8. 8. Historique 1999 2000 2.0JBoss Group LLC 2001 2.2 2002 3.0 2003 3.2 JBoss Inc 2004 4.0 2005 RedHat 2006 2007 4.2 2008 5.0 2009 5.1 2010 6.0 2011 7.0, 6.1, 7.1
  9. 9. JBoss Logging JSF - Mojarra JAX-WS - CXFJBoss Transaction Datasource JavaEE EJB CDI - Weld JPA - Hibernate Subsystems NamingCache - Infinispan Core Infrastructure JMS - HornetQ Composants AS7 JGroupsJAX-RS - RESTeasyJCA - IronJacamar ...
  10. 10. JBoss Logging JSF - Mojarra JAX-WS - CXFJBoss Transaction Datasource JavaEE EJB CDI - Weld JPA - Hibernate Services Naming Micro containerCache - Infinispan JMS - HornetQ Composants AS6 JGroupsJAX-RS - RESTeasy JCA ...
  11. 11. Architecture AS7 JBoss MSC DMR Controller Threads Modules Server Controller ServiceDeployers VFS Jandex Reflect Cache Repository Core Infrastructure Subsystems
  12. 12. Startup50 s AS 6.045 s AS 5.140 s35 s30 s25 s20 s15 s AS 4.2 AS 4.010 s AS 7.0 5s 0s
  13. 13. Startup Geronimo 2 GlassFish 290 s GlassFish 3 JBoss 580 s JBoss 670 s Weblogic 1060 s Websphere 750 s40 s30 s20 s10 s 0s http://tiny.cc/agoncal-as-startup (12/2009)
  14. 14. Startuphttp://community.jboss.org/wiki/AS7StartupTimeShowdown
  15. 15. LightweightHeap used180 Mo160 Mo140 Mo AS 5.1120 Mo AS 6.0100 Mo 80 Mo 60 Mo 40 Mo AS 4.0 AS 4.2 20 Mo AS 7.0 0 Mo
  16. 16. Configurationfind <profile_dir> -name *.xml | wc -l 160 140 120 AS 5.1 AS 6.0 100 80 60 40 AS 4.0 AS 4.2 20 AS 7.0 0
  17. 17. Configurationbinclient binlib bundlesserver default modules conf standalone data configuration deploy deployers data lib deployments standard lib/ext all domain jbossweb-standalone minimal welcome-contentcommon docs deploy libdocs
  18. 18. Configurationstandalone/configutation/standalone.xml
  19. 19. Configurationserver/default/deploy/hdscanner-jboss-beans.xml server/default/conf/bootstrap/profile.xml
  20. 20. ✔ Configuration (réseau) ✔ Démarrage
  21. 21. Déploiement binAutomatique bundles modules – idem AS <7 pour les archives standalone configuration – désactivé en mode explosé data deployments lib/extcp demo.war $JBOSS_HOME/standalone/deployments/17:12:24,923 INFO ... Deployed "demo.war"
  22. 22. DéploiementÉtat .dodeploy.pending .skipdeploy .isdeploying .isundeploying .deployed .failed .undeployed
  23. 23. Déploiement Manuel – auto-deploy-zipped="false"cp demo.war $JBOSS_HOME/standalone/deployments/17:12:24,923 INFO ... Found demo.war ...touch $JBOSS_HOME/standalone/deployments/demo.war.dodeploy17:12:24,923 INFO ... Found demo.war ...
  24. 24. ✔ Déploiement automatique ✔ Déploiement manuel
  25. 25. Administration Console CLIHTTP / JSON Java API
  26. 26. http://<host>:9990/console
  27. 27. jboss-admin.shNaviguer– cd, ls, pwdLire la configuration– :read-resource, :read-attribute,...Modifier la configuration– :add-namespace, :write-attribute,...
  28. 28. jboss-admin.shDatasourceDéploiement– upload + deploy– undeploy
  29. 29. ✔ Datasource
  30. 30. Modules"Classpath is dead!"Mark Reinhold, JavaOne 2009 http://java.sun.com/javaone/2009/general_sessions.jsp
  31. 31. ModulesJava Module– Projet Jigsaw– JavaSE 8OSGiJBoss Module
  32. 32. ModulesHiérarchie Modularité System org.javassist ClassloaderUCR org.slf4j JBoss Classloaders org.jboss.weld org.hibernate.core Deployment Deployment Classloader Classloader Sub-deployment deployment.my.war Classloader
  33. 33. ModulesModules système– Java EEModules userLocal ResourceInter deployment dependencies
  34. 34. DéploiementSéparation module / application1 war => 1 module– deployment.demo.war
  35. 35. Déploiement1 ear => n modules– ear/lib <!-- config globale -->– war <subsystem xmlns="urn:jboss:domain:ee:1.0" > <ear-subdeployments-isolated> false– ear </ear-subdeployments-isolated> </subsystem> <!-- jboss-deployment-structure.xml--> <jboss-deployment-structure> <ear-subdeployments-isolated> true </ear-subdeployments-isolated> </jboss-deployment-structure>
  36. 36. Module globalstandalone.xml ou domain.xml– Slot = version<subsystem xmlns="urn:jboss:domain:ee:1.0" > <global-modules> <module name="org.javassist" slot="main" /> </global-modules></subsystem>
  37. 37. ✔ SLF4J
  38. 38. Domain Server Host Controller Server Host 1 Domain Controller Host Server ControllerHost 0 Host 2 Host Server Controller Host 3
  39. 39. Domain Server Server Group 1 Host Controller Server Host 1 Server Group 2 Domain Controller Host Server ControllerHost 0 Host 2 Host Server Controller Host 3
  40. 40. RHQ OS MySQL Mem, CPU, FS RHQ JBoss AS Agent Httpd Host 1 RHQ Server RHQ ...Host 0 Agent ... ... ... Host 2
  41. 41. IDEEclipse 3.7 + JBoss ToolsIntelliJ IDEA 11Netbeans 7.0
  42. 42. Cloud SaaS Software Software as a Service Runtime PaaS / Platform as a Service Middleware Hardware IaaS +Infrastructure as a Service OS
  43. 43. PaaS by redhatJava, Perl, PHP, Python, Ruby
  44. 44. Express Flex– Git – Contrôle étendu– < Web profile – Amazon EC2
  45. 45. ✔ OpenShift Express
  46. 46. JBoss EAP 6Q1 2012 (TBC)Dérivé de AS 7.1– JavaEE 6 full profile… à suivre
  47. 47. ConclusionTravaux en cours– Full profile– Documentation .0Retour dexpérience
  48. 48. Conclusion 1999 2000 2.0 2001 2.2 2002 3.0 2003 3.2 2004 4.0 2005Glassfish 2 2006 2007 4.2 2008 5.0Glassfish 3 2009 5.1 2010 6.0 2011 7.0, 6.1, 7.1
  49. 49. http://www.jboss.org/as7.htmlhttp://www.jboss.org/openshift/
  50. 50. Auto-promotionhttp://www.sewatech.fr/formation-jboss-7.htmlhttp://blog.alexis-hassler.com

×