jboss as vs jboss eap · jboss as vs jboss eap. as7 key features ... r rce ee ejb3 d a g g i g sar...

17

Upload: lymien

Post on 25-Apr-2018

227 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: JBoss AS vs JBoss EAP · JBoss AS vs JBoss EAP. AS7 Key Features ... r rce EE EJB3 d A g g i g SAR y r n b WS S JMX. Key MSC Attributes Small, lightweight, and efficient
Page 2: JBoss AS vs JBoss EAP · JBoss AS vs JBoss EAP. AS7 Key Features ... r rce EE EJB3 d A g g i g SAR y r n b WS S JMX. Key MSC Attributes Small, lightweight, and efficient

JBoss AS vs JBoss EAP

Page 3: JBoss AS vs JBoss EAP · JBoss AS vs JBoss EAP. AS7 Key Features ... r rce EE EJB3 d A g g i g SAR y r n b WS S JMX. Key MSC Attributes Small, lightweight, and efficient

AS7 Key Features•Fast and Lightweight (More later)•Supports domain (multi-node) management•Multiple consistent management interfaces•CLI, Java API, HTTP API, Console

•Unified, user focused configuration•No more intermixing of internal wiring and config

•Modular •Only APIs, no AS implementation exposure•True isolation (users can finally use their own XML parsers)

Page 4: JBoss AS vs JBoss EAP · JBoss AS vs JBoss EAP. AS7 Key Features ... r rce EE EJB3 d A g g i g SAR y r n b WS S JMX. Key MSC Attributes Small, lightweight, and efficient

Two Operational ModesStandalone

•Traditional JBoss single JVM server

•Management facilities IN-VM•No lifecycle management (only shutdown)

Domain

•Multi-JVM, multi-server model

•Management coordinated by Domain Controller Process•Multiple server instances (JVMs) per Host

•Full lifecycle managed by Process Controller

Page 5: JBoss AS vs JBoss EAP · JBoss AS vs JBoss EAP. AS7 Key Features ... r rce EE EJB3 d A g g i g SAR y r n b WS S JMX. Key MSC Attributes Small, lightweight, and efficient

Domain Physical Topology

Page 6: JBoss AS vs JBoss EAP · JBoss AS vs JBoss EAP. AS7 Key Features ... r rce EE EJB3 d A g g i g SAR y r n b WS S JMX. Key MSC Attributes Small, lightweight, and efficient

jboss-7.0.0.Beta3bin

standalone.confstandalone.sh domain.sh jboss-admin.sh

modulesstandalone

configurationstandalone.xml

deploymentslogsdata

Standalone Mode

Domain Mode

Command Line Interface

Standalone Mode JVM Parameters

Static JBoss Module Definitions

Standalone Unified Configuration

File System Deployment

Internal Data (includes repository)

Page 7: JBoss AS vs JBoss EAP · JBoss AS vs JBoss EAP. AS7 Key Features ... r rce EE EJB3 d A g g i g SAR y r n b WS S JMX. Key MSC Attributes Small, lightweight, and efficient

jboss-7.0.0.Beta3domain

configurationdomain.xmlhost.xml

serversserver-one

logsdata

server-twologsdata

Domain Wide Unified Configuration

Server “One” JVM instance data

Host Controller Configuration

Server “Two” JVM instance data

Page 8: JBoss AS vs JBoss EAP · JBoss AS vs JBoss EAP. AS7 Key Features ... r rce EE EJB3 d A g g i g SAR y r n b WS S JMX. Key MSC Attributes Small, lightweight, and efficient

User-focused Config<bean name="TransactionManager" class="com.arjuna.ats.jbossatx.jta.TransactionManagerService"> <annotation>@org.jboss.aop.microcontainer.aspects.jmx.JMX(name="jboss:service=TransactionManager", exposedInterface=com.arjuna.ats.jbossatx.jta.TransactionManagerServiceMBean.class, registerDirectly=true)</annotation> <annotation>@org.jboss.managed.api.annotation.ManagementObject(name="TransactionManager",componentType=@org.jboss.managed.api.annotation.ManagementComponent(type = "MCBean", subtype = "JTA"),targetInterface=com.arjuna.ats.jbossatx.jta.TransactionManagerServiceMBean.class) </annotation>

<property name="transactionTimeout">300</property> <property name="objectStoreDir">${jboss.server.data.dir}/tx-object-store</property>

<subsystem xmlns="urn:jboss:domain:transactions:1.0"> <recovery-environment socket-binding="txn-recovery-environment" status-socket-binding="txn-status-manager"/> <core-environment socket-binding="txn-socket-process-id"/></subsystem>

