Versions Compared

Key

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

...

Section
Column

The Database Connector is a web application that allows you to easily integrate your forms and can be deployed under any Servlet container or run in a simple Standalone mode. The connector relies on the JDBC API. You can use any relational database as long as you have a JDBC driver for that database.

These instructions apply to Cloud and in-house customers.

Column
width300px

On this page:

Table of Contents
maxLevel1

Installation Steps

The Database Connector can be configured to run in:

...

flows with your external database. The connector can be added to your  tomcat bundle. A Standalone Bundle is also available.

Info

frevvo only supports/certifies the Database Connector running in the tomcat container. Refer to our  Supported Platforms for the list of Application Servers and databases supported/certified by frevvo.

Cloud customers, who are integrating with their database in their on-premise installation and in-house customers, can choose to:

  • install the Database Connector in your tomcat bundle on their in-house server OR
  • install the Standalone Bundle on their in-house server

We recommend the frevvo-tomcat bundle for in-house customers. Follow the frevvo-tomcat bundle Instructions.

We recommend the Standalone bundle for cloud customers as no additional servlet container is needed.

...

Standalone is also useful for in-house customers who want to run the connector on a different server than the server installation.

...

Follow these instructions:

Follow the Standalone Bundle Instructions

The Database Connector requires a JDBC driver for your database. Some pre-installed drivers are included with the connector. See Install a JDBC driver to see if the driver for your database is provided.

The Database Connector contains a working sample Derby database with BIRT and MyStore query sets and some test data. This makes it very easy to test if the DB Connector is up and running when your installation is complete.

When you complete the Installation instructions then follow the Connector Configuration Instructions - detailed steps to integrate the connector with your database.

Cloud customers must also verify connector connectivity to the frevvo Cloud Server.

Column
width300px

On this page:

Table of Contents
maxLevel1

Installation Steps

...

When you complete installation instructions then follow the Connector Configuration Instructions - detailed steps to integrate the connector with your database.

...

Cloud customers must also verify connector connectivity to the frevvo Cloud Server.

...

These instructions assume that your frevvo-tomcat bundle is already installed and running successfully.

  1. Stop your server.
  2. Download the database.war into warfile that is compatible with the version of  that you are running to <frevvo-home>\tomcat\webapps. Rename the file to database.war if necessary.
  3. Install the JDBC driver
  4. Start your server

When the status returns Passed for each queryset, you are ready to configure the Database Connector.


Standalone Instructions

Note

Review Supported Platforms. Verify that the certified version of Java is installed and the Java_Home environment variable has been configured .

  1. Download the Database Connector Standalone bundle.
  2. Unzip the database.zip file to a location of your choice. We will refer to this directory as <db-home>
  3. Install the JDBC driverYou can start the connector using plain java command or execute one of the files in this directory to install the DB Connector as a Windows service or *nix console instance:Driver
  4. Choose one of these methods to start the connector:

    • Method 1: Using java in a command window
      1. Navigate to
    the <directory where you unzipped the database.zipfile>
      1. <db-home>\database-connector-2.5.x .Type java -jar database.war
    • Method 2: for Windows OS
    Install the DB Connector as a Windows service by double clicking the
      1. Double click the <db-home>\database-connector-2.5.x\Install-Service.bat file to install the connector as a Windows service. Click the Start-DBConnector-Service.bat to start

    the service.
  5. Method 2 for *nix OS
    1. Execute the  DB Connector.sh shell script for *nix operating systems.
  6. Test the connector installation by copying this URL directly into your browser:
    http://localhost:8081/database/status - Note the standalone connector runs on port 8081 by default.  
    When the status returns Passed for each queryset, you are ready to configure the Database Connector.
    Image Removed

    If the status returns failures or disabled Connector Test failed then:

  7. Review the previous installation steps
  8. See starting and testing the connector installation for more detailed instructions and common problems.
     
      1. it

        Expand
        titleClick

...

      1. to see standalone bundle content details

        Excerpt

        The

...

      1. Standalone Database Connector bundle includes the files shown in the image:

        Image Modified

        Note the files in the database-connector-2.5.x directory that are used to manage the Database Connector as services on *nix and Windows operating systems: These files should be run as an administrator.

        • Install-Service.bat - installs the Database Connector on a Windows system as a service named frevvo Database Connector.

        • Uninstall-service.bat - uninstalls the frevvo Database Connector on a Windows operating system

        • Start-DB Connector-Service.bat - starts the frevvo Database Connector on a Windows operating system

        • Start-DBConnector.sh - starts the frevvo Database Connector as a *nix console instance.

        • Restart-DBConnector-Service.bat - restarts the frevvo Database Connector on a Windows operating system

        • Restart-DBConnector.sh - restarts the frevvo Database Connector as a *nix console instance.

        • Stop-DBConnector-Service.bat - stops the frevvo Database Connector on a Windows operating system.

        • Stop-DbConnector.sh - stops the frevvo Database Connector *nix console instance.

...

    • Method 3 for *nix OS
      1. Execute the  DB Connector.sh shell script for Unix/Linux operating systems.
    • Method 4 for Linux
      1. The Database Connector can also run as a service

...

      1. under Linux systemd

...


    Expand
    titleClick here for the details

    It is possible to manage the Database Connector using systemd ‘service’ scripts.

    1. Copy the sample service file located in /bin/dbconnector.service to /etc/systemd/system

