Sun Java System Application Server Enterprise Edition 8.2 Quick Start Guide

Cleaning Up

To clean up, you can uninstall the Application Server installation by completing the steps in To Uninstall Completely, or you can simply delete the sample cluster you have just created by completing the steps in To Remove the Sample Cluster.

ProcedureTo Uninstall Completely

  1. Stop the Application Server processes using these commands:

    asadmin stop-cluster FirstCluster

    asadmin remove-ha-cluster --hosts hadb-hostname,hadb-hostname FirstCluster

    Replace the hadb-hostname variable with the host name of the machine where HADB is to run. If you are using just one machine, you must name it twice.

    asadmin stop-node-agent hostname

    asadmin stop-domain domain1

  2. Stop the HADB Management Agent by one of the following methods:

    • In a Solaris or Linux Java Enterprise System installation:

      1. Change to the /etc/init.d directory:

        cd /etc/init.d

      2. Run the command to stop the agent:

        ./ma-initd stop

    • In a Windows Java Enterprise System installation:

      1. Go to Start⇒Settings⇒Control Panel, and double-click Administrative Tools.

      2. Double-click the Services shortcut.

      3. Select HADBMgmtAgent Service from the Services list.

      4. From the Action menu, select Stop.

    • In a stand-alone Solaris or Linux Application Server installation:

      1. Change to install-dir/hadb/4/bin.

      2. Run the command to stop the agent:

        ./ma-initd stop

    • In a stand-alone Windows Application Server Installation:

      1. Change to install-dir\hadb\4.x\bin.

        The x represents the release number of HADB.

      2. Run the command to stop the agent:

        ma.exe -r

    At this point, all processes related to Sun Java System Application Server are stopped.

  3. Uninstall the Application Server.

    • In a Solaris or Linux Java Enterprise System installation, run var/sadm/prod/entsys/uninstall and follow the steps in the uninstallation wizard.

    • In a Windows Java Enterprise System installation, use the Control Panel's Add/Remove Programs item. Choose Sun Java Enterprise Systems and click Change/Remove. Remove install-dir\bin from the PATH environment variable and delete the AS_ADMIN_USER variable.

    • In a Solaris or Linux standalone Application Server installation, run install-dir/uninstall and follow the steps in the uninstallation wizard.

    • In a Windows standalone Application Server instance, from the Start menu, choose Programs ⇒ Sun Microsystems ⇒ Application Server EE ⇒ Uninstall.

  4. If you created a new Web Server instance for this exercise, delete it:

    1. Log on to the Web Server’s Administration Console.

    2. Stop the instance.

    3. Delete the instance.

  5. To uninstall the Web Server product, run the uninstall program from the web-server-install-dir.

ProcedureTo Remove the Sample Cluster

Use this procedure to remove only the FirstCluster (the sample highly-available cluster) and the sample application used during this exercise.

  1. Stop the Application Server processes and clean up configuration:

    asadmin stop-cluster FirstCluster

    asadmin remove-ha-cluster --hosts hadb-hostname,hadb-hostname FirstCluster

    Replace the hadb-hostname variable with the host name of the machine where HADB is to run. If you are using just one machine, you must name it twice.

    asadmin disable-http-lb-server FirstCluster

    asadmin delete-http-lb-ref --config MyLbConfig FirstCluster

    asadmin delete-http-lb-config MyLbConfig

    asadmin delete-instance i1

    asadmin delete-instance i2

    asadmin delete-cluster FirstCluster

    asadmin undeploy clusterjsp

  2. Stop the web server instance acting as load balancer by running the stop program in one of the following directories (depending upon the Web Server version):

    • web-server-install-dir/https-hostname

    • web-server-install-dir/https-hostname/bin

  3. Rename the loadbalancer.xml file in web-server-install-dir/https-hostname/config to loadbalancer.xml.sav in the same directory.

  4. Stop the HADB Management Agent by one of the following methods:

    • In a Solaris or Linux Java Enterprise System installation:

      1. Change to the /etc/init.d directory:

        cd /etc/init.d

      2. Run the command to stop the agent:

        ./ma-initd stop

    • In a Windows Java Enterprise System installation:

      1. Go to Start⇒Settings⇒Control Panel, and double-click Administrative Tools.

      2. Double-click the Services shortcut.

      3. Select HADBMgmtAgent Service from the Services list.

      4. From the Action menu, select Stop.

    • In a stand-alone Solaris or Linux Application Server installation:

      1. Change to install-dir/hadb/4/bin.

      2. Run the command to stop the agent:

        ./ma-initd stop

    • In a stand-alone Windows Application Server Installation:

      1. Change to install-dir\hadb\4.x\bin.

        The x represents the release number of HADB.

      2. Run the command to stop the agent:

        ma.exe -r

Next Steps

Congratulations! You have now completed the Quick Start for Application Server.

In this section, you have installed, configured, and started HADB, and configured a cluster and an application to use high availability. You have also cleaned up so that your system is ready for other work. See Where to Go Next for additional information on Application Server.