Page 9: JBoss AS vs JBoss EAP · JBoss AS vs JBoss EAP. AS7 Key Features ... r rce EE EJB3 d A g g i g SAR y r n b WS S JMX. Key MSC Attributes Small, lightweight, and efficient

AS7 ArchitectureMSC JBoss

Modules DMR Controller Threads

Core Infrastructure

Server Controller Service

Deployers VFS Jandex Reflect Cache Repository

Subsystems

Con

nect

or

Dat

asou

rce

EE

EJB

3

JMX

JPA

Mes

sagi

ng

Nam

ing

OS

Gi

Rem

otin

g

SA

R

Sec

urity

FS S

ecan

ner

Tran

sact

ion

Web

WS

Wel

d

JAX

-RS

Page 10: JBoss AS vs JBoss EAP · JBoss AS vs JBoss EAP. AS7 Key Features ... r rce EE EJB3 d A g g i g SAR y r n b WS S JMX. Key MSC Attributes Small, lightweight, and efficient

Key MSC AttributesSmall, lightweight, and efficient

•216K JAR

•Tiny memory overheadHighly concurrent & scalable state machine

•State transitions are “tasks”Services are primarily interface based

•No reflection or XML required!Only two non-error, non-transition states

•UP & DOWN•N-State systems are implemented with N services

Page 11: JBoss AS vs JBoss EAP · JBoss AS vs JBoss EAP. AS7 Key Features ... r rce EE EJB3 d A g g i g SAR y r n b WS S JMX. Key MSC Attributes Small, lightweight, and efficient

Other notable featuresMultiple startup modes

•Active, Passive, Lazy, On-Demand, NeverStrong typing

Listeners

•Capable of modeling advanced casesChild services

Async start & stop

Advanced Cycle Detection and Error Detection

Immediate & Deferred resolution

Page 12: JBoss AS vs JBoss EAP · JBoss AS vs JBoss EAP. AS7 Key Features ... r rce EE EJB3 d A g g i g SAR y r n b WS S JMX. Key MSC Attributes Small, lightweight, and efficient

JBoss ModulesSmall, lightweight, and efficient•O(1) Dep resolution•Concurrent class loading (lockless on most VMs)•207k JAR

“Pure” modular class loading•Modules only see what they import (includes JDK classes!)

External module definitions•Don’t have to break open the JAR

Dynamic•Modules can be redefined

Extensible•JBoss OSGi implemented on modules

Page 13: JBoss AS vs JBoss EAP · JBoss AS vs JBoss EAP. AS7 Key Features ... r rce EE EJB3 d A g g i g SAR y r n b WS S JMX. Key MSC Attributes Small, lightweight, and efficient

JBoss ModulesSmall, lightweight, and efficient•O(1) Dep resolution•Concurrent class loading (lockless on most VMs)•207k JAR

“Pure” modular class loading•Modules only see what they import (includes JDK classes!)

External module definitions•Don’t have to break open the JAR

Dynamic•Modules can be redefined

Extensible•JBoss OSGi implemented on modules

Page 14: JBoss AS vs JBoss EAP · JBoss AS vs JBoss EAP. AS7 Key Features ... r rce EE EJB3 d A g g i g SAR y r n b WS S JMX. Key MSC Attributes Small, lightweight, and efficient

Boot Time Results

0s

8s

15s

23s

30s

Minimal Default

1.6972.1090.650

18.556

4.318

27.121

4.724

EAP 5.1AS6AS7AS7 (32)

Page 15: JBoss AS vs JBoss EAP · JBoss AS vs JBoss EAP. AS7 Key Features ... r rce EE EJB3 d A g g i g SAR y r n b WS S JMX. Key MSC Attributes Small, lightweight, and efficient

Memory Consumption

0

38

75

113

150

Minimal Default (To Date)

9.2M16.2M

7.0M

138.6M

26.0M

AS6 AS7 AS7 (32)

Page 16: JBoss AS vs JBoss EAP · JBoss AS vs JBoss EAP. AS7 Key Features ... r rce EE EJB3 d A g g i g SAR y r n b WS S JMX. Key MSC Attributes Small, lightweight, and efficient

New Possibilities• Execute an entire Java EE container in a unit test!• Use an appserver VM per Application!• Run in constrained environments (light cloud, plug

computers, mobile devices) • Develop faster than you ever have before!• Run multiple staging servers on your laptop!

Page 17: JBoss AS vs JBoss EAP · JBoss AS vs JBoss EAP. AS7 Key Features ... r rce EE EJB3 d A g g i g SAR y r n b WS S JMX. Key MSC Attributes Small, lightweight, and efficient

CR1 “White Rabbit” Released!

Get it:http://jboss.org/jbossas/downloads

Code it:http://github.com/jbossas