26

AS7

Embed Size (px)

DESCRIPTION

Stefano Maestri - JBug Milano April 2012

Citation preview

Page 1: AS7
Page 2: AS7

Who is Stefano?

● JBoss WS[1] committer since early 2007

● Committer of various Jboss projects

● JBoss / Red Hat employee since July 2010

● JBoss AS7[2] team memeber

● IronJacamar[4] team member

● Wise[3] project leader

● Follow me: www.javalinux.it, www.twitter.com/maeste https://plus.google.com/102371438013760231375/about

https://github.com/maeste http://www.linkedin.com/in/maeste [1] http://www.jboss.org/jbossws [2] http://www.jboss.org/jbossas

[3] http://www.jboss.org/wise [4] http://www.jboss.org/ironjcamar

Page 3: AS7

AS7 in a nutshell

●Fast

●Very fast

●Blazingly fast (<3s startup)

●#@*%ing fast

Page 4: AS7

AS7 in a nutshell (seriosly)

●Blazingly fast (<3s startup)●Lightweight●Modular core●Hot, parallel deployment●Elegant administration●Domain management●Easy testable

Page 5: AS7

Boot time

Page 6: AS7

Memory

Page 7: AS7

Core rewritten from scratch to achive..

● Improved usability, increased manageability, simplified configuration

● Domain management● Multiple consistent management

interfaces● CLI, Java API, HTTP API, Console

● Unified user-focused configuration● Modular

● Only API – no implementation details● True isolation

Page 8: AS7

Simplified user-focused configuration

Page 9: AS7

Standalone mode

● Standalone is a single AS process for use in development, where the additional management functionality is not required

● Provides a similar development experience to previous versions of the JBoss AS, allowing a deployment to be dropped in a folder and automatically be deployed

● Same management tools and APIs as domain mode

Page 10: AS7

Domain mode

● Easy management of multiple JBoss AS instances

● Managed from a single point, all have access to the same domain configuration

● Allows for management and configuration updates to be pushed out to all servers

● Domain mode has three separate processes● Process Controller● Host Controller● Server instance

Page 11: AS7

Domain processes

● Process Controller● Responsible for managing, starting / stopping

processes● Extremely simple

● Host Controller● One host controller is the domain controller,

the rest are slaves● Domain controller responsible for pushing

management and configuration changes

Page 12: AS7

Domain mode

Page 13: AS7

Demos

● Booting standalone mode● Booting domain mode

Page 14: AS7

Architecture

Page 15: AS7

JBoss Modules

● New classloading project● Provides a modular (not hierarchical)

classloading environment● Classloading is extremely fast● Classloading is truely isolated by default● Classloading is extremely flexible

Page 16: AS7

Hierarchical classloading

Page 17: AS7

Modular classloading

Page 18: AS7

JBoss Modules

● Fast● O(1) dependency resolution● Concurrent (lock-free in most Vms)

● Pure modular classloading● Can only resolve what they import

● External configuration (module.xml)● Dynamic (can be redefined)● Extensible (JBoss OSGi)

Page 19: AS7

module.xml

Page 20: AS7

JBoss Modular Service Container (MSC)

● Small, lightweight and efficient● Highly concurrent scalable state machine

Page 21: AS7

Dynamic Model Representation (DMR)

● Central detyped management API● All management operations with/on DMR● Backwards compatible

● Can be used to control standalone or domain

● Detypes (i.e. string based) API uses small set of Java classes

● Various transports (Java remoting, JSON/HTTP)

Page 22: AS7

Dynamic Model Representation (DMR)

Page 23: AS7

Managing with cli

● Text base user interface● Easy to use both for standalone and

domain mode● Scriptable.● Demo....

Page 24: AS7

Managing with webconsole

● Web console in AS7 is a best effort● It is now developed for most common

administration tasks● It will increase its functions in next

months● It's adding a lot of metrics● JBossON for EAP

Page 25: AS7

Community

● Get involved !● Base for JBoss Enterprise Application

Platform 6

● Download● http://www.jboss.org/jbossas/downloads

● Forum● http://community.jboss.org/en/jbossas/as7_us

ers

Page 26: AS7

Community

● Hacking on AS 7● http://community.jboss.org/wiki/HackingonAS

7

● Webinars● http://www.jboss.org/as7/webinars.html

● Documentation● https://docs.jboss.org/author/display/AS7/Doc

umentation