SlideShare uma empresa Scribd logo
1 de 28
Baixar para ler offline
JBoss AS 7

Its JBoss, but not as we know it




    © C2B2 Consulting Limited 2011
               All Rights Reserved
Agenda
•   Introduction
•   About Me
•   JBoss 7 – All change
•   Standalone mode
•   Domain mode
•   Command line interface


            © C2B2 Consulting Limited 2011
                       All Rights Reserved
Who am I?
• Matt Brasier
• Head of Consulting at C2B2
• 7 years experience in middleware
  consulting
  – 5 years using JBoss




           © C2B2 Consulting Limited 2011
                      All Rights Reserved
C2B2
• Middleware services specialists
  – Consulting
  – Troubleshooting
  – Performance tuning
  – Managed services
  – Training
• In the UK and beyond

           © C2B2 Consulting Limited 2011
                      All Rights Reserved
Our Experience




© C2B2 Consulting Limited 2011
           All Rights Reserved
JBoss 7 – All change




              © C2B2 Consulting Limited 2011
                         All Rights Reserved
All Change
• Major rewrite of the application server
  – Much bigger change than JBoss 4 to 5
• Key features
  – Module based services
  – Modular Service Container
  – Domain mode and Standalone mode
  – Everything has changed


           © C2B2 Consulting Limited 2011
                      All Rights Reserved
Focus on configuration
• Make JBoss a solid
  platform for enterprise
  deployment of server
  side java applications
  – Deployment and
    management across
    multiple servers
• Focus on providing
  enterprise-scale
  features
             © C2B2 Consulting Limited 2011
                        All Rights Reserved
Directory Structure
• bin
   – Scripts for starting and stopping JBoss
• docs
   – Documentation, schemas, examples etc
• modules
   – Modules used by/available to the server
• domain
   – Files for running in domain mode
• standalone
   – Files for running in stand alone mode


                © C2B2 Consulting Limited 2011
                           All Rights Reserved
Modules
• Pluggable components of the application
  server
  – Referenced from profiles
  – module.xml
• Basis of classloading in JBoss AS 7




           © C2B2 Consulting Limited 2011
                      All Rights Reserved
Standalone vs Domain
• Standalone mode
  – Each JBoss server
    has its own
    configuration
  – Single JVM process
• Domain mode
  – Central configuration
    for multiple servers
  – Central control of
    multiple servers

             © C2B2 Consulting Limited 2011
                        All Rights Reserved
Standalone mode




             © C2B2 Consulting Limited 2011
                        All Rights Reserved
Standalone mode
• Similar to the old JBoss approach
  – Independent servers
• Centralised configuration
  – Based on profiles
  – configuration/standalone.xml
• Domain mode processes collapsed into a
  single JVM

           © C2B2 Consulting Limited 2011
                      All Rights Reserved
Single configuration
• All configuration is now centralised in the
  standalone.xml file
  – No sar archives with jboss-service.xml
  – No *-ds.xml files
  – No JMS destinations-service.xml files
  – No tomcat server.xml
• One-stop-shop for configuring your server

           © C2B2 Consulting Limited 2011
                      All Rights Reserved
Standalone.xml
<subsystem xmlns="urn:jboss:domain:threads:1.0">
      <scheduled-thread-pool name="remoting">
         <max-threads count="10" per-cpu="20"/>
         <keepalive-time time="10" unit="seconds"/>
      </scheduled-thread-pool>
      <bounded-queue-thread-pool name="jca-short-running" blocking="true">
         <core-threads count="10" per-cpu="20"/>
         <queue-length count="10" per-cpu="20"/>
        <max-threads count="10" per-cpu="20"/>
         <keepalive-time time="10" unit="seconds"/>
      </bounded-queue-thread-pool>
      <bounded-queue-thread-pool name="jca-long-running" blocking="true">
         <core-threads count="10" per-cpu="20"/>
         <queue-length count="10" per-cpu="20"/>
         <max-threads count="10" per-cpu="20"/>
         <keepalive-time time="10" unit="seconds"/>
      </bounded-queue-thread-pool>

                       © C2B2 Consulting Limited 2011
                                  All Rights Reserved
