Sun Java logo     Previous      Contents      Index      Next     

Sun logo
Sun Java Enterprise System 5 Upgrade Guide for UNIX 

Chapter 12
Service Registry

This chapter describes how to upgrade Service Registry to Java ES 5 (Release 5): Service Registry 3.1.

The chapter provides an overview of upgrade considerations for the different upgrade paths supported by Release 5. The chapter covers upgrades on both the Solaris and Linux operating systems:


Overview of Service Registry Upgrades

This section describes the following general aspects of Service Registry that impact upgrading to Java ES 5 (Release 5):

About Java ES Release 5

Java ES Release 5 Service Registry represents a minor release with respect to Release 4 Service Registry. It includes some improved functionality, updated interfaces, and selected bug fixes.

Java ES Release 5 Upgrade Roadmap

Table 12-2 shows the supported Service Registry upgrade paths to Java ES Release 5. The table applies to both Solaris and Linux operating systems.

Table 12-2  Upgrade Paths to Java ES 5 (Release 5): Service Registry 3.1 

Java ES Release

Service Registry Version

General Approach

Reconfiguration Required

Release 4

Sun Java System Service Registry 3.0 2005Q4

Direct upgrade:
Replace Release 4 with a fresh install and transfer registry data to Release 5.

None

Service Registry Data

The following table shows the type of data that could be impacted by an upgrade of Service Registry software.

Table 12-3  Service Registry Data Usage

Type of Data

Location

Usage

Installation parameters

ServiceRegistryR4-base/install/install.properties

Configuration of Service Registry

Trusted certificates

ServiceRegistryR4-base/install/cacerts

Certificates trusted by Service Registry that are not part of Application Server installation

Configuration data

