Application server configuration

As indicated in Prerequisites, REST Services can be deployed to WebSphere Application Server or WebSphere Liberty. Regardless of which application server you are using, the basic tasks are the same.

The application server might support multiple ways to accomplish the same task. The following sections suggest the most common ways to perform each of the following tasks:

  • Create the restcfgdir environment variable
  • Create a shared library definition which includes the ODApi, gson, commons-pool, and log4j jar files
  • Deploy the cmod-rest.war file

Making native libraries available to the application server

The simplest way to ensure that the application server will be able to load the required native libraries is to add them to the appropriate system library path environment variable. For AIX and Linux, these variables should be added to the shell environment that is used to start the application server. For Windows platforms, add them to the System Environment PATH variable. The following examples show the defaults for AIX, Linux, and Windows platforms. Refer to your installation to confirm the location prior to setting the values.

AIX

LIBPATH=/opt/IBM/ondemand/V10.5/www:/opt/IBM/ondemand/V10.5/lib64

Linux

LD_LIBRARY_PATH=/opt/ibm/ondemand/V10.5/www:/opt/ibm/ondemand/V10.5/lib64

Windows

PATH=C:\Program Files\IBM\OnDemand\V10.5\www;C:\Program Files\IBM\OnDemand\V10.5\bin