soft-shake.ch - JBoss AS 7, la révolution
Upcoming SlideShare
Loading in...5
×
 

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

on

  • 978 views

Alexis Hassler...

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

Statistics

Views

Total Views
978
Views on SlideShare
978
Embed Views
0

Actions

Likes
0
Downloads
13
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

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

  • cocktail d’expérience informatiques Genève 3 & 4 octobre 2011 Seconde édition soft-shake.chAuteur Alexis HASSLER Track JavaSession JBoss Application Server 7
  • la révolution Alexis Hassler
  • @AlexisHassler
  • AlexisHassler
  • 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
  • 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
  • JavaEE 6 - PruningEnterprise Web Web ManagementApplication Application Service & SecurityEJB 2 entity Deployment Java SE JAX-RPC JAXR
  • Full Profile Web Profile ++ .0 previewJavaEE 6 Web Profile .0 .1
  • 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
  • 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 ...
  • 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 ...
  • Architecture AS7 JBoss MSC DMR Controller Threads Modules Server Controller ServiceDeployers VFS Jandex Reflect Cache Repository Core Infrastructure Subsystems
  • 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
  • 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)
  • Startuphttp://community.jboss.org/wiki/AS7StartupTimeShowdown
  • 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
  • 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
  • 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
  • Configurationstandalone/configutation/standalone.xml
  • Configurationserver/default/deploy/hdscanner-jboss-beans.xml server/default/conf/bootstrap/profile.xml
  • ✔ Configuration (réseau) ✔ Démarrage
  • 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"
  • DéploiementÉtat .dodeploy.pending .skipdeploy .isdeploying .isundeploying .deployed .failed .undeployed
  • 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 ...
  • ✔ 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– :add-namespace, :write-attribute,...
  • 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 ClassloaderUCR org.slf4j JBoss Classloaders org.jboss.weld org.hibernate.core Deployment Deployment Classloader Classloader Sub-deployment deployment.my.war Classloader
  • 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: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>
  • 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>
  • ✔ SLF4J
  • Domain Server Host Controller Server Host 1 Domain Controller Host Server ControllerHost 0 Host 2 Host Server Controller Host 3
  • 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
  • RHQ OS MySQL Mem, CPU, FS RHQ JBoss AS Agent Httpd Host 1 RHQ Server RHQ ...Host 0 Agent ... ... ... Host 2
  • IDEEclipse 3.7 + JBoss ToolsIntelliJ IDEA 11Netbeans 7.0
  • Cloud SaaS Software Software as a Service Runtime PaaS / Platform as a Service Middleware Hardware IaaS +Infrastructure as a Service OS
  • 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.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
  • http://www.jboss.org/as7.htmlhttp://www.jboss.org/openshift/
  • Auto-promotionhttp://www.sewatech.fr/formation-jboss-7.htmlhttp://blog.alexis-hassler.com