This document covers the following topics:
This document describes the installation of the Natural for Ajax web service for Optimize for Infrastructure. This web service enables Optimize for Infrastructure to measure and display certain key performance indicators (KPIs) of the Natural for Ajax installation. The Optimize for Infrastructure documentation contains the definitions of these KPIs and describes how to make the web service known to Optimize for Infrastructure.
The web service is delivered as a web application (NJXOptimizeService.war).
The web service is installed using the Administration Console of IBM WebSphere Application Server.
The following is assumed:
<host> is the name of the machine on which the application server is installed.
<port> is the name of the port where the application server is installed. In a default installation, this is port 9080.
<adminport> is the name of the port where the Administration Console is installed. In a default installation, this is port 9060.
To install the web service
Make sure the application server is running.
Open your web browser and enter the following URL:
http://<host>:<adminport>/ibm/console
This opens the Administration Console.
Deploy the web application NJXOptimizeService.war:
Open the tree node Applications > Application Types > WebSphere enterprise applications.
On the Enterprise applications page, choose .
Select WebSphere/NJXOptimizeService.war as the path to the new application. Then choose
.Choose
. If additional information is required, you will be prompted.On the Select installation options page, select the Deploy Web services check box. Then choose .
On the Map modules to servers page, select a cluster and server, select Natural for Ajax and choose . Then choose .
On the Map virtual hosts for Web modules page, select a virtual host, select Natural for Ajax and choose .
On the Map context roots for Web modules page, enter "NJXOptimizeService" as context root and choose .
On the Summary page, choose .
On the next page, choose
.The following topics are covered below:
JAX-WS 2.0
Download a version of JAX-WS from https://javaee.github.io/metro-jax-ws/.
Expand the JAX-WS archive and copy all *.jar files from the /lib directory into the WEB-INF/lib directory of the NJXOptimizeService web application.
Web Services Metadata for the Java Platform (JSR 181)
Download https://mvnrepository.com/artifact/javax.jws/jsr181-api.
Copy the .jar file into the WEB-INF/lib directory of the NJXOptimizeService web application.
The web service is installed using the Tomcat Manager.
The following is assumed:
<host> is the name or IP address of the machine on which Apache Tomcat is installed.
<port> is the port number of the Apache Tomcat instance. In a default installation, this is port 8080.
To install the web service
Start Apache Tomcat.
Open your web browser and enter the following URL:
http://<host>:<port>/manager/html
This opens the Tomcat Manager.
Deploy the web application file NJXOptimizeService.war:
Under Select WAR file to upload, select the path to the file NJXOptimizeService.war.
Choose
.It is assumed that http://<host>:<port> is the URL of your application server or web container.
To verify the installation
Enter the following URL in your web browser:
http://<host>:<port>/NJXOptimizeService/DataCollectionService?wsdl
The WSDL definition of the web service should be displayed.