Configuring the Liberty server

This scenario uses a servlet running in Websphere Liberty Profile.

To configure the Liberty server perform the following steps:
  1. 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.
  2. Add the following configuration to the server.xml file to add the bundle to the Liberty runtime:
    <bundleRepository>
      <fileset dir="/home/cicstg/bundles" scanInterval="10">
      </fileset>
    </bundleRepository>
    The dir parameter points to the location where the bundle was extracted to.
  3. 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..
  4. 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>
  5. Add the following configuration to the server.xml file to add the application to the Liberty runtime:
    <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"/>
    
    The location parameter is the where the application file was stored.
  6. Set JAVA_HOME to point to a Java™ 7 installation.