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

Reading logs with management interfaces


Log files can also be read or downloaded with the management interfaces of the application server. This is quite useful if you don't have an operating system account for inspecting your log files.

You have multiple options for reading logs with management interfaces. We will show at first how to do it with the CLI; next, we will use the REST services of the administration console to read it from a common browser.

Reading logs from the CLI

The logging subsystem includes a log-file resource that can be used to read the list of log files that have been created:

/subsystem=logging:read-children-names(child-type=log-file) 
{ 
    "outcome" => "success", 
    "result" => [ 
        "server.log", 
        "server.log.2015-02-12", 
        "server.log.2015-02-13" 
    ] 
} 

If you want to inspect a single log file, then you can use the read-log-file operation which is available on each log-file resource:

/subsystem...