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 following topics are covered below:
Java 7 or 8 is required to run the web service. Therefore, your application server or web container must be started with Java 7 or 8.
The following application servers are supported:
JBoss Application Server 7.1 and WildFly 8.
IBM WebSphere Application Server 8.5.
The following web container is supported:
Apache Tomcat 7 and 8.
The following topics are covered below:
The distributables for the different JBoss Application Server versions are contained in the following directories:
Version | Directory |
---|---|
JBoss Application Server 7 and WildFly 8 | JBoss7-WildFly8 |
For JBoss Application Server 7, copy the file NJXOptimizeService.war into the directory <jboss>/standalone/deployments, where <jboss> is your JBoss installation directory.
The following topics are covered below:
For IBM WebSphere Application Server, there are no specific prerequisites.
The distributables for IBM WebSphere Application Server are contained in the directory WebSphere.
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 must be installed. This component is available for download under http://jax-ws.java.net/.
To install JAX-WS 2.0
Download the JAX-WS 2.0 archive from the site indicated above.
Unpack the archive.
Copy the contents of the lib directory into the lib directory of your Apache Tomcat installation.
The distributables for Apache Tomcat are contained in the directory Tomcat.
The web service is installed using the Tomcat Manager.
The following is assumed:
<host> is the name of the machine on which Apache Tomcat is installed.
<port> is the name of the port where Apache Tomcat is installed. In a default installation, this is port 8080.
<tomcat> is the path to the directory in which Apache Tomcat is installed.
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.