RegistryDomainR4-base/domains/registry/applications/j2ee-modules/soar/WEB-INF/classes/*.properties

Configuration of Service Registry instance

Registry/repository data

RegistryDomainR4-base/3.0/data

Database and user certificates

Web interface configuration

RegistryDomainR4-base/3.0/jaxr-ebxml

Configuration of web interface

Service Registry Upgrade Strategy

Your strategy for upgrading Service Registry generally depends on the many considerations discussed in Chapter 1, "Planning for Upgrades": upgrade path, dependencies between Java ES components, selective upgrade versus upgrade all, multi-instance deployments, and so forth.

This section is to particularize that general discussion to Service Registry by presenting issues that might influence your Service Registry upgrade plan.

Compatibility Issues

Release 5 Service Registry is backwardly compatible with Release 4 Service Registry.

Dependencies

Service Registry dependencies on other Java ES components can impact the procedure for upgrading and re-configuring Service Registry software. Changes in Service Registry interfaces or functions, for example, could require upgraded version of components upon which Service Registry depends. The need to upgrade such components depends upon the specific upgrade path.

Service Registry has dependencies on the following Java ES components:

Dual Upgrade

Dual upgrades, in which both Service Registry and operating system are upgraded (as described in Dual Upgrades: Java ES and Operating System Softwared) can be performed in either of two ways:

Fresh Operating System Installation
  1. Back up existing Service Registry data.
  2. See Service Registry Data for the location of essential data.

  3. Install the new operating system.
  4. The operating system installation can be on a new system (or a Solaris 10 zone) or it can wipe out the existing file system.

  5. Restore the Service Registry data that was backed up in Step 1.
  6. Install Release 5 Service Registry.
In-place Operating System Upgrade
  1. Back up existing Service Registry data.
  2. See Service Registry Data for the location of essential data.

  3. Upgrade the operating system.
  4. The upgrade leaves the existing file system in place.

  5. Upgrade to Release 5 Service Registry.
  6. See the Upgrading Service Registry from Java ES Release 4.


Upgrading Service Registry from Java ES Release 4

This section includes information about upgrading Service Registry from Java ES 2005Q4 (Release 4) to Java ES 5 (Release 5). The section covers the following topics:

Introduction

When upgrading Java ES Release 4 Service Registry to Release 5, consider the following aspects of the upgrade process:

Release 4 Service Registry Upgrade

This section describes how to perform an upgrade of Service Registry from Java ES Release 4 to Java ES Release 5 on both the Solaris and Linux platforms. Where a topic depends on platform-specific procedures, the topic will indicate the operating system to which it applies. The section covers the following topics:

Pre-Upgrade Tasks

Before you upgrade Service Registry, you should perform the following tasks:

Verify Current Version Information

You can verify the current version of Service Registry by observing the characteristics of the Web Console user interface:

http://localhost:6060/soar

Also, you can check Service Registry package names. For example:

On Solaris:
pkginfo -l|grep srvc

On Linux:
rpm -qa|grep srvc

The distinguishing characteristics and package names are shown in the following table:

Table 12-4  Service Registry Version Verification Outputs

Java ES Release

Service Registry Version Number

Distinguishing Characteristic

Release 4

3.0

Web Console: tools section in left-hand panel

Package names include the string: soar

Release 5

3.1

Web Console: three tabs in left-hand panel

Package names include the string: srvc-registry

Upgrade Service Registry Dependencies

It is generally recommended that all Java ES components on a computer system (and in a computing environment) be upgraded to Java ES Release 5. Service Registry has hard upgrade dependencies on a number of shared components, Application Server, and Java DB.

When upgrading Service Registry dependencies, you should do so in the order below (skipping any that might already have been upgraded), before you upgrade Service Registry. Upgrade of shared components is normally achieved automatically by the Java ES installer.

  1. Shared Components.  Instructions for synchronizing Java ES shared components to Release 5 are provided in Upgrading Java ES Shared Components. However, all shared components required by Service Registry are upgraded automatically by the Java ES installer when you perform an upgrade of Service Registry to Release 5.
  2. Java DB.  Instructions for upgrading Java DB to Release 5 are provided in Chapter 8, "Java DB".
  3. Application Server.  Instructions for upgrading Application Server to Release 5 are provided in Chapter 11, "Application Server".
Modify the HTTP Port Number

Edit the ServiceRegistryR4-base/install/install.properties file to change the HTTP port from 6060 to 6480 (6060 is a reserved port). For information on setting this property, see the Service Registry 3.1 Administration Guide, http://docs.sun.com/doc/819-4640.

Back Up Service Registry Data

The Service Registry upgrade from Release 4 to Release 5 does not modify configuration data or the registry/repository database. There is no need to back up current data.

Obtain Required Configuration Information and Passwords

You need to know the user IDs, passwords, domain name, and port number for your Release 4 Service Registry.

Upgrading Release 4 Service Registry

This section describes the upgrade procedure on Solaris and Linux platforms.

Upgrade Procedure (Solaris)

The procedure documented below applies to Service Registry instances residing locally on the computer where the upgrade is taking place.

  1. Log in as root or become superuser.
  2. su -

  3. Make sure that the Jakarta ANT Java/XML-based build tool (ANT shared component) references the correct version of J2SE.
  4. (The ant command is used in the steps that follow.)

    PATH=/usr/jdk/entsys-j2se/bin:$PATH

    export PATH

  5. Stop the Release 4 Service Registry (Application Server) domain.
  6. cd ServiceRegistryR4-base/install
    /usr/sfw/bin/ant -f build-install.xml appserver.domain.stop

    The domain is associated with a Service Registry instance.

  7. Perform a fresh install of Release 5 Service Registry.
  8. Perform the following steps:

    1. Launch the Java ES installer on the computer hosting Release 4 Service Registry.
    2. cd Java ES Release 5 distribution/os_arch
      ./installer

      where os_arch matches your platform, such as Solaris_sparc. (Use the installer -nodisplay option for the command line interface.)

      After the Welcome and License Agreement pages are displayed, you will be presented with a component selection page. (When installed components are detected that can be directly upgraded by the Java ES installer, they are shown with a status of “upgradable.”)

    3. Select Service Registry from the component selection page.
    4. Specify an installation directory path different from that of Release 4.
    5. By default, the Release 5 installation path (ServiceRegistryR5-base) is different from the Release 4 installation path (ServiceRegistryR4-base).

    6. Select the Configure Later option.
    7. Configure Now is not supported.

    8. If needed, select the option to install localized packages.
    9. Exit the Java ES installer when installation is complete.
  9. Upgrade and configure the Release 5 Service Registry instance.
  10. cd ServiceRegistryR5-base/install
    /usr/sfw/bin/ant -f build-install.xml
        -Dinstall.properties=
    ServiceRegistryR4-base/install/install.properties
        upgrade

    As an alternative to pointing to the Release 4 install.properties file, you can modify the default Release 5 install.properties file to reproduce any Release 4 property values. For information on setting these properties, see the Service Registry 3.1 Administration Guide, http://docs.sun.com/doc/819-4640.

    If you are using custom property values, but not putting them in install.properties, then you need to specify such property values on the Ant command line (all on one line), as follows:

    /usr/sfw/bin/ant -f build-install.xml
        -Dregistry.install.RegistryServerKeystorePassword=
    passwd1
        -Dregistry.install.AdministratorPassword=passwd2
        -Dregistry.install.ApplicationServerKeystorePassword=passwd3
        upgrade

    However, it is recommended that you include such custom property values in the install.properties file with restricted permissions to avoid the use of command-line settings that can be viewed by unauthorized personnel. See the Service Registry Administration Guide for more information.

    The upgrade utility creates a new Application Server domain, starts the domain, and deploys the Service Registry instance in the domain. Each Service Registry instance is associated with its own Application Server domain.

  11. If the server property files of the Release 4 Service Registry have been modified, you can make corresponding changes to the Release 5 Service Registry configuration as follows:
    1. Stop the Release 5 Service Registry (Application Server) domain.
    2. (The domain was automatically started by the upgrade command of Step 5.)

      cd ServiceRegistryR5-base/install
      /usr/sfw/bin/ant -f build-install.xml appserver.domain.stop

    3. Transfer the Release 4 Service Registry instance configuration to Release 5.
    4. Add any modifications that you had made to the Release 4 Service Registry instance configuration:

      RegistryDomainR4-base/domains/registry/applications/j2ee-modules/
      soar/WEB-INF/classes/*.properties

      to the corresponding Release 5 configuration:

      RegistryDomainR5-base/domains/registry/applications/j2ee-modules/
      soar/WEB-INF/classes/*.properties

  12. Start the Release 5 Service Registry (Application Server) domain.
  13. cd ServiceRegistryR5-base/install
    /usr/sfw/bin/ant -f build-install.xml appserver.domain.start

Upgrade Procedure (Linux)

Upgrading Service Registry on Linux is identical to Solaris (see Upgrade Procedure (Solaris)) except that the location of the ant command on the Linux platform, which is used in various steps of the upgrade procedure, is different from the location on Solaris platforms:

Verifying the Upgrade

You can verify successful upgrade of Service Registry by observing the characteristics of the Web Console user interface:

http://localhost:6480/soar

Also, you can check Service Registry package names. For example:

On Solaris:
pkginfo -l|grep soar

On Linux:
rpm -qa|grep soar

The distinguishing characteristics and package names are shown in Table 12-4.

Post-Upgrade Tasks

The following steps, which describe how to remove Release 4 Service Registry, should not be performed until you are certain you do not want to roll back the upgrade to Release 4.

  1. Delete the Release 4 Service Registry (Application Server) domain:
  2. cd ServiceRegistryR4-base/install

    On Solaris:
    /usr/sfw/bin/ant -f build-install.xml appserver.domain.delete

    On Linux:
    /opt/sun/bin/ant -f build-install.xml appserver.domain.delete

  3. Delete the directory containing the Release 4 Service Registry domain files.
  4. rm -rf RegistryDomainR4-base

  5. Delete the directory containing the Release 4 Service Registry installation files.
  6. rm -rf ServiceRegistryR4-base

Rolling Back the Upgrade

A rollback of the Release 5 upgrade is achieved by reverting to the previous version, which is left intact by the upgrade to Release 5.

  1. Stop and delete the Release 5 Service Registry (Application Server) domain:
  2. cd ServiceRegistryR4-base/install

    On Solaris:
    /usr/sfw/bin/ant -f build-install.xml appserver.domain.delete

    On Linux:
    /opt/sun/bin/ant -f build-install.xml appserver.domain.delete

  3. Run the Java ES Release 5 uninstaller to uninstall Release 5 Service Registry.
  4. Start the Release 4 Service Registry domain.
  5. cd ServiceRegistryR4-base/install

    On Solaris:
    /usr/sfw/bin/ant -f build-install.xml appserver.domain.start

    On Linux:
    /opt/sun/bin/ant -f build-install.xml appserver.domain.start

  6. Access the Release 4 Service Registry Web Console.
  7. http://localhost:6480/soar

  8. Confirm that the Console displays Release 4 characteristics as shown in Service Registry Version Verification Outputs.

Multiple Instance Upgrades

In some deployment architectures Service Registry is deployed on multiple computer systems to provide for scalability and to improve availability. For example, you might have Service Registry instances running on multiple computers with a load balancer to distribute the load.

In these architectures the registries are predominantly read-only and respond to a heavy query load by accessing a common database.

You perform the upgrade of Service Registry on each computer as described in Release 4 Service Registry Upgrade.



Previous      Contents      Index      Next     


Part No: 819-6553-11
June 2007.   Copyright 2007 Sun Microsystems, Inc. All rights reserved.