Page 3 - Contents
Contents 1 Quick Start 5 Variable Names and Default Paths 5 About Application Server Administration 6 Starting the Server 7 Starting the Domain Administration Server 7 ▼ To Start the Domain on Solaris and Linux 7 ▼ To Start the Domain on Windows 8 Logging in to the Admin Console 9 ▼ To Log In to the...
Page 5 - Variable Names and Default Paths
CHAPTER 1 Quick Start Welcome to the Quick Start Guide. This guide is for developers, systemadministrators, and Application Server administrators who are interested in learningabout the capabilities of the Sun Java System Application Server 8.1 2005Q2 software. This guide describes basic and advance...
Page 7 - Starting the Server; Starting the Domain Administration Server; To Start the Domain on Solaris and Linux
A domain is a collection of configuration data, deployed applications, and machines with a designated administrator. The domain definition describes and can control theoperation of several applications, stand-alone application server instances, andclusters, potentially spread over multiple machines....
Page 8 - To Start the Domain on Windows
Set the value of AS_ADMIN_USER to the admin user you specified when you installed the Application Server. For example, setenv AS_ADMIN_USER admin 3. Start the server by entering this command from the install-dir : asadmin start-domain domain1 When you are prompted for the admin password and the mast...
Page 9 - Logging in to the Admin Console; To Log In to the Admin Console
9. When a command prompt window opens to prompt you for the admin password and the master password, enter the passwords that you provided duringinstallation. A window appears with a message telling that you the server is starting: Starting Domain domain1, please wait. Log redirected to domain_dir\do...
Page 11 - Examining the Log File; To View the Domain Administration Server Log File
Examining the Log File Application Server instances and the Domain Administration Server produceannotated logs on the file system. By default, all errors, warnings or useful informativemessages are logged. ▼ To View the Domain Administration Server Log File 1. From the Common Tasks list in the right...
Page 12 - Creating a Cluster; To Start the Node Agent; To Create a Cluster
In this section you started the Domain Administration Server and confirmed that it isrunning. You also logged in to the Admin Console and used the Log Viewer. You canstop the Quick Start trail here if you do not wish to continue, or you can go on to thenext section. Creating a Cluster This section, ...
Page 15 - Deploying an Application; To Deploy the Sample Application
Note – By default, the HTTP ports are 38081 for i1 and 38080 for i2. If these ports were busy on your machine when you created these clusters, or if you hadalready assigned these ports to other instances and clusters, different portnumbers were assigned. In this section you have created a simple clu...
Page 16 - To Start the Cluster; To Verify the Application Deployment
7. Click OK. The clusterjsp application is now deployed to FirstCluster. ▼ To Start the Cluster 1. In the tree on the left pane, click the FirstCluster node under Clusters. 2. In the right pane, click the General tab if it is not already active. 3. Click the Start Instances button to start the clust...
Page 17 - Setting up Load Balancing
http:// localhost : port /clusterjsp Replace the localhost variable with the name of the system that the Domain Admin Server is running on. Replace the port variable with the value of HTTP-LISTENER-PORT for i1. This example uses http:// localhost :38081/clusterjsp . 2. Add some session attribute dat...
Page 18 - Installing Web Server Software
This topic presents the following steps: ■ “Installing Web Server Software” on page 18 ■ “Installing the Load Balancer Plug-in” on page 19 ■ “Creating a Load Balancer Configuration” on page 19 ■ “Starting Load Balancing” on page 20 ■ “Verifying Load Balancing” on page 20 Installing Web Server Softwa...
Page 19 - Installing the Load Balancer Plug-in; To Install the Load Balancer Plug-in; Creating a Load Balancer Configuration
2. Download Web Server 6.1 Service Pack 2 or higher for the locale and platform of your choice. To download, you must log in with username and password registered withMySunSM, Sun StoreSM, SunSolveSM, or the Online Support Center. If you do nothave a login account, you can register online. 3. Follow...
Page 20 - To Create an HTTP Load Balancer Configuration; Starting Load Balancing; Verifying Load Balancing
▼ To Create an HTTP Load Balancer Configuration 1. Create a load balancer configuration called MyLbConfig targeted to the cluster FirstCluster: asadmin create-http-lb-config --target FirstCluster MyLbConfig 2. Enable the FirstCluster cluster and the clusterjsp application deployed in it for HTTP loa...
Page 21 - To Verify Load Balancing
▼ To Verify Load Balancing 1. To display the first page of the clusterjsp application, type this URL in your browser: http:// localhost : web_server_port /clusterjsp Replace the localhost variable with the name of the system that the Web Server is running on. Replace the web_server_port variable wit...
Page 22 - Cleaning Up; To Uninstall Completely
■ Stand-alone Application Server installations: install-dir /nodeagents/ nodeagent_name /i1/logs /access/server_access_log install-dir /nodeagents/ nodeagent_name /i2/logs /access/server_access_log 5. Add a name and value pair ( Name=Name Value=Duke ) for storing in HttpSession . 6. Click the “Add t...
Page 23 - To Remove the Sample Cluster Only
At this point all processes related to Application Server are stopped. 2. 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...
Page 24 - Where to Go Next
Where to Go Next Other resources for learning about and using Application Server are available. Theyinclude: ■ Product details at install-dir /docs-ee/about.html . See this document for the latest information on what is new, and pointers totutorials and other educational services. ■ Sun Java System ...
Page 26 - HADB Preinstallation Steps
About High Availability Clusters andHADB A highly availability cluster inSun Java System Application Server Enterprise Editionintegrates a state replication service with the clusters and load balancer created earlier,enabling failover of HTTP sessions. HttpSession objects and Stateful Session Bean s...
Page 27 - To Configure Your System for HADB
▼ To Configure Your System for HADB 1. Get root access. 2. Define variables related to shared memory and semaphores. ■ On Solaris: a. Add these lines to the /etc/system file (or if these lines are in the file as comments, uncomment them and make sure that the values match these): set shmsys:shminfo_...
Page 28 - Installing HADB; To Install HADB; Starting HADB
To restart the Web Server, execute the start program in web_server_install_dir /https- hostname . To restart the node agent, use the command asadmin start-node-agent hostname . Replace the variable hostname with the name of the host where the Application Server is running. Installing HADB This secti...
Page 31 - Restarting the Cluster; To Restart the Cluster
Note – To reduce the memory footprint of HADB for demonstration purposes, execute the following hadbm command. You are prompted for the administration password. In Java Enterprise System installations: /opt/SUNWhadb/4/bin/hadbm set DataBufferPoolSize=64,LogBufferSize=25 FirstCluster In standalone Ap...
Page 32 - Verifying HTTP Session Failover; To Verify HTTP Session Failover
4. Once the instances are stopped, click Start Instances. Verifying HTTP Session Failover The steps for testing session data failover are similar for testing load balancing asdescribed in the topic “Verifying Load Balancing” on page 20 . This time Session Data is preserved after failure. Failover is...
Page 35 - To Remove the Sample Cluster
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’sAdd/Remove Programs item. Choose Sun Java...