Datasources in standalone.xml
<subsystem xmlns="urn:jboss:domain:datasources:1.0">
       <datasources>
         <datasource jndi-name="java:/H2DS" enabled="true" use-java-context="true" pool-name="H2DS">
             <connection-url>jdbc:h2:mem:test;DB_CLOSE_DELAY=-1</connection-url>
             <driver-class>org.h2.Driver</driver-class>
            <driver>org.h2.Driver#1.2</driver>
             <pool></pool>
             <security>
                <user-name>sa</user-name>
               <password>sa</password>
             </security>
             <validation></validation>
             <timeout></timeout>
            <statement></statement>
         </datasource>
       </datasources>
       <drivers>
         <driver module="com.h2database.h2"/>
       </drivers>
    </subsystem>




                         © C2B2 Consulting Limited 2011
                                    All Rights Reserved
Deploying to standalone
• Drop the application
  into
  standalone/deployme
  nts
  – Deployment scanner
    runs periodically




            © C2B2 Consulting Limited 2011
                       All Rights Reserved
Domain mode




              © C2B2 Consulting Limited 2011
                         All Rights Reserved
Domain mode
• Multiple servers controlled centrally
• Multiple processes/JVMs per instance
  – Domain controller
  – Process controller
  – Server
• Domain can define multiple profiles
  – Different servers can run different profiles


            © C2B2 Consulting Limited 2011
                       All Rights Reserved
Domain mode
• Domain.xml
  – Configures all the profiles available in the
    domain
  – Standard across the domain
• Host.xml
  – Configures the host controller on a host
  – Unique to each host


             © C2B2 Consulting Limited 2011
                        All Rights Reserved
Domain mode processes




   © C2B2 Consulting Limited 2011
              All Rights Reserved
Host controller
• Process responsible for controlling the
  lifecycle of servers
• At most one host controller in a domain is
  the domain controller
  – Responsible for performing configuration and
    administration operations




           © C2B2 Consulting Limited 2011
                      All Rights Reserved
Process Controller
• Lightweight process responsible for
  starting and stopping other processes
  – Keep the parent process of a server very
    lightweight




           © C2B2 Consulting Limited 2011
                      All Rights Reserved
Deploying to domain mode
• Via the command line
  interface
[domain@localhost:9999 /] deploy
   ../../../../testsuite/smoke/target/
   deployments/test-
   deployment.sar --all-server-
   groups 'test-deployment.sar'
   deployed successfully.




                    © C2B2 Consulting Limited 2011
                               All Rights Reserved
Command line interface




              © C2B2 Consulting Limited 2011
                         All Rights Reserved
Command line interface
• Connects to the domain controller process
• Execute operations on the domain
  controller
• The format for the operation requests is
  – [node-type=node-name (,node-type=node-
    name)*] : operation-name [( [parameter-
    name=parameter-value (,parameter-
    name=parameter-value)*] )]

           © C2B2 Consulting Limited 2011
                      All Rights Reserved
Example Bullet Slide
• Bullet 1




             © C2B2 Consulting Limited 2011
                        All Rights Reserved
Thank you




© C2B2 Consulting Limited 2011
           All Rights Reserved

Mais conteúdo relacionado

Mais procurados

Auto scaling and dynamic routing for was liberty collectives
Auto scaling and dynamic routing for was liberty collectivesAuto scaling and dynamic routing for was liberty collectives
Auto scaling and dynamic routing for was liberty collectives
sflynn073
 
Planning For Catastrophe with IBM WAS and IBM BPM
Planning For Catastrophe with IBM WAS and IBM BPMPlanning For Catastrophe with IBM WAS and IBM BPM
Planning For Catastrophe with IBM WAS and IBM BPM
WASdev Community
 
JBoss started guide
JBoss started guideJBoss started guide
JBoss started guide
franarayah
 

Mais procurados (20)

Liberty management
Liberty managementLiberty management
Liberty management
 
Auto scaling and dynamic routing for was liberty collectives
Auto scaling and dynamic routing for was liberty collectivesAuto scaling and dynamic routing for was liberty collectives
Auto scaling and dynamic routing for was liberty collectives
 
AAI-2016 WebSphere Application Server Installation and Maintenance in the Ent...
AAI-2016 WebSphere Application Server Installation and Maintenance in the Ent...AAI-2016 WebSphere Application Server Installation and Maintenance in the Ent...
AAI-2016 WebSphere Application Server Installation and Maintenance in the Ent...
 
JBoss Application Server 7
JBoss Application Server 7JBoss Application Server 7
JBoss Application Server 7
 
