- Inline Processing Engine Configuration Guide
- Configuring IPE in Web Application Servers for Real Time Mode
- Configuring IPE in Tomcat
- Configuring Tomcat
4.3.2 Configuring Tomcat
Perform the following procedure to configure Tomcat:
- 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>
- 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 theserver.xml
file. - Update the
application-env.properties
file in$FIC_HOME/ILP/conf
directory after commenting out the parameterspring.profiles.active=JMS,JMSApplicationCache,JMSGateway,JMSFeedBackGa teway
and addingspring.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=
- Copy the following jars from the
FIC_HOME/realtime_processing/additionaljars/tomcat
directory to thefichome/realtime_processing/WEB-INF/lib
directory:jms-api-1.1-rev-1.jar
javax.ws.rs-api-2.0.1.jar
- Execute the
ant.sh
script to createilp.ear
andilp.war
files from thefichome/realtime_processing
directory. - Copy the
ilp.war
file to theTOMCAT_HOME/webapps
directory (not required to explode). - Restart the Tomcat server.
Parent topic: Configuring IPE in Tomcat