You are previewing Oracle WebLogic Server 12c Administration Handbook.
O'Reilly logo
Oracle WebLogic Server 12c Administration Handbook

Book Description

Best Practices for Oracle WebLogic Server 12c Configuration and Administration

Maintain a high-performance enterprise application framework using the detailed information in this authoritative resource. Through expert instruction and real-world examples, Oracle WebLogic Server 12c Administration Handbook fully explains the latest management tools and techniques. Learn how to work from the Oracle WebLogic Server Administration Console or command line, configure servers and clusters, deploy applications, and optimize application performance. Tuning, troubleshooting, and load balancing are thoroughly covered in this Oracle Press guide.

  • Install Oracle WebLogic Server 12c or perform an upgrade
  • Manage domains, server instances, networks, and virtual hosts
  • Work with the WebLogic Scripting Tool feature and Node Manager
  • Build custom network channels and resource adapters
  • Monitor performance with the WebLogic Diagnostics Framework feature
  • Prioritize requests using Oracle WebLogic Server Work Managers
  • Configure Oracle WebLogic clusters and migrate servers and services
  • Deploy web applications, Enterprise JavaBeans, and Java EE modules
  • Establish security realms and authenticate and authorize users
  • Allocate memory, optimize throughput, and tune the Java Virtual Machine

