|
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
- Select the modules that you want to install.
- Press and hold the Ctrl key to pick multiple Application Servers.
Select all the Application Servers into which you will install this
application.
- Click Apply.
- 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.
- On the left, select Applications > Enterprise
Application, then click the name of the application.
- Go to Additional Properties, then click Map modules to
application servers.
- Select the modules that you want to install or edit by placing a check
to the left of the module name.
- Press and hold the Ctrl key to select multiple Application
Servers.
- Click Apply.
- 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:
- This technote deals with individual Application Servers,
not clusters and cluster members.
- When you install the same application to multiple Application Servers
there is no load balancing or fail over between those Application
Servers.
- 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 |
|
|
|
|
|
|