JBoss AS 7 Configuration, Deployment, and Administration

Book description

This book is the complete guide to JBoss AS 7 for Java system administrators, developers, and application testers. It takes you through setting up a JBoss application in logical, progressive steps, supported by screenshots and clear directions.

  • 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

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.

Table of contents

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

Product information

  • Title: JBoss AS 7 Configuration, Deployment, and Administration
  • Author(s):
  • Release date: December 2011
  • Publisher(s): Packt Publishing
  • ISBN: 9781849516785