WildFly Cookbook

Over 90 hands-on recipes to configure, deploy, and manage Java-based applications using WildFly

WildFly Cookbook

This ebook is included in a Mapt subscription
Luigi Fugaro

1 customer reviews
Over 90 hands-on recipes to configure, deploy, and manage Java-based applications using WildFly
$0.00
$43.99
$54.99
$29.99p/m after trial
RRP $43.99
RRP $54.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 4,000+ eBooks & Videos
  • 40+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Code Files
Preview in Mapt

Book Details

ISBN 139781784392413
Paperback604 pages

Book Description

With the increasing demand for distributed systems for Java applications, WildFly offers a robust platform on which to deploy and manage your services. As a matter of fact, WildFly 9 is a fully certified Java EE 7 platform and provides remote management tools, such as the redesigned Admin Console and the new and powerful Command Line Interface (CLI).

With practical and accessible material, you will begin by learning to set up your WildFly runtime environment, and progress to selecting appropriate operational models, managing subsystems, and conquering the CLI. You will then walk through the different balancing and clustering techniques, simultaneously learning about role-based access control and then developing applications targeting WildFly and Docker.

Table of Contents

Chapter 1: Welcome to WildFly!
Introduction
Software prerequisites
Downloading and installing WildFly
Understanding WildFly's directory overview
Running WildFly in standalone mode
Running WildFly in domain mode
Running WildFly as a service
Chapter 2: Running WildFly in Standalone Mode
Introduction
Running WildFly from a custom configuration folder
Binding WildFly onto a custom port
Binding WildFly onto a custom IP
Configuring multiple WildFly instances to run on the same machine with different ports
Configuring multiple WildFly instances to run on the same machine with different IPs
Managing applications using the deployments folder
Connecting to the CLI
Checking the server-state via the CLI
Deploying an application via the CLI
Undeploying an application via the CLI
Executing commands in batch mode via the CLI
Reloading a server configuration via the CLI
Shutting down and restarting an instance via the CLI
Suspending and resuming an instance via the CLI
Backing up your configuration file via the CLI
Chapter 3: Running WildFly in Domain Mode
Introduction
Running domain mode
Connecting the host controller to the domain controller
Stopping and starting server groups via the Web Console
Stopping and starting your server groups via the CLI
Stopping and starting your servers via the CLI
Deploying and undeploying an application to a specific server group via Web Console
Deploying and undeploying an application to a specific server group via the CLI
Checking server status via the CLI
Chapter 4: Managing the Logging Subsystem with the CLI
Introduction
Creating a file-handler logging
Creating a periodic-rotating file-handler
Creating a size-rotating file-handler
Defining asynchronous handlers
Creating a syslog-handler
Listing and reading log files
Using a different logging implementation
Chapter 5: Managing the Datasource Subsystems with the CLI
Introduction
Preparing a non JDBC-4 compliant driver
Creating and removing a datasource
Checking the datasource connection
Reading the datasource's statistics
Setting a connection pool
Creating and removing XA-Datasource
Chapter 6: Clustering WildFly
Introduction
Creating a cluster in standalone mode
Creating separate clusters in standalone mode
Creating a cluster in domain mode
Creating separate clusters in domain mode
Creating a cluster via TCP
Testing the UDP protocol with the JGroups tool
Chapter 7: Load Balancing WildFly
Introduction
Installing and configuring Apache HTTPD
Installing and configuring mod_cluster for Apache
Balancing WildFly using auto advertising – UDP
Balancing WildFly using a list of available balancers – TCP
Balancing using the HTTP connector instead of AJP
Preserve WildFly workers while restarting Apache
Balancing the same context for different applications
Rolling updates
Chapter 8: Commanding the CLI
Introduction
Invoking CLI commands
Checking the WildFly version
Checking WildFly operational mode
Getting the OS version
Getting the JVM version
Checking the JVM options
Checking JVM memories – heap-size and all
Checking the server status
Checking the JNDI tree view
Invoking CLI commands declared in an external file
Chapter 9: Conquering the CLI
Introduction
Invoking server stop, start, and reload
Invoking server group stop, start, restart, and reload
Creating a server group
Creating a server
Managing an application – deploy, undeploy
Chapter 10: Hardening the WildFly Communication
Introduction
Securing WildFly using HTTPS
Securing a specific application using HTTPS
Securing the WildFly console using HTTPS
Securing domain and host controller communication using HTTPS
Chapter 11: Hardening the WildFly Configuration
Introduction
Delivering your configuration using property files
Securing your configuration hashing passwords
Securing and protecting passwords using a vault
Chapter 12: Role-based Access Control with WildFly
Introduction
Switching between simple and RBAC providers
Managing users, groups, and their role mapping
Setting a predefined role to all authenticated users
Granting user access by server group or host – scoped roles
Integrating with OpenLDAP
Chapter 13: Messaging with WildFly
Introduction
Running the messaging system using HornetQ
Sending and receiving messages to/from a JMS queue destination
Clustering HornetQ using a shared store
Clustering HornetQ using message replication
Chapter 14: WildFly into the Cloud with OpenShift
Introduction
Registering to OpenShift Online
Installing the WildFly cartridge for our first deployment
Taking control of your WildFly server via SSH
Deploying your code to OpenShift Online
Chapter 15: Using WildFly with Docker
Introduction
Setting up the Docker environment
Running WildFly in Docker
Logging WildFly outside Docker
Running WildFly in domain mode in Docker using different Docker containers

