The database connector is a web application and can be deployed under any Servlet container. The connector relies on the JDBC API. You can use any relational database as long as you have a JDBC driver for that database.
The Database Connector can be configured to run in:
- Any servlet container i.e. the frevvo tomcat bundle
- Standalone mode - Cloud customers, who are integrating with their database in their on-premise installation, may prefer this mode as it eliminates the need to run a full application on their in-house server. This mode may also be helpful for in-house customers who want to run the connector on a different server than the installation.
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.
These instructions apply to Cloud and in-house customers.
On this page:
Installation Steps
The Database Connector is available as a separate download. You can download it from here.
It is assumed that Cloud customers have already verified connectivity between the frevvo Cloud and your in-house database server.
Follow these steps to install the Database Connector:
- Install the connector in the tomcat bundle or Install the connector in Standalone mode
- Install the JDBC driver, if required
Once the connector is installed and up and running, you must configure it to integrate with your in-house database. Refer to the DB Connector Configuration topic for the details.
Install the connector in the tomcat bundle
This portion of the documentation assumes that the tomcat bundle is up and running and installed in c:\frevvo . We'll refer to this directory below as <frevvo-home>.
- Download the Database Connector.
- Unzip the database.zip file to a temporary location of your choice: e.g. c:\tmp. This will create a folder c:\tmp\database-connector-2.5.x. We'll refer to this directory as <db-tmp>
- Copy <db-tmp>\database.war to <frevvo-home>\tomcat\webapps.
- Install the JDBC driver, if required
Start the Insight server. and then start Live Forms.
The database.war does not extract after startup. You will not see a database subfolder in the <frevvo-home>\tomcat\webapps directory.
- Test the connector installation by copying this URL directly into your browser:
http://localhost:8082/database/status
- Change localhost and port 8082 to the host and port where you installed the connector.
- Verify that query validation page is loaded with status Passed for the built-in database BIRT and myStore querysets. You are now ready to configure the Database Connector.
If the Connector Test failed then:
- Review the previous installation steps
- See starting and testing the connector installation for more detailed instructions and common problems.
- If you cannot get the database connector working please see Getting Help to contact support.
Install the connector in Standalone mode
- Verify that Java 8 is installed and the Java_Home environment variable has been configured .
- Download the Standalone connector zipfile here.
- Unzip the database.zip file to a location of your choice. We will refer to this directory as <db-home>
- Install the JDBC driver, if required.
- You 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:
- Choose one of these methods to start the connector:
- Method 1: Using java in a command window
- Navigate to the <directory where you unzipped the database.zipfile>
- Type java -jar database.war
- Method 2: for Windows OS
- 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.
- Method 2 for *nix OS
- Execute the DB Connector.sh shell script for *nix operating systems.
- Method 1: Using java in a command window
- Choose one of these methods to start the connector:
- 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. You are now ready to configure the Database Connector.
If the Connector Test failed then:
- Review the previous installation steps
- See starting and testing the connector installation for more detailed instructions and common problems.
If you cannot get the database connector working please see Getting Help to contact support.
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. The database connector download database.zip comes with pre-installed drivers.
You MUST use a JDBC4 type driver, version 5.1.26 or later.
The download package comes with the pre-installed drivers listed below.
- MS SQL driver
- DERBY driver
If you don't find what you need pre-installed you will need 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 if you are using the jTDS SQL Server driver.
Once you have the driver you need, copy it to:
- <frevvo-home>/tomcat/lib if you are deploying the connector in the tomcat bundle
- <directory where you unzipped the database zip file>\database-connector-2.5.0\lib
It is also appropriate to copy the driver into any location that is in the CLASSPATH of your servlet container. In a tomcat installation another location would be <CATALINA_HOME>/lib.
Using the jTDS driver
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. This is not needed for the Microsoft's JDBC driver as it will be inferred for you.
Here is an example of the resource definition for the jTDS driver for a database named TEST:
queryset name="TEST"> <resource-def> <url>jdbc:jtds:sqlserver://dbhost;DatabaseName=TEST;</url> <validationQuery>SELECT 1</validationQuery> <user>dbconnector</user> <password>************</password> </resource-def> ...
If you are using the dbconnector.properties file to define your datasources you must add the validationQuery property.
Here is the same example as above as it would appear in the dbconnector.properties file:
dbconnector.queryset@TEST.resource-def.url=jdbc:jtds:sqlserver://dbhost;databaseName=TEST; dbconnector.queryset@TEST.resource-def.validationQuery=SELECT 1 dbconnector.queryset@TEST.resource-def.user=dbconnector dbconnector.queryset@TEST.resource-def.password=*******
DB Connector Quick Demo
The database connector contains working sample databases with some test data. The BIRT (ClassicModels) and myStore querySets are preloaded with in-memory Derby databases. This make it very easy to try out the connector. No configuration is necessary.
Follow the steps below to deploy the connector in Standalone mode or the tomcat bundle and you can get started very quickly.
The In-house tomcat bundle:
- Download the v7.2.1 tomcat bundle from the frevvo website.
- Extract the files to a location of your choice. We will refer to this directory as <frevvo-home>.
- Navigate to the <frevvo-home>\ext\connectors directory.
- Unzip the database.zip file to a temporary location of your choice: e.g. c:\tmp. This will create a folder c:\tmp\database. We'll refer to this directory below as <db-tmp>
- Copy <db-tmp>\database.war to <frevvo-home>\tomcat\webapps.
Start the Insight server. and then start Live Forms.
- Test the connector installation by copying this URL directly into your browser:
http://localhost:8082/database/statusAfter performing these steps you will have:
- Successfully installed the database connector and retrieved data from the built-in test database
- Create a tenant.
- Create a designer user in the tenant
- Download the Database Connector Application and upload it to the designer user for some example forms that demonstrate the power of the Database Connector using built-in databases.
Standalone Mode:
- Download the Standalone connector zipfile here.
- Unzip the database.zip file to a location of your choice. We will refer to this directory as <db-home>
- 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:
- Choose one of these methods to start the connector:
- Method 1: Using java in a command window
- Navigate to the <db-home> directory.
- Type java -jar database.war
- Method 2: for Windows OS
- 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.
- Method 2 for *nix OS
- Execute the DB Connector.sh shell script for *nix operating systems.
- Method 1: Using java in a command window
- Choose one of these methods to start the connector:
- 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.
- 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.