Book Image

Mastering JBoss Enterprise Application Platform 7

By : Francesco Marchioni, Luigi Fugaro
Book Image

Mastering JBoss Enterprise Application Platform 7

By: Francesco Marchioni, Luigi Fugaro

Overview of this book

The JBoss Enterprise Application Platform (EAP) has been one of the most popular tools for Java developers to create modular, cloud-ready, and modern applications. It has achieved a reputation for architectural excellence and technical savvy, making it a solid and efficient environment for delivering your applications. The book will first introduce application server configuration and the management instruments that can be used to control the application server. Next, the focus will shift to enterprise solutions such as clustering, load balancing, and data caching; this will be the core of the book. We will also discuss services provided by the application server, such as database connectivity and logging. We focus on real-world example configurations and how to avoid common mistakes. Finally, we will implement the knowledge gained so far in terms of Docker containers and cloud availability using RedHat's OpenShift.
Table of Contents (20 chapters)
Mastering JBoss Enterprise Application Platform 7
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Preface

Configuring persistence


By configuring message persistence you gain message reliability. ActiveMQ Artemis persists its messages using its high-performance journal, which, in a Linux environment (kernel 2.6), can also benefit from using Linux's Asynchronous IO library (AIO).

The ActiveMQ Artemis journal is based on a set of files on a disk, instead of a database. Each file is pre-created and of a fixed size (configurable). Every time a message arrives, the operation is recorded, appended, on the journal. When a journal file is full, the broker automatically creates a new one.

A complete list of properties related to message persistence is as follows:

[[email protected]:9990 /] /subsystem=messaging-activemq/server=default:read-resource(attributes-only=true)
{
    "outcome" => "success",
    "result" => {
        "async-connection-execution-enabled" => true,
        "cluster-password" => "CHANGE ME!!",
        "cluster-user" => "ACTIVEMQ.CLUSTER.ADMIN.USER",
        "connection...