Planning For Catastrophe with IBM WAS and IBM BPM
Planning For Catastrophe with IBM WAS and IBM BPMPlanning For Catastrophe with IBM WAS and IBM BPM
Planning For Catastrophe with IBM WAS and IBM BPM
 
JBoss started guide
JBoss started guideJBoss started guide
JBoss started guide
 
Jboss Tutorial Basics
Jboss Tutorial BasicsJboss Tutorial Basics
Jboss Tutorial Basics
 
JBOSS Training
JBOSS Training JBOSS Training
JBOSS Training
 
JBoss AS / EAP and Java EE6
JBoss AS / EAP and Java EE6JBoss AS / EAP and Java EE6
JBoss AS / EAP and Java EE6
 
AAI-1305 Choosing WebSphere Liberty for Java EE Deployments
AAI-1305 Choosing WebSphere Liberty for Java EE DeploymentsAAI-1305 Choosing WebSphere Liberty for Java EE Deployments
AAI-1305 Choosing WebSphere Liberty for Java EE Deployments
 
JBoss AS7 Reloaded
JBoss AS7 ReloadedJBoss AS7 Reloaded
JBoss AS7 Reloaded
 
XS Boston 2008 VT-D PCI
XS Boston 2008 VT-D PCIXS Boston 2008 VT-D PCI
XS Boston 2008 VT-D PCI
 
XS Japan 2008 Citrix English
XS Japan 2008 Citrix EnglishXS Japan 2008 Citrix English
XS Japan 2008 Citrix English
 
AAI-3218 Production Deployment Best Practices for WebSphere Liberty Profile
AAI-3218 Production Deployment Best Practices for WebSphere Liberty ProfileAAI-3218 Production Deployment Best Practices for WebSphere Liberty Profile
AAI-3218 Production Deployment Best Practices for WebSphere Liberty Profile
 
Instruction on creating a cluster on jboss eap environment
Instruction on creating a cluster on jboss eap environmentInstruction on creating a cluster on jboss eap environment
Instruction on creating a cluster on jboss eap environment
 
XS Japan 2008 Oracle VM English
XS Japan 2008 Oracle VM EnglishXS Japan 2008 Oracle VM English
XS Japan 2008 Oracle VM English
 
Conduct JBoss EAP 6 seminar
Conduct JBoss EAP 6 seminarConduct JBoss EAP 6 seminar
Conduct JBoss EAP 6 seminar
 
GlassFish v2 Clustering
GlassFish v2 ClusteringGlassFish v2 Clustering
GlassFish v2 Clustering
 
AAI-1304 Technical Deep-Dive into IBM WebSphere Liberty
AAI-1304 Technical Deep-Dive into IBM WebSphere LibertyAAI-1304 Technical Deep-Dive into IBM WebSphere Liberty
AAI-1304 Technical Deep-Dive into IBM WebSphere Liberty
 
WebSphere App Server vs JBoss vs WebLogic vs Tomcat
WebSphere App Server vs JBoss vs WebLogic vs TomcatWebSphere App Server vs JBoss vs WebLogic vs Tomcat
WebSphere App Server vs JBoss vs WebLogic vs Tomcat
 

Destaque

Fast and secure protocol (fasp)
Fast and secure protocol (fasp)Fast and secure protocol (fasp)
Fast and secure protocol (fasp)
Vikrant Arya
 
VMware Performance for Gurus - A Tutorial
VMware Performance for Gurus - A TutorialVMware Performance for Gurus - A Tutorial
VMware Performance for Gurus - A Tutorial
Richard McDougall
 

Destaque (17)

JBoss AS 7 from a user perspective
JBoss AS 7 from a user perspectiveJBoss AS 7 from a user perspective
JBoss AS 7 from a user perspective
 
Codefresh + BlazeMeter Webinar: Continuous Testing for Containerized Applicat...
Codefresh + BlazeMeter Webinar: Continuous Testing for Containerized Applicat...Codefresh + BlazeMeter Webinar: Continuous Testing for Containerized Applicat...
Codefresh + BlazeMeter Webinar: Continuous Testing for Containerized Applicat...
 
Case Study: Learn How Expeditors Uses APM as Both a Technology and Process T...
Case Study:  Learn How Expeditors Uses APM as Both a Technology and Process T...Case Study:  Learn How Expeditors Uses APM as Both a Technology and Process T...
Case Study: Learn How Expeditors Uses APM as Both a Technology and Process T...
 
