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

Deployment in standalone mode


We will begin by deploying an application in a standalone EAP. First we will see how the application server takes care of your bundles automatically just by dropping them into the deployments folder. We will then see how you can manage the life cycle of your application by using marker files.

Automatic deployment

To deploy an application, JBoss provides a deployment folder named deployment, where a service called DeploymentScanner waits for changes.

Let's start an EAP instance by issuing the following command:

$JBOSS_HOME/bin/standalone.sh 

Once an EAP is started, copy the helloworld application into the standalone/deployments folder of JBOSS_HOME. After a few seconds you should see similar entries in your log file:

10:56:14,771 INFO  [org.jboss.as.repository] (DeploymentScanner-threads -
1) WFLYDR0001: Content added at location /opt/rh/jboss-eap-7.0/ch04/data/content/fe/044dec09339f4837635b266fd7e5344a4f6b75/content
10:56:14,795 INFO  [org.jboss.as...