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

  1. 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.
  2. 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.
  3. 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.
  4. 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.
    1. In the Cloud Explorer view, locate the older version of the installed application in either the Platform hierarchy or the Application hierarchy.
    2. Right-click the application name and click Make Unavailable, then click OK to make the older version of the application unavailable.
    The Make Unavailable action operates on the application entry points. The application entry point that you declared for the URIMAP resource controls users' access to the application, so you do not need to disable or discard the older version of the application to prevent users from accessing it. You can disable the older version of the application in the future when you are confident that it is unlikely to be required, or discard it if it will definitely not be required again.
  5. 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.
  6. 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

You have now demonstrated and verified that you can make different versions of a web application available to users concurrently in CICS® regions that are part of a platform.


verify.html | Timestamp icon Last updated: Sunday, 4 June 2017