JBoss AS 7 Configuration, Deployment and Administration

JBoss AS 7 Configuration, Deployment and Administration
eBook: $29.99
Formats: PDF, PacktLib, ePub and Mobi formats
save 15%!
Print + free eBook + free PacktLib access to the book: $79.98    Print cover: $49.99
save 37%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Table of Contents
Sample Chapters
  • Covers all JBoss AS 7 administration topics in a concise, practical, and understandable manner, along with detailed explanations and lots of screenshots
  • Uncover the advanced features of JBoss AS, including High Availability and clustering, integration with other frameworks, and creating complex AS domain configurations
  • Discover the new features of JBoss AS 7, which has made quite a departure from previous versions

Book Details

Language : English
Paperback : 380 pages [ 235mm x 191mm ]
Release Date : December 2011
ISBN : 1849516782
ISBN 13 : 9781849516785
Author(s) : Francesco Marchioni
Topics and Technologies : All Books, Enterprise Products and Platforms, JBoss, Open Source, Web Development

Table of Contents

Chapter 1: Installing JBoss AS 7
Chapter 2: Configuring the Application Server
Chapter 3: Configuring Enterprise Services
Chapter 4: JBoss Web Server Configuration
Chapter 5: Configuring a JBoss AS Domain
Chapter 6: Deploying Applications on JBoss AS 7
Chapter 7: Managing the Application Server
Chapter 8: Clustering
Chapter 9: Load-balancing Web Applications
Chapter 10: Securing JBoss AS 7
Chapter 11: Taking JBoss AS 7 in the Cloud
  • Chapter 1: Installing JBoss AS 7
    • Getting started with the application server
      • Installing the Java environment
      • Installing JBoss AS 7
      • Starting up JBoss AS
        • Connecting to the server with the command line interface
      • Stopping JBoss
        • Locating the shutdown script
        • Stopping JBoss on a remote machine
      • Restarting JBoss
      • Installing Eclipse environment
        • Installing JBoss tools
    • Exploring the application server file system
      • The bin folder
      • The docs folder
      • The domain folder
      • The standalone folder
      • The welcome-content folder:
      • The modules folder
      • Loading application server modules
    • Summary
    • Chapter 2: Configuring the Application Server
      • Configuring the application server
        • Extensions
        • Paths
        • Management interfaces
        • Profiles
        • Interfaces
        • Socket binding groups
        • System properties
        • Deployments
      • Configuring core subsystems
        • Configuring the Thread Pool subsystem
          • Configuring the Thread factory
          • Bounded Thread Pool
          • Unbounded Thread Pool
          • Queueless Thread Pool
          • Scheduled Thread Pool
      • Configuring the application server logging
        • Choosing your logging implementation
          • Configuring the logging subsystem
          • Configuring loggers
        • Configuring log4j in your application
      • Summary
      • Chapter 3: Configuring Enterprise Services
        • Configuring database connectivity
          • Installing the JDBC driver
          • Adding a local datasource
            • Configuring the connection pool
            • Configuring the statement cache
            • Adding an xa-datasource
          • A shortcut for installing a datasource
            • Choosing the right driver deployment strategy
          • Configuring a datasource programmatically
        • Configuring Enterprise Java Beans
          • Configuring the EJB components
            • Configuring Stateless Session Beans
            • Configuring Stateful session beans
            • Configuring the message driven beans
            • Configuring the Timer service
          • Configuring the messaging system
            • Configuring the transport
            • Configuring connection factories
            • Configuring JMS destinations
            • Customizing destinations with address settings
            • HornetQ persistence configuration
          • Configuring transactions
        • Summary
        • Chapter 4: JBoss Web Server Configuration
          • Configuring the Web container
            • Where is the Web server configuration?
              • Configuring the Web server connectors
            • Configuring the Web server resources
              • Configuring static resources
              • Configuring dynamic resources
          • Creating and deploying a web application
            • Creating a new Dynamic Web Project
              • Adding JSF components
              • Adding the EJB layer
              • Choosing the web context of the application
              • Deploying the web application
            • Adding a remote EJB client
            • Configuring data persistence
              • Configuring entities
              • Configuring persistence in other application archives
            • Switching to a different provider
          • Summary
          • Chapter 5: Configuring a JBoss AS Domain
            • Introducing the JBoss AS domain
              • Understanding the default domain configuration
              • Starting up and stopping a domain
            • Configuring the domain
              • Configuring the domain.xml file
              • Configuring the host.xml file
              • Configuring the management interfaces
              • Configuring the network interfaces
              • Configuring the domain controller
              • Configuring the JVM
                • Adding JVM options to a server definition
                • Order of precedence between elements
                • Configuring server nodes
              • Applying domain configuration
            • An example domain configuration
              • Changing the domain configuration at runtime
            • Summary
            • Chapter 6: Deploying Applications on JBoss AS 7
              • Deploying resources on the application server
                • The JAR archive
                • The WAR archive
                • The EAR archive
              • Deploying applications on JBoss AS standalone
                • Automatic application deployment
                  • Deploying applications on a custom folder
                  • Changing the behavior of the application scanner
                  • Deploying an application using the CLI
                  • Deploying an application using the Web admin console
                  • Deploying an application using the Eclipse environment
                • Manual application deployment
              • Deploying applications on a JBoss AS domain
                • Deploying to an AS domain using the CLI
                  • Deploy to all server groups
                  • Deploy to a single server group
                • Deploying to an AS domain using the Admin console
              • JBoss AS 7 classloading explained
                • Getting to know module names
                • Finding the isolation level
                  • Implicit dependencies:
                  • Explicit dependencies
                  • Setting up global modules
                • Advanced deployment strategies
                  • Setting up a single module dependency
                  • Excluding the server automatic dependencies
                  • Isolating sub-deployments
                  • Using Class-Path declaration to solve dependencies
              • Summary
              • Chapter 7: Managing the Application Server
                • The Command Line Interface (CLI)
                  • How to use the CLI
                    • Navigating through the resources and executing operations
                    • Executing commands with the CLI
                    • Getting help from the CLI
                  • Executing CLI scripts in batch
                    • Advanced batch commands
                  • Executing scripts in a file
                    • Redirecting non-interactive output
                  • Taking snapshots of the configuration
                    • What the application server saves for you
                    • Taking your own snapshots
                  • History of CLI
                • The new Web admin console
                  • Accessing the admin console
                  • Configuring server profiles
                    • Configuring datasources
                    • Configuring JMS destinations
                    • Configuring Socket Binding groups
                • CLI or Web console ?
                • Summary
                • Chapter 8: Clustering
                  • Setting up JBoss clustering
                    • Setting up a cluster of standalone servers
                      • Cluster of nodes running on different machines
                    • Setting up a cluster of domain servers
                  • Configuring JBoss clustering
                    • Configuring the JGroups subsystem
                      • Customizing the protocol stack
                  • Configuring the Infinispan subsystem
                    • Configuring session cache containers
                      • Choosing between replication and distribution
                    • Configuring hibernate cache
                      • Using replication for hibernate cache
                    • Advanced Infinispan configuration
                      • Configuring Infinispan threads
                      • Configuring Infinispan transport
                  • Clustering the messaging subsystem
                    • Configuring messaging credentials
                  • Summary
                  • Chapter 9: Load-balancing Web Applications
                    • Using Apache web server with JBoss AS 7
                      • Configuring mod_jk
                      • Configuring mod proxy
                    • Load-balancing with mod_cluster
                    • Installing mod_cluster
                    • Managing mod_cluster with the CLI
                    • Managing your web contexts with CLI
                    • Adding native management capabilities
                    • Managing web contexts using the configuration file
                    • Troubleshooting mod_cluster
                    • Testing mod_cluster
                    • Load-balancing between nodes
                      • Using load metrics
                      • Example setting dynamic metrics on a cluster
                    • Configuring clustering in your applications
                    • Clustering session beans
                    • Clustering entities
                    • Caching entities
                    • Caching queries
                    • Clustering web applications
                    • Summary
                    • Chapter 10: Securing JBoss AS 7
                      • Approaching Java security API
                        • JBoss AS 7 security subsystem
                        • Using the UserRoles login module
                        • Using the database login module
                          • Encrypting passwords
                        • Using an LDAP login module
                          • Connecting LDAP to JBoss AS
                        • Securing web applications
                        • Securing EJBs
                        • Securing web services
                      • Securing the AS 7 management interfaces
                      • Securing the transport layer
                        • Enabling the Secure Socket Layer on JBoss AS
                        • Certificate management tools
                        • Securing the HTTP communication with a self-signed certificate
                        • Securing the HTTP communication with certificate signed by a CA
                      • Summary
                      • Chapter 11: Taking JBoss AS 7 in the Cloud
                        • Introduction to cloud computing
                          • Cloud Computing versus Grid Computing
                          • Advantages of cloud computing
                          • Types of cloud computing
                          • Layers of cloud computing
                        • JBoss cloud infrastructure
                          • Starting with OpenShift Express
                          • Installing OpenShift client tools
                          • Create an OpenShift Express domain
                          • Create your first OpenShift Express application
                            • Watching what's happening on the server
                            • Managing AS 7 applications
                            • Configuring your applications on the cloud
                            • OpenShift storage management
                          • Moving to OpenShift Flex
                            • Creating a sample application
                            • Going beyond the basics of OpenShift Flex
                        • Summary
                        • Appendix
                          • Startup options
                          • General commands
                          • Domain mode
                          • Deploy commands
                          • JMS
                          • Datasources
                            • Datasources (using operation on resources)
                          • Mod_cluster
                          • Batch
                          • Snapshots

                          Francesco Marchioni

                          Francesco Marchioni is a Sun Certified Enterprise Architect employed for an Italian company based in Rome. He started learning Java in 1997 and since then has followed the path to the newest application program interfaces released by Sun. He joined the JBoss community in 2000, when the application server was running release 2.x.

                          He has spent many years as a software consultant, where he has envisioned many successful software migrations from vendor platforms to open source products such as JBoss AS, fulfilling the tight budget requirements of current times.

                          Over the past 5 years, he has been authoring technical articles for OReilly Media and is running an IT portal focused on JBoss products (http://www.mastertheboss.com).

                          He has authored the following titles:

                          • JBoss AS 5 Development, Packt Publishing (December 2009), which describes how to create and deploy Java Enterprise applications on JBoss AS (http://www.packtpub.com/jboss-as-5-development/book)
                          • AS 5 Performance Tuning, Packt Publishing (December 2010), which describes how to deliver fast and efficient applications on JBoss AS (http://www.packtpub.com/jboss-5-performance-tuning/book)
                          • JBoss AS 7 Configuration, Deployment, and Administration, Packt Publishing (December 2011), which covers all the aspects of the newest application server release (http://www.packtpub.com/jboss-as-7-configurationdeployment-administration/book)

                          He has also co-authored the book Infinispan Data Grid Platform, Packt Publishing (August 2012), with Manik Surtani, which covers all the aspects related to the configuration and development of applications using the Infinispan Data Grid Platform (http://www.packtpub.com/infinispan-data-grid-platform/book).

                          Sorry, we don't have any reviews for this title yet.

                          Code Downloads

                          Download the code and support files for this book.

                          Submit Errata

                          Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.


                          - 5 submitted: last submission 03 Jan 2013

                          Errata type: Typo | Page number: 20

                          In the 1st paragraph, the sentence is "... which can be used to customize JBoss' bootstrap processIf you are going to use ..." It should be "... which can be used to customize JBoss' bootstrap process. If you are going to use ..."

                          Errata type: Code | Page Number: 36

                          The XML sample at the bottom of page 35 uses thread-name-pattern="My Thread %t". The "Pattern Output" table on page 36 should also include a "%t" pattern. Description: Emits the per-factory Thread sequence number.

                          Errata type: Language | Page Number: 61

                          ...the application server by itself cannot *deduct* the information... It should be "deduce".     

                          Errata type: Technical | Page Number: 15

                          The book says the client app for the server is named jboss-admin.sh, but it has changed to jboss-cli.sh since the 7.1.1 final release.     

                          Errata type: Others | Page number: 54 | Errata date: 13 Dec 2012

                          Note mentioned about section "Installing the driver as a deployment unit". but this section is not found anywhere.It refers to the section "A shortcut for installing a datasource" on page 59


                          Sample chapters

                          You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

                          Frequently bought together

                          JBoss AS 7 Configuration, Deployment and Administration +    Oracle APEX 4.2 Reporting =
                          50% Off
                          the second eBook
                          Price for both: €34.10

                          Buy both these recommended eBooks together and get 50% off the cheapest eBook.

                          What you will learn from this book

                          • Understand the new AS infrastructure and how to install, start, and stop the AS 7
                          • Configure the core AS 7 services, including database connections, the JMS subsystem, and transaction service
                          • Manage the application server using the Admin Console and the new Command Line Interface
                          • Deploy applications on the AS, using all the available tools and instruments.
                          • Configure and run a cluster of application server nodes and provide high availability to your applications
                          • Secure the application server and the applications running on it
                          • Learn how to take your JBoss AS 7 applications in the cloud by leveraging the OpenShift platform-as-a-service
                          • Tune and slim the application server


                          In Detail

                          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 dramatically cut down the learning curve for this exciting product.

                          This book will guide you through configuration, management, deployment and advanced administration in a logical order to avoid the common pitfalls of setting up a new AS. The book dives into the new application server structure and shows you how to install it. You will 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 and then tune the performance of your AS to achieve an efficient, indispensible application server.


                          You will be guided through setting up a JBoss application server in a logical order, with plenty of screenshots and practical instructions to help.

                          Who this book is for

                          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 before or not.

                          Code Download and Errata
                          Packt Anytime, Anywhere
                          Register Books
                          Print Upgrades
                          eBook Downloads
                          Video Support
                          Contact Us
                          Awards Voting Nominations Previous Winners
                          Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
                          Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software