Installing the same application into multiple Application Servers
 Technote (troubleshooting)
 
Problem(Abstract)
In IBM® WebSphere® Application Server V5.0 releases, it is possible to install the same application into multiple Application Servers.
 
Resolving the problem

Installing the Application Server
There are two ways to install one application to multiple Application Servers:

Installing using the Web console
  1. Select the modules that you want to install.
  2. Press and hold the Ctrl key to pick multiple Application Servers. Select all the Application Servers into which you will install this application.
  3. Click Apply.
  4. Continue with the installation process, including the Save and Sync of the nodes.


Installing using wsadmin

wsadmin is an installation command that offers more installation options (check the Information Center for all possible options). You need two commands to accomplish this task. The backslash ( \ ) at the end of the lines in the following example designates a line continuation. This example sets up server1 and server2. Replace the sample.ear and sample.war with your application name, the cell_name and node_name along with your actual server names to run this command on your system. $AdminApp  install c:/sample.ear  \
{-MapWebModToVH {{sample.war sample.war,WEB-INF/web.xml default_host}} \
-MapModulesToServers {{"sample.war" sample.war,WEB-INF/web.xml \
WebSphere:cell=cell_name,node=node_name,server=server1+ \ WebSphere:cell=cell_name,node=node_name,server=server2}}}
$AdminConfig save


Editing the application

The installed Application must now be edited, there are two ways to accomplish this task:

Editing using the Web console

In this example, the application is already installed to server1. You now want to install the same application to server2.
  1. On the left, select Applications > Enterprise Application, then click the name of the application.
  2. Go to Additional Properties, then click Map modules to application servers.
  3. Select the modules that you want to install or edit by placing a check to the left of the module name.
  4. Press and hold the Ctrl key to select multiple Application Servers.
  5. Click Apply.
  6. Save and Sync the nodes.



Editing using wsadmin

wsadmin is an installation command that offers more installation options (check the Information Center for all possible options). There are two commands needed to accomplish this task. The backslash ( \ ) at the end of the following lines notes a line continuation. In this example you set up server1 and server2. Replace the sample.ear and sample.war with your application name, the cell_name and node_name along with your actual server names to run this command on your system.

$AdminApp edit sample {-MapModulesToServers  \
{{"sample.war" sample.war,WEB-INF/web.xml   \
WebSphere:cell=cell_name,node=node_name,server=server1+ \
WebSphere:cell=cell_name,node=node_name,server=server2}}}
$AdminConfig save


Notes:
  1. This technote deals with individual Application Servers, not clusters and cluster members.
  2. When you install the same application to multiple Application Servers there is no load balancing or fail over between those Application Servers.
  3. The plug-in routes the requests to only one Application Server, which is the one listed first in the UriGroup Name listing.
 
 
Cross Reference information
Segment Product Component Platform Version Edition
Application Servers Runtimes for Java Technology Java SDK
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > Administrative Console (all non-scripting)
Operating system(s): Windows
Software version: 5.0.2.4
Software edition:
Reference #: 1141430
IBM Group: Software Group
Modified date: May 20, 2008