4.3.2 Configuring Tomcat

Perform the following procedure to configure Tomcat:

  1. Create the datasource for ILP context in Tomcat by editing the server.xml file in the <TOMCAT_HOME_DIR>/conf directory.
    The following example is a sample configuration. Update your database details accordingly. Make sure the context name matches the directory name under webapps. In the following example, ILP is the context name
    <Context path="/ILP"
              docBase="/scratch/ofsaobie/apache-tomcat- 8.0.21/webapps/ILP" debug="0"
              reloadable="false" crossContext="true"><Loader delegate="true"/><Resource
            auth="Container"name="jdbc/FICMASTER" type="javax.sql.DataSource"driverClassName="oracle.jdbc.driver.OracleDriver" username="act_obiconf"password="password" url="jdbc:oracle:thin:@whf00aqr:1521/DEVUT08SPRINT"
              maxTotal="100"maxIdle="30"maxWaitMillis="10000"
              removeAbandoned="true" removeAbandonedTimeout="60"
              logAbandoned="true"/><Resource
            auth="Container"name="jdbc/OFSAAAIINFO"
              type="javax.sql.DataSource" driverClassName="oracle.jdbc.driver.OracleDriver" username="act_obiatm"
            password="password"url="jdbc:oracle:thin:@whf00aqr:1521/DEVUT08SPRINT" maxTotal="100"maxIdle="30"maxWaitMillis="10000" removeAbandoned="true"
            removeAbandonedTimeout="60" logAbandoned="true"/><Resource auth="Container"name="jdbc/OFSAAAIINFOCNF"
            type="javax.sql.DataSource" driverClassName="oracle.jdbc.driver.OracleDriver"
            username="act_obiatm"password="password" url="jdbc:oracle:thin:@whf00aqr:1521/DEVUT08SPRINT"
            maxTotal="100"maxIdle="30"maxWaitMillis="10000" removeAbandoned="true"
            removeAbandonedTimeout="60" logAbandoned="true"/>  </Context>
  2. Update the following parameters in the install.properties file in the $FIC_HOME/ILP/conf directory:
    sql.config.datasource.jndi.name=java:comp/env/jdbc/FICMASTER sql.atomic.datasource.jndi.name=java:comp/env/jdbc/<RTI_INFODOM> sql.metadom.datasource.jndi.name=java:comp/env/jdbc/<RTI_INFODOM>CNF

    Note:

    Name should match the Resource Name defined in the server.xml file.
  3. Update the application-env.properties file in $FIC_HOME/ILP/conf directory after commenting out the parameter
    spring.profiles.active=JMS,JMSApplicationCache,JMSGateway,JMSFeedBackGa teway
    and adding
    spring.profiles.active=
    The following is an example and the changes shown will remove the JMS dependencies for IPE.
    #
    # The spring profiles to activate. The list of available profiles are:
    # 1. JMS - To activate the use of JMS infrastructure. This is required for
    #	activating any other JMS profile
    # 2. JMSGateway - To activate JMS interface for receiving source entities
    # 3. JMSApplicationCache - To activate JMS for receiving cache refresh messages
    # 4. JMSFeedBackGateway - To activate the Feedback message from APPS like FCCM in JMS
    #
    #spring.profiles.active=JMS,JMSApplicationCache,JMSGateway,JMSFeedBackG ateway
    spring.profiles.active=
    
  4. Copy the following jars from the FIC_HOME/realtime_processing/additionaljars/tomcat directory to the fichome/realtime_processing/WEB-INF/lib directory:
    jms-api-1.1-rev-1.jar
    javax.ws.rs-api-2.0.1.jar
  5. Execute the ant.sh script to create ilp.ear and ilp.war files from the fichome/realtime_processing directory.
  6. Copy the ilp.war file to the TOMCAT_HOME/webapps directory (not required to explode).
  7. Restart the Tomcat server.