JBoss EAP6 High Availability
eBook - ePub

JBoss EAP6 High Availability

  1. 166 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

JBoss EAP6 High Availability

About this book

In Detail

High availability is a system design approach and associated service implementation which ensures that a prearranged level of operational performance will be met during a contractual measurement period. High availability is usually a system combined with many different components that achieve different goals. High availability cluster implementations attempt to build redundancy into a cluster to eliminate single points of failure.

JBoss EAP6 High Availability is the perfect guide for learning how to apply the newest technologies provided by JBoss to build your high availability system. With a clear explanation of the design of JBoss EAP6 and its clustering components, this book will help you customize each component to fulfill your specific requirements.

Throughout the course of this book, you will learn how to build high availability clusters using the projects provided by JBoss. The book begins with an introduction to the design of JBoss EAP6 and its uses. The next step will be to explore the two companion open source projects - mod_jk and mod_cluster. In this section, you will get to grips with the concept of load balancing with mod_jk and mod_cluster. You will also learn how to enable SSL in the clustering environment and how to configure session replication between EAP6 servers. Furthermore, the appendix section introduces you to some troubleshooting techniques for Wildfly.

Approach

An easy-to-follow guide full of hands-on examples of real-world administration tasks.

Who this book is for

JBoss EAP6 High Availability is ideal for those who want to learn how to use JBoss EAP6 to set up a cluster. Basic knowledge of Linux/Unix is required.

Trusted by 375,005 students

Access to over 1 million titles for a fair monthly price.

Study more efficiently using our study tools.

Information

Year
2013
Edition
1
eBook ISBN
9781783282432

JBoss EAP6 High Availability


Table of Contents

JBoss EAP6 High Availability
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers and more
Why Subscribe?
Free Access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. JBoss EAP6 Overview
Understanding high availability
JBoss EAP6 high availability
JBoss Web, Apache httpd, mod_jk, and mod_cluster
EJB session bean
JBossWS and RESTEasy
HornetQ
Hibernate and Narayana
JGroups and JBoss Remoting
Domain management
Installing JBoss EAP6
The JBoss EAP6 startup mode
The domain mode
The standalone mode
Starting JBoss EAP6 in the standalone mode
Understanding the startup process
The standalone.xml file
Alternative configuration files
The --help option
Configuration files
Starting JBoss EAP6 in the domain mode
The domain mode
Configuration files
The domain.xml file
The host.xml file
The domain-controller section
The servers section
XSD documents
Summary
2. Using JBoss EAP6
Configuring the JBoss EAP6 management console
Security realms
Setting up an admin account
Using the web-based management console
Deploying a project in the standalone mode
Testing
Deployment scanner
Introducing JBoss DMR
Deploying a project in the domain mode
The main-server-group
Testing
CLI Usages
Connecting to CLI
ls
cd
Basic commands
echo-dmr
read-operation
The GUI
Deploying a project
Summary
3. Setting Up a JBoss EAP6 Cluster
Designing a cluster
Setting up a server group
The main-server-group versus other-server-group
Server configuration
Setting up master
Configuring host.xml
Adding a user account for slave server
Setting up HornetQ
Setting up slave
Configuring host.xml
Configuring domain.xml on slave
Testing the server group
Running master
Running slave
Checking the server status
Project deployment
Deploying a project to other-server-group
Clustering with the standalone mode
Summary
4. Load Balancing with mod_jk
Preparing a machine to install Apache httpd
Compiling and installing Apache httpd
Downloading httpd
Compiling httpd
Installing httpd
Starting httpd
Stopping httpd
Configuring httpd
Compiling and installing mod_jk
Installing JK
Configuring JK
Configuring httpd-jk.conf
The workers.properties configuration
Testing the cluster
The jk-status module
Summary
5. Load Balancing with mod_cluster
The design of mod_cluster
Installing mod_cluster
Downloading mod_cluster
Compiling and installing mod_cluster
Configuring mod_cluster
Configuring httpd.conf
Configuring mod_cluster
Configuring EAP6
Testing the cluster
Starting up httpd
The protocol analysis
The advertising channel
The management channel
The connector channel analysis
Accessing the cluster
Failover
Stress testing
Summary
6. Clustering with SSL
Using SSL in JBoss EAP6
Enabling SSL in EAP6
Using SSL in the JBoss EAP6 cluster
Configuring JK with SSL
Generating a certificate for httpd
Configuring httpd to use certificates
Summary
7. Configuring mod_cluster with SSL
The design of mod_cluster
Enabling SSL for the mod_cluster management channel
An introduction to SSL mutual authentication
Configuring SSL mutual authentication
Creating a CA certificate
Creating a certificate for httpd
Setting up OpenSSL
Signing the httpd.csr file
Creating a certificate for EAP6
Configuring httpd
Configuring EAP6
Testing the configuration
Enabling SSL in the proxy channel
Summary
8. Developing Distributed Applications
Web session replication
CDI-session-scoped bean replication
Configuring sticky sessions with JK
Configuring sticky sessions with mod_cluster
Summary
Index

JBoss EAP6 High Availability

Copyright © 2013 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: December 2013
Production Reference: 1171213
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78328-243-2
www.packtpub.com
Cover Image by Aniket Sawant (

Table of contents

  1. JBoss EAP6 High Availability

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn how to download books offline
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 990+ topics, we’ve got you covered! Learn about our mission
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more about Read Aloud
Yes! You can use the Perlego app on both iOS and Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Yes, you can access JBoss EAP6 High Availability by Weinan Li in PDF and/or ePUB format, as well as other popular books in Computer Science & Application Development. We have over one million books available in our catalogue for you to explore.