As the Java EE standard has evolved and matured, the API has become increasingly rich and complex. The next generation of application servers needs to be modular and configurable to run only specific services or containers. JBoss AS 7 promises to meet those requirements but the configuration of a complex application server is composed of a mix of administrative and management tasks which often overlap, generating confusion.
JBoss AS 7 Configuration, Deployment and Administration will give you an expert's understanding of every component that makes up the JBoss application server, and will show you how to use them, helping you to cut down the learning curve for this exciting product dramatically.
This book will guide you through configuration, management, deployment, and advanced administration of JBoss AS 7 in a logical order to avoid the common pitfalls of setting up a new AS. At first, we will The book dives into the new application server structure and shows you how to install it. You will then learn how to configure the core AS services, including thread pools, the messaging system, and the transaction service. Finally, you will learn how to deploy and manage your applications through all possible configuration variants, including standalone or domain servers, through a single node or a cluster of application servers. and then tune the performance of your AS to achieve an efficient, indispensible application server. In the last part of this book, we will show also how to deliver your applications on the cloud as a service.
Chapter 1, Installing JBoss AS 7, will introduce you to the new application server, depicting its most important features and showing how to install it on your machine.
Chapter 2, Configuring the Application Server, covers the application server main configuration file and some core parts of it, such as like the Thread pool configuration and the Logging subsystem.
Chapter 3, Configuring Enterprise Services, will teach the reader how to model the core Java Enterprise services using the standalone configuration file.
Chapter 4, JBoss Web Server Configuration, completes the standalone server configuration by looking at the Web subsystem. This chapter also includes a full Java EE example which teaches the reader how to create and configure a Java EE 6 application on JBoss AS 7.
Chapter 5, Configuring a JBoss AS Domain, teaches the reader how to shape the domain server configuration and which is the criteria behind the choice of a standalone or domain server configuration.
Chapter 6, Deploying Applications on JBoss AS, covers all the nuts and bolts related to the application deployment. It also discusses the class loading mechanism which that is used by the application server when applications are loaded.
Chapter 7, Managing the Application Server, teaches the reader which management tools can be used to control the application server instances.
Chapter 8, Clustering, covers the AS 7 clustering capabilities that serve as an essential component to providing scalability and high availability to your applications.
Chapter 9, Load Balancing Web Applications, discusses the second important concern of clustering, which is the ability to make several servers participate in the same service and do the same work. In other words, it discusses how to load balance the number of requests across the available servers.
Chapter 10, Securing JBoss AS 7, covers the foundation of JBoss Security framework and how to secure Enterprise applications and the server management interfaces.
Chapter 11, Taking JBoss AS 7 into the cloud, shows how to deliver Java EE applications on a cloud environment using the Red Hat OpenShift platform.
Appendix, provides a quick reference for the most common commands and operations that can be used to manage the application server with the CLI.
Some prior knowledge of Java Enterprise is expected, but no prior knowledge of JBoss application server is needed. However, the book contains many hints to upgrading your existing JBoss AS configuration in the new server release, so affectionate JBoss users will surely gain better dividends from reading this book.
Java system administrators, developers, and application testers will benefit from this book. The brand new features in AS 7 mean that everyone can get something from this book, whether you have used JBoss AS or not.
In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.
Code words in text are shown as follows: " Next, you need to state the path to the JDBC driver resource and finally the module dependencies
."
A block of code is set as follows:
<module xmlns="urn:jboss:module:1.0" name="com.mysql"> <resources> <resource-root path="mysql-connector-java-5.1.17-bin.jar"/> </resources> <dependencies> <module name="javax.api"/> <module name="javax.transaction.api"/> </dependencies> </module>
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
Connection result = null;
try {
Context initialContext = new InitialContext();
DataSource datasource =
(DataSource)initialContext.lookup("java:/MySqlDS");
result = datasource.getConnection();
}
catch ( Exception ex ) {
log("Cannot get connection: " + ex);
}
Any command-line input or output is written as follows:
[disconnected /] connect
Connected to localhost:9999
[localhost:9999 /] :reload
New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: " Now, you should be able to see the JBoss AS 7 enlisted as a server by choosing New | Server from the upper menu and expanding the JBoss Community option:".
Feedback from our readers is always welcome. Let us know what you think about this book—what you liked or may have disliked. Reader feedback is important for us to develop titles that you really get the most out of.
To send us general feedback, simply send an e-mail to <[email protected]>
, and mention the book title via the subject of your message.
If there is a book that you need and would like to see us publish, please send us a note in the SUGGEST A TITLE form on www.packtpub.com or e-mail <[email protected]>
.
If there is a topic that you have expertise in and you are interested in either writing or contributing to a book on, see our author guide on www.packtpub.com/authors.
Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.
You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.
Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in the text or the code—we would be grateful if you would report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/support, selecting your book, clicking on the let us know link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded on our website, or added to any list of existing errata, under the Errata section of that title. Any existing errata can be viewed by selecting your title from http://www.packtpub.com/support.
Piracy of copyright material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works, in any form, on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.
Please contact us at <[email protected]>
with a link to the suspected pirated material.
We appreciate your help in protecting our authors, and our ability to bring you valuable content.
You can contact us at <[email protected]>
if you are having a problem with any aspect of the book, and we will do our best to address it.