cocktail d’expérience informatiques             Genève 3 & 4 octobre 2011                    Seconde édition              ...
la révolution            Alexis 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
soft-shake.ch - JBoss AS 7, la révolution
soft-shake.ch - JBoss AS 7, la révolution
soft-shake.ch - JBoss AS 7, la révolution
soft-shake.ch - JBoss AS 7, la révolution
Upcoming SlideShare
Loading in...5
×

soft-shake.ch - JBoss AS 7, la révolution

813

Published on

Alexis Hassler


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.


http://soft-shake.ch/2011/conference/sessions/java/2011/09/13/jboss.html

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

  • Be the first to like this

No Downloads
Views
Total Views
813
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
14
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

soft-shake.ch - JBoss AS 7, la révolution

  1. 1. cocktail d’expérience informatiques Genève 3 & 4 octobre 2011 Seconde édition soft-shake.chAuteur Alexis HASSLER Track JavaSession JBoss Application Server 7
  2. 2. la révolution Alexis Hassler
  3. 3. @AlexisHassler
  4. 4. AlexisHassler
  5. 5. 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
  6. 6. 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
  7. 7. JavaEE 6 - PruningEnterprise Web Web ManagementApplication Application Service & SecurityEJB 2 entity Deployment Java SE JAX-RPC JAXR
  8. 8. Full Profile Web Profile ++ .0 previewJavaEE 6 Web Profile .0 .1
  9. 9. 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
  10. 10. 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 ...
  11. 11. 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 ...
  12. 12. Architecture AS7 JBoss MSC DMR Controller Threads Modules Server Controller ServiceDeployers VFS Jandex Reflect Cache Repository Core Infrastructure Subsystems
  13. 13. 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
  14. 14. 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)
  15. 15. Startuphttp://community.jboss.org/wiki/AS7StartupTimeShowdown
  16. 16. 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
  17. 17. 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
  18. 18. 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
  19. 19. Configurationstandalone/configutation/standalone.xml
  20. 20. Configurationserver/default/deploy/hdscanner-jboss-beans.xml server/default/conf/bootstrap/profile.xml
  21. 21. ✔ Configuration (réseau) ✔ Démarrage
  22. 22. 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"
  23. 23. DéploiementÉtat .dodeploy.pending .skipdeploy .isdeploying .isundeploying .deployed .failed .undeployed
  24. 24. 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 ...
  25. 25. ✔ Déploiement automatique ✔ Déploiement manuel
  26. 26. Administration Console CLIHTTP / JSON Java API
  27. 27. http://<host>:9990/console
  28. 28. jboss-admin.shNaviguer– cd, ls, pwdLire la configuration– :read-resource, :read-attribute,...Modifier la configuration– :add-namespace, :write-attribute,...
  29. 29. jboss-admin.shDatasourceDéploiement– upload + deploy– undeploy
  30. 30. ✔ Datasource
  31. 31. Modules"Classpath is dead!"Mark Reinhold, JavaOne 2009 http://java.sun.com/javaone/2009/general_sessions.jsp
  32. 32. ModulesJava Module– Projet Jigsaw– JavaSE 8OSGiJBoss Module
  33. 33. 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
  34. 34. ModulesModules système– Java EEModules userLocal ResourceInter deployment dependencies
  35. 35. DéploiementSéparation module / application1 war => 1 module– deployment.demo.war
  36. 36. 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>
  37. 37. 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>
  38. 38. ✔ SLF4J
  39. 39. Domain Server Host Controller Server Host 1 Domain Controller Host Server ControllerHost 0 Host 2 Host Server Controller Host 3
  40. 40. 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
  41. 41. RHQ OS MySQL Mem, CPU, FS RHQ JBoss AS Agent Httpd Host 1 RHQ Server RHQ ...Host 0 Agent ... ... ... Host 2
  42. 42. IDEEclipse 3.7 + JBoss ToolsIntelliJ IDEA 11Netbeans 7.0
  43. 43. Cloud SaaS Software Software as a Service Runtime PaaS / Platform as a Service Middleware Hardware IaaS +Infrastructure as a Service OS
  44. 44. PaaS by redhatJava, Perl, PHP, Python, Ruby
  45. 45. Express Flex– Git – Contrôle étendu– < Web profile – Amazon EC2
  46. 46. ✔ OpenShift Express
  47. 47. JBoss EAP 6Q1 2012 (TBC)Dérivé de AS 7.1– JavaEE 6 full profile… à suivre
  48. 48. ConclusionTravaux en cours– Full profile– Documentation .0Retour dexpérience
  49. 49. 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
  50. 50. http://www.jboss.org/as7.htmlhttp://www.jboss.org/openshift/
  51. 51. Auto-promotionhttp://www.sewatech.fr/formation-jboss-7.htmlhttp://blog.alexis-hassler.com
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×