Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

These instructions are for installing FlexDeploy on an existing Tomcat server.  If you are installing a new server, see Installing FlexDeploy with included Tomcat for a simplified installation which includes the Tomcat 8.5.11 server.  If you wish to use an existing Tomcat server, or to use a different version of Tomcat, please continue with this installation.

...

Open context.xml for editing. It is located in the <TOMCAT_HOME>/conf folder. Add one of the following into your context.xml depending on your database type.

...

Tip
titleExample JDBC URL (CONNECT_STRING)
  • Oracle
    • Localhost XE connection will look like this. jdbc:oracle:thin:@localhost:1521:XE
    • SID based JDBC URL Syntax - jdbc:oracle:thin:@HOSTNAME:PORT:SID
    • Service Name based JDBC URL Syntax - jdbc:oracle:thin:@//HOSTNAME:PORT/SERVICENAME


Code Block
languagexml
themeRDark
titleOracle
<Resource name="jdbc/flexdbDS" auth="Container"

...


    type="oracle.jdbc.pool.OracleDataSource"

...


    factory="oracle.jdbc.pool.OracleDataSourceFactory"

...


    url="

...

**CONNECT_STRING**"
    user="fd_admin"

...


    password="

...

**FD_ADMIN_

...

PASSWORD**"
    connectionCachingEnabled="true"

...


    connectionCacheProperties="{InitialLimit=0, MinLimit=0, MaxLimit=100, ConnectionWaitTimeout=60, InactivityTimeout=60, AbandonedConnectionTimeout=60, PropertyCheckInterval=30}"

...


    validationQuery="select 1 from dual"

...


    testOnBorrow="true"

...


    useLocalSessionState="true"

...


    defaultAutoCommit="false"

...


/>


Code Block
languagexml
themeRDark
titlePostgresql
<Resource name="jdbc/flexdbDS" auth="Container"

...


    type="javax.sql.DataSource"

...


    driverClassName="org.postgresql.Driver"

...


    url="

...

**CONNECT_STRING**"
    username="fd_admin"

...


    password="

...

**FD_ADMIN_

...

PASSWORD**"
    maxTotal="100"

...


    maxIdle="20"

...


    validationQuery="select 1"

...


    testOnBorrow="true"

...


    useLocalSessionState="true"

...


    defaultAutoCommit="false"

...


/>


Code Block
languagexml
themeRDark
titleMySQL
<Resource name="jdbc/flexdbDS" auth="Container"

...


    type="javax.sql.DataSource"

...


    username="fd_admin"

...


    password="

...

**FD_ADMIN_

...

PASSWORD**"
    driverClassName="com.mysql.jdbc.Driver"

...


    url="

...

**CONNECT_STRING**"
    maxTotal="100"

...


    maxIdle="10"

...


    initialSize="10"

...


    validationQuery="SELECT 1"

...


    testOnBorrow="true"

...


    useLocalSessionState="true"

...


    defaultAutoCommit="false"

...


/>

Configure Tomcat Environment

...