JBoss AS 7

11,833 views

Published on

JBoss AS 7

'It's JBoss, but not as we know it'

Presentation by Matt Brasier

1 Comment
6 Likes
Statistics
Notes
No Downloads
Views
Total views
11,833
On SlideShare
0
From Embeds
0
Number of Embeds
141
Actions
Shares
0
Downloads
377
Comments
1
Likes
6
Embeds 0
No embeds

No notes for slide

JBoss AS 7

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

×