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 8 is required to run the web service. Therefore, your application server or web container must be started with Java 8.
The following application servers are supported:
Wildfly Application Server 10 and 11.
IBM WebSphere Application Server 8.5.
The following web container is supported:
Apache Tomcat 7, 8 and 9.
The following topics are covered below:
The distributables for the different Wildfly Application Server versions are contained in the following directories:
Version | Directory |
---|---|
WildFly 10 and 11 | WildFly |
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:
You need to add JAX-WS to your NJXOptimizeService web application:
Download a version of JAX-WS from http://jax-ws.java.net/.
Expand the JAX-WS archive and copy all *.jar file from the /lib directory into the WEB-INF/lib directory of the NJXOptimizeService web application.
As of Java 11, the packages of the JavaBeans Activation Framework (JAF) have been removed from the distribution. As a consequence, applications running on Java 11 need the activation*.jar copied into the WEB-INF/lib directory of the NJXOptimizeService web application.
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.