Exporting HATS portlets

To export a HATS portlet for deployment, from the HATS Projects view right-click the portlet project and select Export Project. Enter the target file name for the exported .war file in the Destination drop-down, and click Finish. Only the .war file is exported. The .ear file is used only for testing in the local test environment.

Once you have exported your HATS portlet .war file, you install it into WebSphere® Portal using the WebSphere® Portal administration tools.

If installing a standard portlet into WebSphere® Application Server, use the WebSphere® Application Server administrative console and consider the following instructions:
  • During the install, you must provide a context root name. This context root name is required in order to start the portlet .war file after installation is complete. During the install, deploy the .war file to server1, or the defined webserver instance.
  • After installing the portlet .war file, you can check the context root name and portlet name using the WebSphere® Application Server administrative console by expanding Applications and clicking Enterprise Applications. Click your .war file and click Context Root for Web Modules. Note the value for Web module and ContextRoot. These values are used to start the HATS Application.
  • To run the HATS application enter its URL into a browser. For example, enter http://host:port/context_root_name/portlet_name where host and port represent the host name and port for the WebSphere® Application Server host where you installed your portlet. For context_root_name, use the value you provided for Context root when installing the portlet .war file, and for portlet_name, use the value you provided for the Web module.