Sun Java System Portal Server 6 2004Q2 Administration Guide |
Chapter 17
BEA WebLogic Server
Setting Up Portal Server on BEA ClustersThis section gives a brief description and example of how the Sun Java System Portal Server software can be used with BEA WebLogic Server clusters.
For this example, there are five machines. All the machines must be on the same subnet. One has Identity Server and Directory Server (IS). Another is the BEA WebLogic administration server (AS). There are three cluster machines (CS1, CS2, and CS3). Load balancing is needed for clusters. In this example, the proxy is on the administration server.
Install Identity Server and Directory Server on the IS machine. Install BEA WebLogic Server on all four of the other machines using the default installation. Check that all servers are working correctly. On the administration server(AS) machine with BEA WebLogic Server, using the BEA WebLogic instructions, create a new domain (NEWDOMAIN) consisting of an administration server with listen port of 80. The name of the instance should be PORTALSERVER.
Install the Sun Java System Portal Server software on the AS machine with the following details.
On the other three machines with BEA WebLogic Server, using the BEA WebLogic instructions, create a new domain (NEWDOMAIN on all the three machines) consisting of an administration server with listen port of 7001 (ADMINSERVER on all the three machines) and another server with a listen port of 80 (PORTALSERVER on all the three machines). Each listen port should be the same; the example uses 80.
Next install the Portal Server software on the three machines to the managed server instance (PORTALSERVER) giving the following details.
On machines AS, CS1, CS2, and CS3, perform the steps required for deploying portal as mentioned in chapter 2.
To set up a cluster:
On the administration server(AS) machine with BEA WebLogic Server, using the BEA WebLogic instructions, create a new server instance listen port of 7001 and make the instance the administration server instance.
- Using the administration console of the admin machine AS (http://AS:7001/console), create a server for each of the machines to be in the cluster.
- Stop all the servers on the machines to be in the cluster.
- Restart those servers, but have them connect to the administration server AS. For example,
./startManagedWebLogic.sh CS1 AS:7001
- Using the administration console of the administration machine AS (http://AS:7001/console), create the cluster.
- Select Clusters, Configure a new Cluster.
For Name, the example uses NEWCLUSTER.
- For Address, put in the names for the servers representing the machines to be clustered: CS1,CS2,CS3.
- Inside this same window, select the Servers tab, then select the servers CS1, CS2, and CS3; move them from the Available box to the Chosen box.
For more detail, see the BEA WebLogic Server instructions to set up a cluster.
As you set up clusters remember the following:
Check to see that cluster is set up correctly by going the BEA WebLogic Server administration console, selecting Cluster in the left pane, selecting the Monitoring tab in the right pane, then select Monitor server participation in cluster. If one or more of the started server instances does not appear in the display, use the BEA WebLogic Server tool to verify the correct multicast addresses and port numbers.
If you plan on using a proxy servlet for load balancing, create a web.xml, and a weblogic.xml file for your cluster to use to configure the load balancing servlet. Using a temporary directory make a subdirectory WEB-INF. The web.xml, and the weblogic.xml files are the only files in a directory (WEB-INF). Use the fully qualified machine names in the file.
Code Example 17-2 Sample weblogic.xml File
<!DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web Application 8.1//EN"
"http://www.bea.com/servers/wls810/dtd/weblogic810-web-jar.dtd">
<weblogic-web-app>
<context-root>/</context-root>
</weblogic-web-app>
Next you need to deploy the Portal Server software to the cluster.
- Go to the BEA WebLogic Server administration console for the administration server (AS:7001/console).
- Expand Web Applications in the left pane, then select Portal.
- Click on Targets tab. Uncheck PORTALSERVER and check “All servers in the cluster” and click Apply.
- Stop and restart all the servers. For the managed servers, on each machine, type:
./startManagedWebLogic.sh managed-servername http://AS.example.com:7001