Creating Data Sources
tomEE.xml is the file where all the data sources, JMS configurations are made. Any data source, which is needed by an application to run, has to be configured in this file. OIPA requires ADMINSREVERDS, ADMINSERVERSOURCEDS, ADMINSERVERSEARCHDS, and ADMINSERVERREADONLYDS datasources to be created.
Sample configuration of all the data sources which are required for OIPA to run:
TomEE.xml
<?xml version="1.0" encoding="UTF-8"?>
<tomee>
<!-- see http://tomee.apache.org/containers-and-resources.html -->
<!-- activate next line to be able to deploy applications in apps -->
<!-- <Deployments dir="webapps" /> -->
<Resource id="ADMINSERVERDS" type="javax.sql.DataSource">
jdbcDriver = oracle.jdbc.driver.OracleDriver
jdbcUrl = jdbc:oracle:thin:@localhost:1521:orcl
userName = V12
password = V12
jtaManaged = false
</Resource>
<Resource id="ADMINSERVERRESOURCEDS" type="javax.sql.DataSource">
jdbcDriver = oracle.jdbc.driver.OracleDriver
jdbcUrl = jdbc:oracle:thin:@localhost:1521:orcl
userName = V12
password = V12
jtaManaged = false
</Resource>
<Resource id="ADMINSERVERSEARCHDS" type="javax.sql.DataSource">
jdbcDriver = oracle.jdbc.driver.OracleDriver
jdbcUrl = jdbc:oracle:thin:@localhost:1521:orcl
userName = V12
password = V12
jtaManaged = false
</Resource>
<Resource id="ADMINSERVERREADONLYDS" type="javax.sql.DataSource">
jdbcDriver = oracle.jdbc.driver.OracleDriver
jdbcUrl = jdbc:oracle:thin:@localhost:1521:orcl
userName = V12
password = V12
jtaManaged = false
</Resource>
</tomee>
Configuring Ports:
The server.xml should be configured with unique port numbers.
Server.xml
<Connector port="8060" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" xpoweredBy="false" server="Apache TomEE" relaxedPathChars="[]|" relaxedQueryChars="[]|{}" />
Deploying OIPA
- Rename the OIPA war from the distribution to PASJava.war.
- Deploy OIPA war in webapps folder of TomEE application server.
- Navigate to the bin folder of TomEE and open the command prompt in this location to start the server by using the command
- catalina.bat run -windows
- ./catalina.sh start -linux
-
Test the deployment with the following url:
Note: If you change the context name, use that name in the URL instead of PASJava.