Mapping an application to JVMs or web servers lets you control what servers will be able to produce the application.
- In the left panel of the WebSphere admin console, expand Applications and select All applications.
- Select the application that you want to map.
- Select Manage modules.
In this example, the Beta application is mapped to server01 is node02 in cell was1Cell01.
This is a very simple configuration, where the application is running on a single application server.
One web server / one JVM
In this example, the Beta application is running on both server01 (the JVM) and IHS (the web server).
This is a fairly common for applications that are not mission critical. In this example, the web server is probably configured to produce the applications running on the JVM.
One web server / two JVMs
In this example, the Beta application is running on cluster 1 (two JVMs) and IHS (one web server).
This introduces some high availability capabilities. If app server 1 goes down, the application will still be able to be produces by app server 2.
This can also be done via the wsadmin command.
./wsadmin.sh -user your_username -password your_password -c "AdminApp.edit('your_ear', '[ -MapModulesToServers [[ your_app Example.war,WEB-INF/web.xml WebSphere:cell=your_cell,cluster=your_cluster+WebSphere:cell=your_cell,node=your_node-node,server=your_web_server ]]]' )" ./wsadmin.sh -user your_username -password your_password -c "AdminConfig.save()"