...

    1. Review it's contents and

...

    1. Make sure it is executable.

    You can now use systemd to manage the dbconnector service:

    • systemctl start dbconnector.service

    • systemctl stop dbconnector.service

    • systemctl restart dbconnector.service

    • systemctl status dbconnector.service

    To flag the service to start automatically on system boot use the following command:

    Code Block
    systemctl enable dbconnector.service

    Consult the service unit configuration man page for more details

...

  1. .

  2. Test the connector installation by copying this URL directly into your browser:

    http://localhost:8081/database/status - Note the standalone connector runs on port 8081 by default.  

  3. When the status returns Passed for each queryset, you are ready to configure the Database Connector.

    Image Added

  4. If the status returns failures or disabled Connector Test failed then:

    1. Review the previous installation steps
    2. See starting and testing the connector installation for more detailed instructions and common problems.

Install a JDBC

...

Driver

The connector relies on the JDBC API. You can use any relational database as long as you have a JDBC driver for that database.

Warning

You MUST use a JDBC4 type driver, version 5.1.26 or later.

The  download package comes with the pre-installed drivers preinstalled drivers are listed below.

  • MS SQL driver - This is embedded in the database.war file with standalone bundle, however it is not embedded in the frevvo-tomcat bundle.

  • DERBY driver

If you don't find what you need your database driver is not pre-installed, you will need have to locate a driver compatible to your database. Usually you can download your driver from the internet. Try one of these locations. Refer to the Using the jTDS driver topic for information if you are using the jTDS SQL Server driver.

Once you have the driver you need, copy it to:Copy your driver to

  • <frevvo-home>/tomcat/lib if you are deploying the connector in the frevvo-tomcat bundle
  • <directory where you unzipped the Database Connector Standalone bundle <db-home>\database-connector-2.5.x\lib Standalone bundle

Info
  • When running the Database Connector in Standalone mode, the MSSQL driver is embedded in the database.war. However, you You MUST copy the MS SQL (sqljdbc.jar) to the <frevvo-home>/tomcat/lib directory if you are deploying when running the connector in the frevvo-tomcat bundle
  • There are some special considerations when defining datasources if you are using the jTDS driver. The validationQuery must be included in the resource definition. This query is used during the validation sequence.
  • It is also appropriate to AND using MS SQL as your external database
  • The jTDS driver requires an adidtional property, Refer to Datasource Definition Examples  for information
  • You can copy the driver into any location that is in the CLASSPATH of your servlet tomcat container. In a tomcat installation another Another location would be <CATALINA_HOME>/lib.

DB Connector Quick Demo

The BIRT (ClassicModels) and myStore querySets are preloaded with in-memory Derby databases and test data.  This make it very easy to try out the connector.  No configuration is necessary.

Follow the steps below to deploy the connector in the the frevvo-tomcat bundle and you can get started very quickly

Note

Review Supported Platforms. Verify that the certified version of Java is installed and the Java_Home environment variable has been configured .

  1. Download the  the latest frevvo-tomcat bundle from the frevvo website.

  2. Download the Database Connector warfilewar file. Rename the file to database.war.

  3. Extract the tomcat bundle zipfile to a location of your choice. We will refer to this directory as <frevvo-home>.

  4. Copy database.war to <frevvo-home>\tomcat\webapps.

  5. Start the Insight server. and , then start Live Forms.

    Expand
    titleClick here for the instructions to start the Insight Server and Live Forms

    Insert excerpt
    Planning for v7.3
    Planning for v7.3
    nopaneltrue

  6. Test the connector installation by copying this URL directly into your browser:
    http://localhost:8082/database/status
    After performing these steps you will have: Successfully successfully installed the  database connector and retrieved data from the built-in test database
  7. Log into as the superuser (admin@d, admin). Create a tenant.
  8. Create a designer user in the tenant
  9. Download the Database Connector Application and , then upload it to the your designer user for . This application includes some example forms that demonstrate the power of the Database Connector using built-in databases.

Excerpt
hiddentrue

Standalone Mode:

  1. Download the Standalone connector zipfile here.
  2. Unzip the database.zip file to a location of your choice. We will refer to this directory as <db-home>
  3. Start the connector using plain java command or execute one of the files in this directory to install the DB Connector as a Windows service or *nix console instance:
    1. Choose one of these methods to start the connector:
      1. Method 1: Using java in a command window
        1. Navigate to the <db-home> directory.
        2. Type java -jar database.war
      2. Method 2: for Windows OS
        1. Install the DB Connector as a Windows service by double clicking the Install-Service.bat file. Click the Start DBConnector Service.bat to start the service.
      3. Method 2 for *nix OS
        1. Execute the  DB Connector.sh shell script for *nix operating systems.
  4. Test the connector installation by copying this URL directly into your browser:

    http://localhost:8081/database/status

    • Note the standalone connector runs on port 8081 by default. The port number can be changed when you configure the DB Connector in the next step. Use port 8081 to verify that the Db Connector is up and running for now. 
    • Verify that query validation page is loaded with status Passed for the built-in database BIRT and myStore querysets.



  5. Download the Database Connector Application and upload it to the designer user in your Cloud tenant for some example forms that demonstrate the power of the Database Connector using built-in databases.