You are previewing GlassFish Administration.
O'Reilly logo
GlassFish Administration

Book Description

Administer and configure the GlassFish v2 application server

  • Get GlassFish installed and configured ready for use

  • Integrate GlassFish with popular Open Source products such as Open MQ, Open DS, and Apache Active MQ, and get them working together in a loosely-coupled manner

  • Configure resource types like JDBC, Java Connector Architecture (JCA), JavaMail Sessions, and Custom JNDI supported in GlassFish to simplify resource access and integration

  • Secure, monitor, troubleshoot, and tune your application server instance

  • In Detail

    To build a powerful production environment for your Java EE systems, you need a great application server, and the skills to manage it. This book gives you all that you are looking for.

    This book will help you gain the necessary skills to install, configure, tune, and troubleshoot GlassFish so that you can fully unleash its power. It will teach you how to use the GlassFish application server, with a special focus on administration tasks. It presents the GlassFish administrative tasks in a logical sequence, with each chapter focusing on a specific topic.

    Starting with installation and moving through configuration, this book takes a careful look at the administration console so that you get a complete understanding of GlassFish and its administrative features. It will help you understand how to deploy Java EE, Ruby on Rails and other supported applications to GlassFish, and how to configure the necessary resources for these applications. You will also learn how to maintain, tune, and troubleshoot your GlassFish server. Also includes a bonus chapter introducing Glassfish v3.

    Table of Contents

    1. GlassFish Administration
    2. Credits
    3. About the Author
    4. Acknowledgement
    5. About the Reviewers
    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. Errata
        2. Piracy
        3. Questions
    7. 1. Getting Started
      1. Introducing GlassFish
        1. A brief history of GlassFish
        2. Understanding essential features of GlassFish
          1. Strong and active community
          2. Developer friendliness
          3. High quality implementation
          4. Sophisticated administration capability
          5. Configuration flexibility
          6. High performance
      2. Installing GlassFish
        1. Preparing for the GlassFish installation
        2. Understanding system requirements for GlassFish
        3. Installing the JAR file distribution
          1. Installing the installer-based distribution
            1. Using the silent installation feature
        4. Verifying the GlassFish installation
      3. Summary
    8. 2. Understanding the GlassFish Server Architecture
      1. Understanding the architecture of GlassFish
        1. GlassFish architecture with the developer profile
          1. Server instances
          2. Administrative domains
          3. The architecture of the developer profile
        2. GlassFish architecture with the clustering profile
          1. Domain Administration Server (DAS)
          2. Clusters
          3. Node agents
          4. Using the clustering profile
        3. Using the enterprise profile
      2. Understanding the GlassFish deployment structure
        1. The directory structure of GlassFish
        2. Understanding Glassfish administrative domains
          1. The structure of the default domain
        3. Exploring essential domain configuration files
          1. Getting familiar with domain.xml
      3. Understanding the administration infrastructure of GlassFish
      4. Performing administrative tasks
        1. Using the GlassFish Admin Console
        2. Using the administration Command Line Utility (CLI) — asadmin
          1. The syntax of the asadmin utility
          2. Examples of running the asadmin utility
      5. Summary
    9. 3. Managing Applications on GlassFish
      1. Application management on GlassFish
        1. Java EE applications
        2. Non-Java EE based Java applications
        3. Non-Java applications
          1. Ruby, JRuby, and Rails
          2. Groovy and Grails
      2. Application deployment in GlassFish
        1. Application deployment features of GlassFish
          1. Automatic deployment
          2. Dynamic reload
          3. Directory based deployment
          4. Enable application clients through Java Web Start
          5. Support Plain Old Java Object (POJO) web service
          6. Configuring application libraries
        2. Application deployment tools in GlassFish
          1. Using the asadmin CLI utility
          2. Using the Admin Console
      3. Application deployment tutorial
        1. Updating the GlassFish installation
        2. Working with Java EE web applications and web services
          1. Working with POJO Web Services
        3. Working with enterprise applications and clients
        4. Working with JRuby and Rails applications
          1. Deploying JRuby on Rails application to GlassFish
          2. Configuring Rails thread pools
        5. Working with Grails applications
          1. Deploying Grails applications to GlassFish
      4. Summary
    10. 4. Configuring Containers and Essential Services
      1. Understanding the GlassFish container architecture
      2. Configuring the web container and HTTP service
        1. Configuring the web container
        2. Configuring HTTP services
          1. Configuring the HTTP service
            1. HTTP service properties
          2. Configuring virtual servers
          3. Configuring HTTP listeners
          4. Configurable properties of the HTTP listener
            1. Request processing process
      3. Configuring the EJB containers and ORB
        1. Configuring the EJB container
          1. Configurable properties of the EJB container
        2. Configuring the Object Request Broker (ORB)
        3. Configuring the IIOP listener
      4. Configuring the Application Client Container (ACC)
      5. Summary
    11. 5. Configuring GlassFish Resources
      1. Working with the naming service
        1. Naming references and binding information
      2. JDBC connection pools and data sources
        1. Installing the JDBC driver
        2. Creating and configuring JDBC connection pools
          1. Working with connection pool settings
          2. Creating JDBC resources
      3. Connector resources
        1. Creating a connector connection pool
      4. Configuring JavaMail resources
        1. Configuring the mail session
      5. Custom and external JNDI resources
        1. Working with custom resources
        2. Working with external JNDI resources
      6. Summary
    12. 6. Configuring JMS Resources
      1. JMS support on GlassFish
        1. Message-based systems and JMS
        2. GlassFish support for JMS
      2. Getting started with Open MQ
        1. The architecture of Open MQ
          1. The directory structure of Open MQ
      3. Configuring Open MQ
        1. Configuring Open MQ within GlassFish
          1. Configuring the Open MQ Runtime
          2. Configuring the JMS Resources
        2. Configuring Open MQ using standalone tools
          1. Starting and stopping the Open MQ broker
          2. Administering the Open MQ Broker using imqcmd
          3. Using the imqadmin administration console
      4. Configuring ActiveMQ for GlassFish
        1. Installing and configuring ActiveMQ
        2. Working with GlassFish generic resource adapter
          1. Configuring the GlassFish server classpath
          2. Deploying the generic resource adapter
          3. Creating the connector resources
      5. Summary
    13. 7. Securing GlassFish
      1. Reviewing essential security concepts
        1. Authentication
        2. Authorization
        3. Data integrity and confidentiality
        4. Auditing
      2. Understanding security features in GlassFish
        1. Configuring user authentication
        2. Security realms supported in GlassFish
          1. The file realm
          2. The certificate realm
          3. JDBC realm
          4. LDAP realm
          5. Solaris realm
        3. Configuring authentication realms
          1. Configuring a JDBC realm
          2. Configuring an LDAP realm
        4. Configuring authentication methods for applications
        5. Using Programmatic login
        6. Single sign-on
      3. Configuring authorization for GlassFish
        1. Using default principals and role mappings
      4. Configuring certificates and secure communication protocols
        1. Working with the keytool utility
        2. SSL and TLS support
          1. Configuring SSL and TLS
      5. Additional security concerns in GlassFish
        1. Administering passwords
          1. Working with administration related passwords
          2. Encrypting application resources related passwords
        2. Java ACC support
        3. Auditing
      6. Summary
    14. 8. Monitoring GlassFish
      1. Monitoring features of GlassFish
        1. Understanding the GlassFish monitoring service
        2. Configuring monitoring
        3. Using built-in monitoring tools
          1. Viewing monitoring data
        4. Monitoring web services
          1. Viewing web service statistics
        5. Using the Call Flow analysis
      2. Using self management rules
        1. Self management rules
        2. Configuring management rules
      3. Monitoring GlassFish with other utilities
        1. Monitoring GlassFish using JConsole
        2. Using the VisualVM tool
        3. Using GlassFish Enterprise Manager for monitoring
      4. Summary
    15. 9. Configuring Clusters and High Availability
      1. Configuring clusters for GlassFish
        1. Understanding GlassFish clusters
        2. Configuring clusters
          1. Obtaining cluster support
          2. Creating node agents
          3. Creating clusters
          4. Administering clusters
          5. Creating server instances for the cluster
      2. Configuring load balancers
        1. Configuring the load balancer plug-in for Apache web server
        2. Configuring GlassFish for load balancing
          1. Disabling (Quiescing) targets and applications
      3. Configuring high availability
        1. Working with in-memory replication
          1. Configuring in-memory replication
          2. Configuring the Group Member Service (GMS)
        2. HADB-based session failover
      4. Summary
    16. 10. Troubleshooting and Tuning GlassFish
      1. Troubleshooting the GlassFish environment
        1. Using the diagnostic service
        2. Working with thread dumps
          1. Generating thread dumps
          2. Analyzing thread dumps using TDA
      2. Tuning GlassFish Server for performance
        1. The NetBeans profiler
          1. Using the NetBeans profiler
        2. Using the GlassFish Performance Advisor
          1. Installing the Performance Advisor
          2. Using Performance Advisor management rules
          3. Using the Performance Advisor tuner
      3. Summary
    17. 11. Working with GlassFish 3
      1. Introducing GlassFish 3
        1. New features of GlassFish 3
          1. Supporting Java EE 6 profiles
          2. Modular design
          3. Support for dynamic and scripting languages
        2. Installing GlassFish 3
          1. More on the installer-based distribution
          2. Verifying the GlassFish installation
        3. Working with the GlassFish update tool
          1. Introducing IPS
          2. Using the update tool utilities
          3. About the standalone update tool
        4. Exploring the GlassFish directory structure
          1. The structure of the default domain: domain1
          2. Getting familiar with domain.xml
      2. Administering GlassFish 3
        1. Using the Admin Console
      3. Using the asadmin CLI utility
        1. Using the the HTTP interface of the asadmin utility
      4. Working with GlassFish containers
        1. Embedded GlassFish
      5. Deploying applications to GlassFish 3
        1. Application deployment features
          1. Directory based deployment
          2. Dynamic reload and automatic deployment support
          3. Configuring application libraries
        2. Application deployment tools on GlassFish
          1. Using the asadmin CLI utility
          2. Using the Admin Console
      6. Application deployment tutorial
        1. Working with Java EE web applications and web services
        2. Working with JRuby and Rails applications
          1. JRuby on Rails and GlassFish 3
          2. Deploying JRuby on Rails application to GlassFish
          3. Configuring Rails thread pools
          4. Running Rails application with embedded GlassFish
        3. Working with Grails applications
          1. Running Grails application with embedded GlassFish
          2. Deploying Grails applications to GlassFish
      7. Summary