Verifying the solution
Access both versions of the application through a web browser to verify that both versions of the application are available on the platform. When you have verified the solution, make the older version of the application unavailable.
Procedure
- Open a web browser. In the address bar, enter the URL for
the new version of the application. Use the format http://hostname:port/demo.liberty.appV1.1/ with components as follows:
- hostname is the name or IP address of the host that the Liberty HTTP server listens on, which is specified in the -Dcom.ibm.cics.jvmserver.wlp.server.host JVM system property in the JVM profile for the Liberty JVM server.
- port is the listener port for the Liberty HTTP server, which is specified in the -Dcom.ibm.cics.jvmserver.wlp.server.http.port JVM system property in the JVM profile for the Liberty JVM server.
- /demo.liberty.appV1.1/ is the path that you specified in the URIMAP resource for the application and in the Web-ContextPath header in the OSGi bundle manifest.
- Verify that the changes you made for the new version of the application are displayed in the web browser. In the application used in the demo, new information appears on the web page, and a different background image is displayed.
- In a new browser tab or instance, enter the URL for the older version of the application. Verify that the older version of the application is displayed, without the changes that you made for the newer version. Both versions of the application are now available concurrently on the platform. Users can choose between the versions by using the appropriate URL for the older or newer application version.
- When all the users of the application have migrated to
the newer version, you can choose to make the older version unavailable
to users, so that they can no longer access it.
- In the Cloud Explorer view, locate the older version of the installed application in either the Platform hierarchy or the Application hierarchy.
- Right-click the application name and click Make Unavailable, then click OK to make the older version of the application unavailable.
- Refresh the web page in the browser where you opened the older version of the application, and verify that the older version of the application can no longer be accessed.
- Refresh the web page in the browser where you opened the new version of the application, and verify that the new version of the application can still be accessed.
Results
Previous topic: Deploying the new version of the application
verify.html |
Last updated: Sunday, 4 June 2017