Step 4: Deploy the application

Once you have created the EAR file and configured the JDBC driver and data source for the application, the next step is to install the application into your WebSphere Application Server instance. The WebSphere Application Server administrative console is used for this step. To start the console, open this URL in your browser:

http://your.server.name:port/admin

where your.server.name is the hostname of your iSeries server and port is your administrative port number. The administrative port number was assigned when you created your instance. For more information about how to display your port numbers, see the The dspwasinst script topic. For more information about the WebSphere Application Server administrative console, see the The administrative console topic.

To deploy the EAR file into your application server, use the Application Installation Wizard. To use the wizard, follow these steps:

  1. In the topology tree, expand Applications, and click Install new application

  2. In the Local path field, click Browse.

  3. Navigate to Deployed_HitCount.ear, and click Open.

  4. Click Next.

  5. On the Prepare for application install page, accept all defaults, and click Next.

  6. On the Install New Application Step 1 page, accept all defaults, and click Next.

  7. On the Install New Application Step 2 page, accept all defaults, and click Next.

  8. On the Install New Application Step 3 page, accept all defaults, and click Next.

  9. On the Install New Application Step 4 page, specify jdbc/HitCount in the JNDI name field, and click Next.

  10. On the Install New Application Step 5 page, accept all defaults, and click Next.

  11. On the Install New Application Step 6 page, accept all defaults, and click Next.

  12. On the Install New Application Step 7 page, accept all defaults, and click Next.

  13. On the Install New Application Step 8 page, accept all defaults, and click Next.

  14. On the Install New Application Step 9 page, review the summary, and click Finish.

  15. Once you receive a message that the EAR file installed correctly, click Save in the toolbar. Click Save again to update the master repository with your changes.

  16. In the topology tree, expand Applications, and click Enterprise Applications.

  17. Check HitCount, and click Start.

    You will receive a message stating that the application started successfully.

  18. Restart your application server.

    • Enter the Start Qshell (STRQSH) command on an OS/400 command line.
    • On the Qshell command line, enter this command:
      cd /QIBM/ProdData/WebAS5/Base/bin
    • On the Qshell command line, enter this command:
      stopServer -instance basicconfig
    • Once the instance has ended, start it again by entering this command:
      startServer -instance basicconfig

Continue Next: Verify the application