Web UI test automation instruments
Web UI test automation instrumentsWeb UI test automation instruments
Web UI test automation instruments
 
How To Get The Most Out Of Your Hibernate, JBoss EAP 7 Application (Ståle Ped...
How To Get The Most Out Of Your Hibernate, JBoss EAP 7 Application (Ståle Ped...How To Get The Most Out Of Your Hibernate, JBoss EAP 7 Application (Ståle Ped...
How To Get The Most Out Of Your Hibernate, JBoss EAP 7 Application (Ståle Ped...
 
JBoss EAP / WildFly, State of the Union
JBoss EAP / WildFly, State of the UnionJBoss EAP / WildFly, State of the Union
JBoss EAP / WildFly, State of the Union
 
Introduction to External Objects and the OData Connector
Introduction to External Objects and the OData ConnectorIntroduction to External Objects and the OData Connector
Introduction to External Objects and the OData Connector
 
Fast and secure protocol (fasp)
Fast and secure protocol (fasp)Fast and secure protocol (fasp)
Fast and secure protocol (fasp)
 
Supercharged java 8 : with cyclops-react
Supercharged java 8 : with cyclops-reactSupercharged java 8 : with cyclops-react
Supercharged java 8 : with cyclops-react
 
7 tools for your devops stack
7 tools for your devops stack7 tools for your devops stack
7 tools for your devops stack
 
Microservices on Anypoint Platform
Microservices on Anypoint PlatformMicroservices on Anypoint Platform
Microservices on Anypoint Platform
 
Comparing JVM Web Frameworks - February 2014
Comparing JVM Web Frameworks - February 2014Comparing JVM Web Frameworks - February 2014
Comparing JVM Web Frameworks - February 2014
 
How to choose the right Integration Framework - Apache Camel (JBoss, Talend),...
How to choose the right Integration Framework - Apache Camel (JBoss, Talend),...How to choose the right Integration Framework - Apache Camel (JBoss, Talend),...
How to choose the right Integration Framework - Apache Camel (JBoss, Talend),...
 
VMware Performance for Gurus - A Tutorial
VMware Performance for Gurus - A TutorialVMware Performance for Gurus - A Tutorial
VMware Performance for Gurus - A Tutorial
 
Understanding DB2 Optimizer
Understanding DB2 OptimizerUnderstanding DB2 Optimizer
Understanding DB2 Optimizer
 
IBM MQ vs Apache ActiveMQ
IBM MQ vs Apache ActiveMQIBM MQ vs Apache ActiveMQ
IBM MQ vs Apache ActiveMQ
 
Memory management in Linux
Memory management in LinuxMemory management in Linux
Memory management in Linux
 

Semelhante a JBoss AS7 by Matt Brasier

WebSphere 6.1 Admin Course 1
WebSphere 6.1 Admin Course 1WebSphere 6.1 Admin Course 1
WebSphere 6.1 Admin Course 1
odedns
 
Shoretel 13 presentation
Shoretel 13 presentationShoretel 13 presentation
Shoretel 13 presentation
verderajaime
 
Through the JMX Window
Through the JMX WindowThrough the JMX Window
Through the JMX Window
C2B2 Consulting
 
Through the JMX Window
Through the JMX WindowThrough the JMX Window
Through the JMX Window
C2B2 Consulting
 

Semelhante a JBoss AS7 by Matt Brasier (20)

Monitoring VMware vFabric with Hyperic and Spring Insight
Monitoring VMware vFabric with Hyperic and Spring InsightMonitoring VMware vFabric with Hyperic and Spring Insight
Monitoring VMware vFabric with Hyperic and Spring Insight
 
Programming WebSockets with Glassfish and Grizzly
Programming WebSockets with Glassfish and GrizzlyProgramming WebSockets with Glassfish and Grizzly
Programming WebSockets with Glassfish and Grizzly
 
WildFly v9 - State of the Union Session at Voxxed, Istanbul, May/9th 2015.
WildFly v9 - State of the Union Session at Voxxed, Istanbul, May/9th 2015.WildFly v9 - State of the Union Session at Voxxed, Istanbul, May/9th 2015.
WildFly v9 - State of the Union Session at Voxxed, Istanbul, May/9th 2015.
 
WebSphere 6.1 Admin Course 1
WebSphere 6.1 Admin Course 1WebSphere 6.1 Admin Course 1
WebSphere 6.1 Admin Course 1
 
Shoretel 13 presentation
Shoretel 13 presentationShoretel 13 presentation
Shoretel 13 presentation
 
Through the JMX Window
Through the JMX WindowThrough the JMX Window
Through the JMX Window
 
WildFly AppServer - State of the Union
WildFly AppServer - State of the UnionWildFly AppServer - State of the Union
WildFly AppServer - State of the Union
 
Through the JMX Window
Through the JMX WindowThrough the JMX Window
Through the JMX Window
 
Why Upgrade To Windows Server 2012
Why Upgrade To Windows Server 2012Why Upgrade To Windows Server 2012
Why Upgrade To Windows Server 2012
 
Deploying SOA on the Oracle Database Appliance
Deploying SOA on the Oracle Database ApplianceDeploying SOA on the Oracle Database Appliance
Deploying SOA on the Oracle Database Appliance
 
Oracle Web Logic server
Oracle Web Logic serverOracle Web Logic server
Oracle Web Logic server
 
Weblogic 101 for dba
Weblogic  101 for dbaWeblogic  101 for dba
Weblogic 101 for dba
 
Best practices in IBM Operational Decision Manager Standard 8.7.0 topologies
Best practices in IBM Operational Decision Manager Standard 8.7.0 topologiesBest practices in IBM Operational Decision Manager Standard 8.7.0 topologies
Best practices in IBM Operational Decision Manager Standard 8.7.0 topologies
 
Oracle Coherence & WebLogic 12c Web Sockets: Delivering Real Time Push at Scale
Oracle Coherence & WebLogic 12c Web Sockets: Delivering Real Time Push at ScaleOracle Coherence & WebLogic 12c Web Sockets: Delivering Real Time Push at Scale
Oracle Coherence & WebLogic 12c Web Sockets: Delivering Real Time Push at Scale
 
Oracle SOA Suite Performance Tuning- UKOUG Application Server & Middleware SI...
Oracle SOA Suite Performance Tuning- UKOUG Application Server & Middleware SI...Oracle SOA Suite Performance Tuning- UKOUG Application Server & Middleware SI...
Oracle SOA Suite Performance Tuning- UKOUG Application Server & Middleware SI...
 
Server Side Technologies in Mobile Development
Server Side Technologies in Mobile DevelopmentServer Side Technologies in Mobile Development
Server Side Technologies in Mobile Development
 
1049: Best and Worst Practices for Deploying IBM Connections - IBM Connect 2016
1049: Best and Worst Practices for Deploying IBM Connections - IBM Connect 20161049: Best and Worst Practices for Deploying IBM Connections - IBM Connect 2016
1049: Best and Worst Practices for Deploying IBM Connections - IBM Connect 2016
 
12 Things about Oracle WebLogic Server 12c
12 Things	 about Oracle WebLogic Server 12c12 Things	 about Oracle WebLogic Server 12c
12 Things about Oracle WebLogic Server 12c
 
IBM Lotusphere 2012 Show301: Leveraging the Sametime Proxy to support Mobile ...
IBM Lotusphere 2012 Show301: Leveraging the Sametime Proxy to support Mobile ...IBM Lotusphere 2012 Show301: Leveraging the Sametime Proxy to support Mobile ...
IBM Lotusphere 2012 Show301: Leveraging the Sametime Proxy to support Mobile ...
 
Best practices in deploying IBM Operation Decision Manager Standard 8.8.0
Best practices in deploying IBM Operation Decision Manager Standard 8.8.0Best practices in deploying IBM Operation Decision Manager Standard 8.8.0
Best practices in deploying IBM Operation Decision Manager Standard 8.8.0
 

Mais de JBUG London

Compensating Transactions: When ACID is too much
Compensating Transactions: When ACID is too muchCompensating Transactions: When ACID is too much
Compensating Transactions: When ACID is too much
JBUG London
 

Mais de JBUG London (14)

London JBUG April 2015 - Performance Tuning Apps with WildFly Application Server
London JBUG April 2015 - Performance Tuning Apps with WildFly Application ServerLondon JBUG April 2015 - Performance Tuning Apps with WildFly Application Server
London JBUG April 2015 - Performance Tuning Apps with WildFly Application Server
 
WebSocketson WildFly
WebSocketson WildFly WebSocketson WildFly
WebSocketson WildFly
 
Hacking on WildFly 9
Hacking on WildFly 9Hacking on WildFly 9
Hacking on WildFly 9
 
Introduction to PicketLink
Introduction to PicketLinkIntroduction to PicketLink
Introduction to PicketLink
 
Extending WildFly
Extending WildFlyExtending WildFly
Extending WildFly
 
What's New in Infinispan 6.0
What's New in Infinispan 6.0What's New in Infinispan 6.0
What's New in Infinispan 6.0
 
Compensating Transactions: When ACID is too much
Compensating Transactions: When ACID is too muchCompensating Transactions: When ACID is too much
Compensating Transactions: When ACID is too much
 
London JBUG - Connecting Applications Everywhere with JBoss A-MQ
London JBUG - Connecting Applications Everywhere with JBoss A-MQLondon JBUG - Connecting Applications Everywhere with JBoss A-MQ
London JBUG - Connecting Applications Everywhere with JBoss A-MQ
 
Easy Integration with Apache Camel and Fuse IDE
Easy Integration with Apache Camel and Fuse IDEEasy Integration with Apache Camel and Fuse IDE
Easy Integration with Apache Camel and Fuse IDE
 
jBPM5 - The Evolution of BPM Systems
jBPM5 - The Evolution of BPM SystemsjBPM5 - The Evolution of BPM Systems
jBPM5 - The Evolution of BPM Systems
 
Arquillian - Integration Testing Made Easy
Arquillian - Integration Testing Made EasyArquillian - Integration Testing Made Easy
Arquillian - Integration Testing Made Easy
 
Infinispan from POC to Production
Infinispan from POC to ProductionInfinispan from POC to Production
Infinispan from POC to Production
 
Hibernate OGM - JPA for Infinispan and NoSQL
Hibernate OGM - JPA for Infinispan and NoSQLHibernate OGM - JPA for Infinispan and NoSQL
Hibernate OGM - JPA for Infinispan and NoSQL
 
JBoss jBPM, the future is now for all your Business Processes by Eric Schabell
JBoss jBPM, the future is now for all your Business Processes by Eric SchabellJBoss jBPM, the future is now for all your Business Processes by Eric Schabell
JBoss jBPM, the future is now for all your Business Processes by Eric Schabell
 

Último

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Último (20)

Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 

JBoss AS7 by Matt Brasier

  • 1. JBoss AS 7 Its JBoss, but not as we know it © C2B2 Consulting Limited 2011 All Rights Reserved
  • 2. Agenda • Introduction • About Me • JBoss 7 – All change • Standalone mode • Domain mode • Command line interface © C2B2 Consulting Limited 2011 All Rights Reserved
  • 3. Who am I? • Matt Brasier • Head of Consulting at C2B2 • 7 years experience in middleware consulting – 5 years using JBoss © C2B2 Consulting Limited 2011 All Rights Reserved
  • 4. C2B2 • Middleware services specialists – Consulting – Troubleshooting – Performance tuning – Managed services – Training • In the UK and beyond © C2B2 Consulting Limited 2011 All Rights Reserved
  • 5. Our Experience © C2B2 Consulting Limited 2011 All Rights Reserved
  • 6. JBoss 7 – All change © C2B2 Consulting Limited 2011 All Rights Reserved
  • 7. All Change • Major rewrite of the application server – Much bigger change than JBoss 4 to 5 • Key features – Module based services – Modular Service Container – Domain mode and Standalone mode – Everything has changed © C2B2 Consulting Limited 2011 All Rights Reserved
  • 8. Focus on configuration • Make JBoss a solid platform for enterprise deployment of server side java applications – Deployment and management across multiple servers • Focus on providing enterprise-scale features © C2B2 Consulting Limited 2011 All Rights Reserved
  • 9. Directory Structure • bin – Scripts for starting and stopping JBoss • docs – Documentation, schemas, examples etc • modules – Modules used by/available to the server • domain – Files for running in domain mode • standalone – Files for running in stand alone mode © C2B2 Consulting Limited 2011 All Rights Reserved
  • 10. Modules • Pluggable components of the application server – Referenced from profiles – module.xml • Basis of classloading in JBoss AS 7 © C2B2 Consulting Limited 2011 All Rights Reserved
  • 11. Standalone vs Domain • Standalone mode – Each JBoss server has its own configuration – Single JVM process • Domain mode – Central configuration for multiple servers – Central control of multiple servers © C2B2 Consulting Limited 2011 All Rights Reserved
  • 12. Standalone mode © C2B2 Consulting Limited 2011 All Rights Reserved
  • 13. Standalone mode • Similar to the old JBoss approach – Independent servers • Centralised configuration – Based on profiles – configuration/standalone.xml • Domain mode processes collapsed into a single JVM © C2B2 Consulting Limited 2011 All Rights Reserved
  • 14. Single configuration • All configuration is now centralised in the standalone.xml file – No sar archives with jboss-service.xml – No *-ds.xml files – No JMS destinations-service.xml files – No tomcat server.xml • One-stop-shop for configuring your server © C2B2 Consulting Limited 2011 All Rights Reserved
  • 15. Standalone.xml <subsystem xmlns="urn:jboss:domain:threads:1.0"> <scheduled-thread-pool name="remoting"> <max-threads count="10" per-cpu="20"/> <keepalive-time time="10" unit="seconds"/> </scheduled-thread-pool> <bounded-queue-thread-pool name="jca-short-running" blocking="true"> <core-threads count="10" per-cpu="20"/> <queue-length count="10" per-cpu="20"/> <max-threads count="10" per-cpu="20"/> <keepalive-time time="10" unit="seconds"/> </bounded-queue-thread-pool> <bounded-queue-thread-pool name="jca-long-running" blocking="true"> <core-threads count="10" per-cpu="20"/> <queue-length count="10" per-cpu="20"/> <max-threads count="10" per-cpu="20"/> <keepalive-time time="10" unit="seconds"/> </bounded-queue-thread-pool> © C2B2 Consulting Limited 2011 All Rights Reserved
  • 16. Datasources in standalone.xml <subsystem xmlns="urn:jboss:domain:datasources:1.0"> <datasources> <datasource jndi-name="java:/H2DS" enabled="true" use-java-context="true" pool-name="H2DS"> <connection-url>jdbc:h2:mem:test;DB_CLOSE_DELAY=-1</connection-url> <driver-class>org.h2.Driver</driver-class> <driver>org.h2.Driver#1.2</driver> <pool></pool> <security> <user-name>sa</user-name> <password>sa</password> </security> <validation></validation> <timeout></timeout> <statement></statement> </datasource> </datasources> <drivers> <driver module="com.h2database.h2"/> </drivers> </subsystem> © C2B2 Consulting Limited 2011 All Rights Reserved
  • 17. Deploying to standalone • Drop the application into standalone/deployme nts – Deployment scanner runs periodically © C2B2 Consulting Limited 2011 All Rights Reserved
  • 18. Domain mode © C2B2 Consulting Limited 2011 All Rights Reserved
  • 19. Domain mode • Multiple servers controlled centrally • Multiple processes/JVMs per instance – Domain controller – Process controller – Server • Domain can define multiple profiles – Different servers can run different profiles © C2B2 Consulting Limited 2011 All Rights Reserved
  • 20. Domain mode • Domain.xml – Configures all the profiles available in the domain – Standard across the domain • Host.xml – Configures the host controller on a host – Unique to each host © C2B2 Consulting Limited 2011 All Rights Reserved
  • 21. Domain mode processes © C2B2 Consulting Limited 2011 All Rights Reserved
  • 22. Host controller • Process responsible for controlling the lifecycle of servers • At most one host controller in a domain is the domain controller – Responsible for performing configuration and administration operations © C2B2 Consulting Limited 2011 All Rights Reserved
  • 23. Process Controller • Lightweight process responsible for starting and stopping other processes – Keep the parent process of a server very lightweight © C2B2 Consulting Limited 2011 All Rights Reserved
  • 24. Deploying to domain mode • Via the command line interface [domain@localhost:9999 /] deploy ../../../../testsuite/smoke/target/ deployments/test- deployment.sar --all-server- groups 'test-deployment.sar' deployed successfully. © C2B2 Consulting Limited 2011 All Rights Reserved
  • 25. Command line interface © C2B2 Consulting Limited 2011 All Rights Reserved
  • 26. Command line interface • Connects to the domain controller process • Execute operations on the domain controller • The format for the operation requests is – [node-type=node-name (,node-type=node- name)*] : operation-name [( [parameter- name=parameter-value (,parameter- name=parameter-value)*] )] © C2B2 Consulting Limited 2011 All Rights Reserved
  • 27. Example Bullet Slide • Bullet 1 © C2B2 Consulting Limited 2011 All Rights Reserved
  • 28. Thank you © C2B2 Consulting Limited 2011 All Rights Reserved