Chapter 1. JBoss Introduction
- Goals of Enterprise Applications
- What is Java?
- What is Java EE?
- The Java EE Specifications
- Java EE 6 Web Profile
- Role of Application Server
- JBoss Family
- JBoss Application Server
- Relation to JBoss Enterprise Application Platform
- Differences Between JBoss AS and JBoss EAP
- Differences From Prior JBoss Versions
- Differences Between JBoss and Other Application Servers
- Wildfly
- JBoss Support and Documentation
Summary
Reference
Chapter 2. Installing and Running JBoss
- Installation Prerequisites
- Java Version
- JBoss Installation
- JBoss Installer
- Standalone and Domain Mode
- Directory Structure
- Important 'bin' Commands
- JBoss Configuration Profiles
- Starting JBoss
- Network Binding Behavior
- Welcome Page
- Standalone Base Directory
- Stopping JBoss
- Other Common Components
Summary
Reference
Chapter 3. JBoss Management Console
- Approaches to Managing JBoss Configurations
- Overview of JBoss Management Console
- Accessing Management Console
- add-user Command
- Console Interface
- Deployments
- Configuation
Runtime
Summary
Chapter 4. Java EE Applications in JBoss
- Java EE Components
- Java EE Vendor Specifications
- Containers
- Java EE Blueprint
- Java EE Application Structure
- EAR File
- What are Modules?
- Java EE Deployment Descriptors
- Web Module
- EJB Module
- Client Module
- JBoss Deployment Descriptors
- Code Annotations
- JBoss Application Deployment
- Deployment Scanner
- Deployment Scanner Marker Files
- CLI Deployment
- Deploying With Management Console
- Deployments in Configuration XML
- Deployment Overlay
Summary
Chapter 5. JBoss Architecture and Configuration
- JBoss Architecture
- Server Extensions
- Subsystems
- Subsystem Configuration
- Variables in Configuration Files
- Important System Properties
- Interfaces
- Controlling Network Binding
- Socket Binding
- Alternate Configurations
- Configuration Snapshots and History
- Reloading & Restarting JBoss
- JBoss Modules
- Use and Benefits of JBoss Modules
Summary
Chapter 6. Overview of JBoss Developer Studio
- JBoss Developer Studio
- Relation to Eclipse
- Java Versions
- Installing JBoss Developer Studio
- JBDS Stand-alone Installation
- JBoss Central
- JBoss Deployment Descriptors
- Defining Java Runtimes
- Defining JBoss Servers
- JBoss Server Runtime Properties
- Controlling Servers
- Relation Between Projects and Servers
- JBoss Deployment and Testing Options
- Updating Deployed Code
- Administration of JBoss Test Servers
Summary
Chapter 7. JBoss CLI Scripting
- CLI Overview
- Starting CLI
- Connecting CLI to a Server
- CLI Security
- CLI Commands & Operations
- CLI Commands
- Command History & Autocomplete
- JBoss Management Model
- Management Model Reference
- CLI Navigation
- CLI Operations
- CLI Read Operations
- Adding Resources with CLI
- CLI GUI
- CLI Configuration
- Batch Mode
- CLI Archive
Summary
Chapter 8. JBoss Logging
- JBoss Logging
- Logging Components
- Log Levels
- Loggers
- Logger Hierarchy
- Logging Code
- JBoss Logging Handlers
- Formatter
- Logging Configuration
- Modifying Log Level
- Creating Application Logs
- Log Viewer in Management Console
- HTTP Access Logs
- JBoss HTTP Access Log
Summary
Chapter 9. Connecting to a Database
- What is JDBC?
- JDBC Driver
- Typical Unmanaged JDBC Use
- Problems to Address
- Data Source Architecture
- JDBC Data Sources
- Typical Use of Data Source
- JPA and Data Source
- JBoss Datasources
- H2 Database
- Types of JBoss Data Sources
- Defining JBoss Datasources
- Adding JDBC Drivers
- Define Datasource
- Optional Datasource Properties
- Common Additional Properties
- Connection Pool Properties
- Validation Properties
- Timeout Properties
- Deploy Application Using Data Source
- Configuring Datasources Subsystem
- Configuration in Management Console
- Configuration with JBoss CLI
- Adding Datasource With CLI
- Deployment of *-ds.xml Files
- Data Source Failover
Summary
Chapter 10. JMS Messaging
- Messaging Intro
- Messaging Example
- Messaging Components
- Messaging Types
- JMS (Java Messaging Service)
- JMS Resources
- Message Driven Beans (MDB)
- HornetQ
- Configuring HornetQ
- JMS Connection Factories
- JMS Destinations
- "Match" Syntax
- Address Settings
- Security Settings
- MDB Destinations
- Other HornetQ Configuration
- Configuration in Management Console
- Configuration with JBoss CLI
Summary
Chapter 11. JBoss Security
- Security Resources
- JBoss Security Overview
- Management Interface Security
- Default Management Authentication
- Other Management Authentication Options
- TLS/SSL (Secure Sockets Layer)
- Digital Certificates
- Creating Self-Signed Certificate
- Enable TLS/SSL on JBoss Connections
- Enable HTTPS on Web Subsystem
- Configure HTTPS on Management Console
- Management Role-Based Access Control
- Standard RBAC Roles
- Enable RBAC
- Password Vault
- Configuring Password Vault
Summary
Chapter 12. Java EE Security in JBoss
- Authentication and Authorization
- Challenge Mechanism
- Java EE Security Roles
- JBoss Security Domain
- Login Modules
- Common Login Modules
- Configuring Security Domains
- Default Security Domain
- Default EJB Security
- UsersRoles Login Module
- Using a Database for Authentication
- Using an LDAP Server
- Chaining Multiple Login Modules
- Chaining Multiple Login Modules - Example
- Stacking Login Modules
- Stacking Login Modules - Example
- Hashed Passwords
- Testing Security
Summary
Chapter 13. Web Service Administration
- What is a Web Service?
- SOAP Overview
- WSDL Overview
- WSDL Syntax Overview
- Service Endpoint Definition
- Web Service Administration Tasks
- REST Web Services
Chapter 14. JBoss Web Services and Clients
- JBoss Web Service Deployment
- Controlling Generated WSDL Address
- Routing Web Service Requests
- JBoss Web Service Deployment Descriptor
- Writing Portable Web Service Clients for JBoss
- Using a Packaged WSDL
- Managed Web Service Clients
- JBoss @WebServiceRef Customization
- JBoss Web Service Tools
- Advanced JBoss Web Service Features
Summary
Reference
Chapter 15. Java Memory Management
- Java Heap Space
- Heap Size Limits
- Default Size Limits
- Garbage Collection Basics
- Allocation Failure (AF)
- OutOfMemoryError
- Memory Leak
- Free Space Threshold
- Garbage Collection Mechanism
- GC Performance Improvements
- Generational Garbage Collection
- Thread Local Heap (TLH)
- Memory Tuning Goals
- Steady State Heap Size
- Analyzing Steady State Behavior
- Effect of Initial Heap Size on GC
- Optimizing GC Duration
Summary
Chapter 16. JBoss Performance
- Monitoring Runtime JBoss Performance
- JAVA_OPTS Environment Variable
- Subsystem Tuning
Summary
Chapter 17. Complex JBoss Environments
- Considerations for Complex JBoss Environments
- Clusters
- Clustering Terminology
- Horizontal Scaling
- Vertical Scaling
- Options for Defining Clusters
- Load Balancing JBoss Servers
- HA Configurations
- JGroups
- JGroups Configuration
- Modifying Server Ports
- Running Multiple Instances of JBoss on Single Machine
Summary
Chapter 18. JBoss Domain Mode
- Domain Mode Overview
- Domain Mode Terminology
- Defining a Domain
- Elements of domain.xml
- Elements of host.xml
- Authentication of Host Controllers
- Steps to Establish a Domain Controller
- Steps to Establish a Host Controller
- Domain Controller Failure
- Server Group
- Changes to Management Console
- Changes to CLI
- Application Deployment in a Domain
Summary
Chapter 19. JBoss Web Server Integration
- Role of Web Server
- Virtual Hosts
- Virtual Host Root Context
- Supported Web Servers
- Apache httpd
- mod_cluster Overview
- Red Hat JBoss Web Server
- Configuring mod_cluster
- JBoss Configuration
- Sticky Sessions
- mod_cluster_manager Application
- SSL For mod_cluster and JBoss
Summary
Chapter 20. Distributed Applications
- Application State
- Distributed Failover
- HTTP Session State Replication
- Utilizing Session Replication
- Session Timeout
- Clustered Session EJBs
- Clustering Stateless Session Beans (EJB 3.x)
- Clustering Stateful Session Beans (EJB 3.x)
Summary
Lab Exercises
Lab 1. Install Java
Lab 2. JBoss Application Server Installation
Lab 3. Configure and Explore Management Console
Lab 4. Deploy Applications to JBoss
Lab 5. Explore Configuration
Lab 6. Work With JBoss CLI (Scripting)
Lab 7. JBoss Logging
Lab 8. Connect to External Database
Lab 9. Manage JBoss Messaging
Lab 10. Configure JBoss Security
Lab 11. Application Security (Optional)
Lab 12. Web Services (Optional)
Lab 13. JBoss Performance Monitoring (Optional)
Lab 14. Run Multiple JBoss Servers
Lab 15. Establish JBoss Domain
Lab 16. Configure mod_cluster Load Balancing
Lab 17. Modify Applications to Support Clustering