Table of Contents

  1. Cover
  2. Title Page
  3. Copyright Page
  4. Dedication
  5. Contents at a Glance
  6. Contents
  7. Acknowledgments
  8. Introduction
  9. 1 Installing Oracle WebLogic Server 12c and Using the Management Tools
    1. Oracle WebLogic Server: An Overview
      1. Oracle WebLogic Server 12c Product Set
      2. Terminology
    2. Important WebLogic Server Concepts
      1. Execute Threads and Queues
      2. Implementing the JMX API and MBeans
      3. Development and Production Mode
      4. Listen Ports and Listen Threads
      5. Choosing a JVM
      6. Using Web Server Plug-Ins
      7. Management APIs
    3. Installing Oracle WebLogic Server 12c
      1. Installation Prerequisites
      2. Installation Modes
      3. Installation Procedure
      4. Checking the Installed Features
      5. Reinstalling WebLogic Server
      6. Exploring the Installation Directories
    4. The WebLogic Server Sample Applications
      1. Key Environment Files
      2. Starting the Examples Server
      3. Stopping the Server
    5. Upgrading Oracle WebLogic Server
      1. Upgrade Tools
      2. Upgrade Procedures
      3. Reconfiguring a WebLogic Domain
      4. Using OPatch to Patch Oracle WebLogic Server
    6. Using the Administration Console
      1. Logging In to the Administration Console
      2. Navigating the Administration Console
      3. Using the Change Center
      4. Working with the Administration Console
    7. A Brief Introduction to the Node Manager
    8. Using the WebLogic Scripting Tool (WLST)
      1. Offline and Online WLST
      2. Invoking WLST
      3. Using WLST in Script Mode
      4. Connecting to a WebLogic Server Instance
      5. Disconnecting from the Server
      6. Using the Help Command
      7. Key WLST Command Groups
    9. Summary
  10. 2 Administering WebLogic Server Instances
    1. Managing the Servers
      1. Administration and Managed Servers
      2. Admin Server Failures and the Managed Servers
      3. Selecting the Start Mode for a Server
      4. Configuring Class Caching
      5. Setting the Environment Variables
      6. Configuring Server Instances with the Administration Console
      7. Providing User Credentials
    2. Using the Node Manager to Manage Servers
      1. Node Manager Capabilities
      2. Default Node Manager Configuration in WebLogic Server 12c
      3. Starting the Node Manager
      4. Stopping the Node Manager
      5. Monitoring the Node Manager Logs
      6. Running the Node Manager as a Windows Service
      7. Configuring the Node Manager
      8. The Node Manager Domains File
      9. Configuring Node Manager Using WLST Offline
      10. Key WLST Node Manager Commands
    3. Lifecycle of WebLogic Server Instances
      1. The STARTING, STANDBY, and RUNNING States
      2. The SHUTDOWN, SUSPENDING, and FAILED States
      3. Self-Health Monitoring
      4. How the Server Deals with the FAILED State
      5. Shutdown Command Options
    4. Starting and Stopping WebLogic Server
      1. Server Messages
      2. Server Logs
      3. Using a Startup Script to Start and Stop Servers
      4. Using the java weblogic.Server Command
      5. Configuring Server Attributes with weblogic.Server
      6. Using the Ant Tool to Manage Servers
      7. Managing Servers from the Administration Console
      8. Using WLST Without the Node Manager
      9. Using WLST with the Node Manager
    5. Setting Up a WebLogic Server Instance as a Windows Service
      1. Setting Up the Service
      2. Setting Up the Managed Server as a Windows Service
      3. Starting and Stopping the Service
      4. Changing Startup Credentials for a Service
      5. Removing a Service
    6. Dealing with WebLogic Server Failures
      1. Starting a Failed Admin Server
      2. Managed Server Independence (MSI) Mode
      3. Deleting Servers
    7. Summary
  11. 3 Creating and Configuring WebLogic Server Domains
    1. Structure of a WebLogic Server Domain
      1. WebLogic Server Instances
      2. WebLogic Server Clusters
      3. Domain Resources
      4. Domain Restrictions
      5. Domain Directories
    2. Understanding Domain Configuration Changes
      1. The Domain Configuration File: config.xml
      2. Modifying Domain Configuration
      3. Using the Lock & Edit Mechanism in the Administration Console
      4. Tracking Changes with Configuration Auditing
      5. Making a Domain Read-Only
      6. Controlling the Logging of Configuration Changes
    3. Creating Domain Templates
      1. Templates Offered by WebLogic Server
      2. Creating a Custom Domain Template
      3. Creating a Custom Extension Template
      4. Using Server Templates
      5. Creating Templates with the pack and unpack Commands
    4. Creating a WebLogic Server Domain
      1. Using the weblogic.Server Command
      2. Using the Configuration Wizard to Create a Domain
      3. Extending Domains
      4. Creating a Domain with WLST Commands
      5. Selecting the Startup Mode for the WebLogic Domain
    5. Advanced Domain Configuration Options
      1. Configuring the Admin Server
      2. Configuring Managed Servers
      3. Cloning a Managed Server
      4. Configuring Clusters
      5. Assigning Managed Servers to Clusters
      6. Configuring Machines
      7. Targeting Deployments to Clusters or Servers
      8. Configuring a Persistent Store
    6. Configuring Server Environments
      1. Configuring the Network
      2. Configuring WebLogic Server as a Web Server
      3. Setting a Default Web Application
      4. Preventing POST Denial of Service Attacks
      5. Configuring HTTP Logging
      6. Proxying Requests to Other Web Servers
      7. Configuring the WebLogic Server Proxy Plug-Ins
      8. Configuring Virtual Hosts
    7. Protecting Domain Data
      1. Backing Up a Domain’s config.xml File
      2. Backing Up the Security Data
    8. Summary
  12. 4 Configuring Naming, Transactions, Connections, and Messaging
    1. JNDI and Naming and Directory Services
      1. JNDI Architecture
      2. Viewing the WebLogic Server JNDI Tree
      3. Using JNDI to Connect a Java Client to a Server
      4. Clustered JNDI
    2. Configuring Transactions
      1. Transactions and the ACID Test
      2. Types of WebLogic Transactions
      3. Transactions and the Two-Phase Commit
      4. Configuring WebLogic JTA
      5. Monitoring Transaction Services
      6. Transaction Logs and Transaction Recovery
    3. Configuring Database Connections
      1. JDBC Architecture
      2. Enabling XA in the Database
      3. Data Sources
      4. Understanding WebLogic JDBC Configuration
      5. Using a JDBC System Module
      6. Creating a Generic Data Source
      7. Configuring a Multi Data Source
      8. Using a GridLink Data Source
      9. Configuring a JDBC Data Source
      10. Managing Data Sources
      11. Starting and Stopping a Data Source
    4. Configuring Java Messaging Services (JMS)
      1. Message Communication Modes
      2. Structure of a JMS Message
      3. Components of a JMS Messaging Application
      4. WebLogic JMS Architecture
      5. Configuring WebLogic Server JMS
      6. Monitoring JMS Servers
      7. Creating JMS System Modules
      8. System Modules and Subdeployments
      9. Migrating JMS-Related Services
      10. Store-and-Forward (SAF) Service for Reliable Messaging
      11. WebLogic Messaging Bridge
      12. Foreign JMS Servers
    5. Configuring WebLogic JavaMail
      1. Creating Mail Sessions
      2. Configuring a Mail Session
    6. Summary
  13. 5 Configuring the WebLogic Server Environment
    1. Optimizing Application Performance
      1. WebLogic Server Thread Pools
      2. Work Managers
      3. Configuring Work Managers
      4. Work Manager Components
      5. Defining a Work Manager Through the Console
    2. Managing Server Work Overload
      1. Throttling the Thread Pool
      2. Handling Overload or Failure Conditions
      3. Limiting Active HTTP Sessions
      4. Dealing with Stuck Threads
      5. WebLogic Server Self-Health Monitoring
    3. Optimal Network Configuration
      1. Benefits of Using Network Channels
      2. Creating Custom Network Channels
      3. Tunneling
      4. Configuring Network Channels
      5. Designing Network Channels
    4. The Java Connector Architecture (JCA)
      1. Managing Resource Adapters Through the Console
      2. Monitoring Resource Adapter Connections
      3. The WebLogic Tuxedo Connector
    5. Summary
  14. 6 Monitoring and Troubleshooting WebLogic Server
    1. The WebLogic Diagnostic Framework
      1. Using WLDF with the JRockit Flight Recorder
      2. Using the Monitoring Dashboard
      3. Configuring Diagnostic Image Capture
      4. Configuring a Diagnostic Archive
      5. Using a Diagnostic System Module
      6. Configuring Metric Collection
      7. Configuring WLDF Instrumentation
      8. Configuring Watches and Notifications
      9. Accessing the WLDF Diagnostic Data
    2. Monitoring WebLogic Server Instances
      1. Monitoring with the Administration Console
      2. Monitoring with JMX
      3. Using WLST Monitoring Scripts
      4. Monitoring with SNMP
    3. Understanding WebLogic Logging Services
      1. Understanding the Log Files
      2. Anatomy of a Log Message
      3. Viewing Logs
      4. Configuring a Domain Log Filter
      5. Subsystem Logs
      6. Understanding Server Log File Maintenance
      7. Setting Debugging Flags Using the Console
      8. Integrating Application and Server Logging
      9. Controlling Server Log Messages to Log Destinations
    4. WebLogic Server Troubleshooting
      1. Understanding Java Thread Dumps
      2. Collecting a JRockit Thread Dump
      3. JVM Crashes
      4. Generating Logs for Troubleshooting
      5. Using WLST Diagnostic Dump Commands
      6. Out-of-Memory Errors
    5. Summary
  15. 7 Working with WebLogic Server Clusters
    1. Introduction to WebLogic Server Clusters
      1. Relationship Between Clusters and a Domain
      2. Deployment in a Cluster
      3. Cluster Architectures
      4. How Clusters Communicate
      5. Naming Cluster Instances
    2. Creating and Configuring a Cluster
      1. Using the Administration Console
      2. Using the WLST Script
      3. Configuring a Cluster
      4. Creating Dynamic Clusters
      5. The config.xml File and a Cluster
    3. Managing a WebLogic Server Cluster
      1. Starting and Stopping the Cluster
      2. Monitoring a Cluster
    4. Clustering WebLogic Server Services
      1. JNDI Naming Service
      2. JDBC Clustering
      3. JMS and Clusters
      4. Cluster-Targeted JMS Servers
    5. WebLogic Server Load Balancing
      1. Load-Balancing Servlets and JSPs
      2. Load Balancing for EJBs and RMI Objects
    6. Application Failover and Replication
      1. Detecting Application Failures
      2. Handling Servlet and JSP Failures
      3. Failover for EJBs and RMIs
    7. Handling Server and Service Failures
      1. Migratable Servers
      2. Manual and Automatic Service Migration
      3. Migratable Targets
      4. Leasing and Automatic Migration
      5. Migrating JMS-Related Services
      6. Migrating JTA Services
      7. Whole Server Migration
      8. Using WLST to Migrate Services
    8. Summary
  16. 8 Understanding WebLogic Server Application Deployment
    1. Introduction to WebLogic Server Deployment
      1. Types of Applications You Can Deploy
      2. Deployment Targets
      3. Deployment Tools
      4. Deployment Descriptors, Annotations, and Deployment Plans
      5. Configuring Deployments with Deployment Plans
    2. Preparing Applications for Deployment
      1. Deploying an Archive File
      2. Deploying an Exploded Archive Directory
      3. Naming the Deployment and the Applications
      4. Storing the Deployment Files
      5. How WebLogic Server Accesses Source Files
    3. Staging Deployment Plans
    4. Deploying Applications
      1. Deployment Order
      2. Using the Administration Console for Deployment
      3. Using WLST to Deploy Applications
      4. Deploying with weblogic.Deployer
      5. Deploying with the wldeploy Ant Task
    5. Reducing Deployment Time During Development
      1. Using the Autodeployment Feature During Development
      2. Using FastSwap to Shorten the Development Cycle
    6. Monitoring and Updating Applications
      1. Monitoring Applications
      2. Using Administration Mode to Sanity Test Deployments
      3. Updating an Application
    7. Production Redeployment Strategies
      1. Performing a Production Redeployment
    8. Summary
  17. 9 Managing WebLogic Server Security
    1. Java EE Security and OPSS
      1. Java EE Security and WebLogic Server
      2. The Java Security Manager
      3. Oracle Platform Security Services
    2. WebLogic Server Security Basics
      1. WebLogic Server Resources
      2. Security Realms
      3. Security Providers
    3. Managing Security Realms
      1. Creating and Configuring a New Security Realm
      2. Configuring the Security Providers
      3. Exporting and Importing Security Data
      4. Caching Security Information
      5. Configuring Entitlements Caching
      6. Changing the Default Security Realm
      7. Reverting to an Older Security Configuration
    4. Users, Groups, Roles, and Security Policies
      1. Users
      2. Groups
      3. Security Roles
      4. Configuring Security Policies
      5. Static and Dynamic Security Conditions
    5. Security Models for Web Applications and EJBs
      1. The Deployment Descriptor Only Model
      2. The Custom Roles Model
      3. The Custom Roles and Policies Model
      4. The Advanced Model
      5. Security-Related Deployment Descriptors
    6. Configuring the Embedded LDAP Server
    7. Configuring an RDBMS as the Security Store
      1. Setting Up the RDBMS Security Store
      2. Creating Tables in the RDBMS Store
      3. Setting Up JMS Notifications for Security Changes
    8. Configuring Domain Security
      1. Configuring Domain Security in the Administration Console
      2. Enabling Trust Between Domains
      3. Using Connection Filters
    9. Configuring SSL
      1. Configuring Identity and Trust
      2. Setting SSL Configuration Attributes
      3. Using the and
    10. Oracle WebLogic Security Best Practices
      1. Use Multiple Administrative Users
      2. Control Access to WebLogic Resources
      3. Avoid Running the Server Under a Privileged Account
      4. Enable Security Auditing
      5. Use Connection Filters
      6. Prevent Denial of Service Attacks
      7. Implement Security for Applications
    11. Summary
  18. 10 WebLogic Server Performance Tuning
    1. Tuning WebLogic Server
      1. Thread Management
      2. Tuning the Network I/O
    2. Tuning the JVM
      1. Understanding Memory Management
      2. Understanding Locking
    3. Tuning Messaging Applications
      1. Tuning the Persistent Store
      2. Tuning WebLogic JMS
      3. Tuning WebLogic JMS Store-and-Forward
    4. Tuning the Applications and Managing Sessions
      1. Tuning Web Applications
      2. Using Oracle Coherence
      3. Tuning EJB Performance
      4. SQL Tuning Best Practices
      5. Managing Sessions
      6. JPA and TopLink
    5. Tuning Data Sources and Transactions
      1. Tuning Data Sources
      2. Tuning Transactions
    6. Summary
  19. Index