Configuring the Liberty server
This scenario uses a servlet running in Websphere Liberty Profile.
To configure the Liberty server perform the following steps:
- Extract the CICS® TG Client API bundle, com.ibm.ctg.client-1.0.0.jar, from the CICS TG SDK package, cicstgsdk/api/java/runtime to a directory on the local file system.
- Add the following configuration to the server.xml file
to add the bundle to the Liberty runtime:
The dir parameter points to the location where the bundle was extracted to.<bundleRepository> <fileset dir="/home/cicstg/bundles" scanInterval="10"> </fileset> </bundleRepository> - Download the sample application, com.ibm.ctg.samples.osgi.eci.app_1.0.0.0.eba,from the CICS TG SDK package, cicstgsdk/api/java/samples to a directory on the local file system..
- Add the following configuration to the server.xml file
to configure the required Liberty features:
<featureManager> <feature>jsp-2.2</feature> <feature>blueprint-1.0</feature> <feature>wab-1.0</feature> </featureManager> - Add the following configuration to the server.xml file
to add the application to the Liberty runtime:
The location parameter is the where the application file was stored.<osgiApplication id="com.ibm.ctg.samples.osgi.eci.app" location="/home/cicstg/com.ibm.ctg.samples.osgi.eci.app_1.0.0.0.eba" name="com.ibm.ctg.samples.osgi.eci.app"/> - Set JAVA_HOME to point to a Java™ 7 installation.