What You Will Learn

  • Run WildFly in both standalone and domain operational modes
  • Adopt the right profile for your applications
  • Configure and manage your WildFly instances with the Admin Console
  • Utilize the CLI to deploy, configure, stop, and start services
  • Develop HA systems with Apache HTTPD, WildFly, and ModCluster
  • Assemble TCP or UDP WildFly clusters
  • Deploy your application to the cloud with OpenShift Online
  • Use Linux containers with Docker to ship your clean, tested, and ready-to-use WildFly environment

Authors

Table of Contents

Chapter 1: Welcome to WildFly!
Introduction
Software prerequisites
Downloading and installing WildFly
Understanding WildFly's directory overview
Running WildFly in standalone mode
Running WildFly in domain mode
Running WildFly as a service
Chapter 2: Running WildFly in Standalone Mode
Introduction
Running WildFly from a custom configuration folder
Binding WildFly onto a custom port
Binding WildFly onto a custom IP
Configuring multiple WildFly instances to run on the same machine with different ports
Configuring multiple WildFly instances to run on the same machine with different IPs
Managing applications using the deployments folder
Connecting to the CLI
Checking the server-state via the CLI
Deploying an application via the CLI
Undeploying an application via the CLI
Executing commands in batch mode via the CLI
Reloading a server configuration via the CLI
Shutting down and restarting an instance via the CLI
Suspending and resuming an instance via the CLI
Backing up your configuration file via the CLI
Chapter 3: Running WildFly in Domain Mode
Introduction
Running domain mode
Connecting the host controller to the domain controller
Stopping and starting server groups via the Web Console
Stopping and starting your server groups via the CLI
Stopping and starting your servers via the CLI
Deploying and undeploying an application to a specific server group via Web Console
Deploying and undeploying an application to a specific server group via the CLI
Checking server status via the CLI
Chapter 4: Managing the Logging Subsystem with the CLI
Introduction
Creating a file-handler logging
Creating a periodic-rotating file-handler
Creating a size-rotating file-handler
Defining asynchronous handlers
Creating a syslog-handler
Listing and reading log files
Using a different logging implementation
Chapter 5: Managing the Datasource Subsystems with the CLI
Introduction
Preparing a non JDBC-4 compliant driver
Creating and removing a datasource
Checking the datasource connection
Reading the datasource's statistics
Setting a connection pool
Creating and removing XA-Datasource
Chapter 6: Clustering WildFly
Introduction
Creating a cluster in standalone mode
Creating separate clusters in standalone mode
Creating a cluster in domain mode
Creating separate clusters in domain mode
Creating a cluster via TCP
Testing the UDP protocol with the JGroups tool
Chapter 7: Load Balancing WildFly
Introduction
Installing and configuring Apache HTTPD
Installing and configuring mod_cluster for Apache
Balancing WildFly using auto advertising – UDP
Balancing WildFly using a list of available balancers – TCP
Balancing using the HTTP connector instead of AJP
Preserve WildFly workers while restarting Apache
Balancing the same context for different applications
Rolling updates
Chapter 8: Commanding the CLI
Introduction
Invoking CLI commands
Checking the WildFly version
Checking WildFly operational mode
Getting the OS version
Getting the JVM version
Checking the JVM options
Checking JVM memories – heap-size and all
Checking the server status
Checking the JNDI tree view
Invoking CLI commands declared in an external file
Chapter 9: Conquering the CLI
Introduction
Invoking server stop, start, and reload
Invoking server group stop, start, restart, and reload
Creating a server group
Creating a server
Managing an application – deploy, undeploy
Chapter 10: Hardening the WildFly Communication
Introduction
Securing WildFly using HTTPS
Securing a specific application using HTTPS
Securing the WildFly console using HTTPS
Securing domain and host controller communication using HTTPS
Chapter 11: Hardening the WildFly Configuration
Introduction
Delivering your configuration using property files
Securing your configuration hashing passwords
Securing and protecting passwords using a vault
Chapter 12: Role-based Access Control with WildFly
Introduction
Switching between simple and RBAC providers
Managing users, groups, and their role mapping
Setting a predefined role to all authenticated users
Granting user access by server group or host – scoped roles
Integrating with OpenLDAP
Chapter 13: Messaging with WildFly
Introduction
Running the messaging system using HornetQ
Sending and receiving messages to/from a JMS queue destination
Clustering HornetQ using a shared store
Clustering HornetQ using message replication
Chapter 14: WildFly into the Cloud with OpenShift
Introduction
Registering to OpenShift Online
Installing the WildFly cartridge for our first deployment
Taking control of your WildFly server via SSH
Deploying your code to OpenShift Online
Chapter 15: Using WildFly with Docker
Introduction
Setting up the Docker environment
Running WildFly in Docker
Logging WildFly outside Docker
Running WildFly in domain mode in Docker using different Docker containers

Book Details

ISBN 139781784392413
Paperback604 pages
Read More
From 1 reviews

Read More Reviews