Sun Java Enterprise System 5 Upgrade Guide for Microsoft Windows

Application Server Upgrade

This section describes how to perform an upgrade of Application Server from Java ES version 4 to Java ES version 5. This section covers the following topics:

Pre-Upgrade Tasks

Upgrading Application Server Dependencies

All Java ES components on a computer system and in a computing environment should be upgraded to Java ES version 5.

ProcedureTo Verify Current Version Information

    Type the following command.

    ApplicationServer-base\bin\asadmin.bat version

    The outputs that indicate the Application Server version are:

    Release 5

    Sun Java Enterprise System Application Server Enterprise Edition 8.2

    Release 4

    Sun Java Enterprise System Application Server Enterprise Edition 8.1_02

ProcedureTo Stop Application Server Component

  1. Stop all running node agents.

    ApplicationServer-base\bin\asadmin.bat stop-node-agent

  2. Stop all domains.

    ApplicationServer-base\bin\asadmin.bat stop-domain

  3. Stop the pointbase database server if one is installed and running.

    ApplicationServer-base\pointbase\tools\stopserver.sh

ProcedureTo Back Up Application Server Data

  1. Back up Application Server domains.

    Create a directory outside the Application Server installation directories and back up the content of the domains directory in this new directory. The default location for the Java ES 4 domains directory is ApplicationServer-base\domains.

  2. Back up Application Server node agents.

    Create a directory outside the Application Server installation directories and back up the content of the nodeagents directory in this new directory. The default location for the Java ES 4 nodeagents directory is ApplicationServer-base\nodeagents.

  3. Back up pointbase binaries.

    Create a directory outside the Application Server installation directories and back up the content of the pointbase directory in this new directory. The default location for the Java ES 4 pointbase directory is ApplicationServer-base\pointbase.

  4. Back up pointbase data files.

    Create a directory outside the Application Server installation directories and back up the pointbase data files in this new directory. The default location for the Java ES 4 pointbase data files is: ApplicationServer-base\pointbase.

  5. Back up the Application Server configuration file.

    The default location for Application Server configuration file is ApplicationServer-base\config\asenv.conf.

  6. Back up the sample configuration file.

    The default location for sample configuration file is ApplicationServer-base\samples\common.properties.

ProcedureTo Upgrade Application Server

Before You Begin

In multiple node deployments, perform the upgrade procedure on each node or computer that hosts Application Server instances.

  1. Install Java ES 5 Application Server with the Configure Automatically During Installation option.

    The new installed domain is started automatically.

  2. Stop the domain.

    You can also delete the domain created under new installation directory.

ProcedureTo Verify the Upgrade

    Type the following command.

    ApplicationServer-base\bin\asadmin.bat version

    The outputs that indicate the Application Server version are:

    Release 5

    Sun Java Enterprise System Application Server Enterprise Edition 8.2

    Release 4

    Sun Java Enterprise System Application Server Enterprise Edition 8.1_02

Post-Upgrade Tasks

To verify a successful upgrade, you need to perform the following post-upgrade tasks:

ProcedureTo Restore Application Server Data

  1. Restore Application Server domains.

  2. Restore Application Server node agents.

  3. Restore pointbase binaries.

  4. Restore pointbase data files.

  5. Restore the configuration settings from the Java ES 4 Application Server configuration file.

    Ensure that the new entries from the Java ES 5 configuration file are retained in this file.

  6. Restore the configuration settings from the Java ES 4 sample configuration file.

    Ensure that the new entries from the Java ES 5 sample configuration file are retained in this file.

ProcedureTo Validate Restored Domains

  1. Start the restored Java ES 4 Application Server domains.

    ApplicationServer-base\bin\asadmin.bat start-domain --user userName --domaindir JES4-Domain-location domainName

  2. Check for the deployed applications.

  3. Check for the configuration settings.

ProcedureTo Validate Restored Node Agents

    Start the restored Java ES 4 node agents.

    ApplicationServer-base\bin\asadmin.bat start-node-agent --user userName --agentdir JES4-node-agent-location nodeAgentName

ProcedureTo Validate Pointbase Data Files

  1. Start the restored Java ES 4 Application Server domains.

    ApplicationServer-base\pointbase\tools\startpointbase.sh

  2. Verify that the data files are accessible to the applications.

ProcedureTo Roll Back the Upgrade

  1. Uninstall Java ES 5.

  2. Start domain and node agent from Java ES4 Application Server install location.