For up-to-date product documentation, see the IBM MobileFirst Foundation Developer Center.
Connecting MobileFirst Server installed on Apache Tomcat to the Rational License Key Server
You must install the Rational® Common Licensing native and Java™ libraries on the Apache Tomcat application server before you connect MobileFirst Server to the Rational License Key Server.
Before you begin
- Rational License Key Server 8.1.4.8 or later must be installed and configured. The network must allow communication to and from MobileFirst Server by opening the two-way communication ports (lmrgd and ibmratl). For more information, see Rational License Key Server Portal and How to serve a license key to client machines through a firewall.
- Make sure that the license keys for IBM MobileFirst™ Platform Foundation are generated . For more information about generating and managing your license keys with IBM® Rational License Key Center, see IBM® Support - Licensing and Obtaining license keys with IBM Rational License Key Center.
- MobileFirst Server must be installed and configured with the option Activate token licensing with the Rational License Key Server on your Apache Tomcat as indicated in Installation overview for token licensing.
Parent topic: Install and configure for token licensing
Install Rational Common Licensing libraries
Procedure
- Choose the Rational Common Licensing native library. Depending on your operating system and the bit version of the Java Runtime Environment (JRE) on which your Apache Tomcat is running, we must choose the correct native library in product_install_dir/MobileFirstServer/tokenLibs/bin/your_corresponding_platform/the_native_library_file. For example, for Linux x86 with a 64-bit JRE, the library can be found in product_install_dir/MobileFirstServer/tokensLibs/bin/Linux_x86_64/librcl_ibmratl.so.
- Copy the native library to the computer that runs MobileFirst Server administration service. The directory might be ${CATALINA_HOME}/bin.
Note: ${CATALINA_HOME} is the installation directory of your Apache Tomcat.
- Copy rcl_ibmratl.jar file to ${CATALINA_HOME}/lib. The rcl_ibmratl.jar file is a Rational Common Licensing Java library that can be found in product_install_dir/MobileFirstServer/tokenLibs directory. The library uses the native library that is copied in Step 2, and can be loaded only once by Apache Tomcat. This file must be placed in the ${CATALINA_HOME}/lib directory or any directory in the path of Apache Tomcat common class loader.
Important: The Java virtual machine (JVM) of Apache Tomcat needs read and execute privileges on the copied native and Java libraries. Both copied files must also be readable and executable at least for the application server process in your operating system.
- Configure the access to the Rational Common Licensing library by the JVM of your application server. For any operating systems, configure the ${CATALINA_HOME}/bin/setenv.bat file (or setenv.sh file on UNIX) by adding the following line:
- Windows:
- set CATALINA_OPTS=%CATALINA_OPTS% -Djava.library.path=absolute_path_to_the_previous_bin_directory
- UNIX:
- CATALINA_OPTS="$CATALINA_OPTS -Djava.library.path=absolute_path_to_the_previous_bin_directory"
Note: If you move the configuration folder of the server on which the administration service is running, we must update the java.library.path with the new absolute path.
- Configure MobileFirst Server to access Rational License Key Server. In ${CATALINA_HOME}/conf/server.xml file, look for the <Context> element of the administration service application, and add in these JNDI configuration lines.
<Environment name="mfp.admin.license.key.server.host" value="rlks_hostname" type="java.lang.String" override="false"/> <Environment name="mfp.admin.license.key.server.port" value="rlks_port" type="java.lang.String" override="false"/>
- rlks_hostname is the host name of the Rational License Key Server.
- rlks_port is the port of the Rational License Key Server. By default, the value is 27000.
For more information about the JNDI properties, see JNDI properties for Administration Services: licensing.
Install on Apache Tomcat server farm
For configuring the connection of MobileFirst Server on Apache Tomcat server farm, we must follow all the steps that are described in Install Rational Common Licensing libraries for each node of your server farm where the MobileFirst Server administration service is running. For more information about server farm, see Server farm topology and Install a server farm.