Versions Compared

Key

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

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.

  1. A Servlet Container compatible with the Servlet 2.5 specification. For instance, Tomcat (6 or higher) or Jetty (6 or higher). If you have installed the

...

  1. tomcat  In-house bundle you already have what you need.
  2. A JDBC driver for your database.

The database connector download comes with several pre-installed drivers.

...

See Install a JDBC driver

...

 below.

Column
width240px

On this page:

Table of Contents
maxLevel1

 

Installation Steps

Throughout this documentation we are using the frevvo-tomcat  tomcat bundle as the installation location for the database connector. This is just an example as the connector will work under any compatible servlet container. This documentation assumes that the frevvo-tomcat  tomcat bundle is installed in c:\frevvo. We'll refer to this directory below as <frevvo-home>.

If you have already downloaded the frevvo-tomcat bundle for Live Forms Inalready downloaded the latest v5.1 tomcat bundle for  In-house then you already have the database connector. It is located in the unpacked frevvo-tomcat unpacked  tomcat bundle in <frevvo-home>\frevvo\ext\connectors and is named database.zip. If not or if you wish to download the latest version then [http://www.frevvo.com/frevvo/web/download/DB download the database connector] from the frevvo web site. You will need to login with your frevvo account 

Follow these steps to install the connector:

1) &nbsp;&nbsp; Unpack 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>

2) &nbsp;&nbsp; Copy <db-tmp>\database.war to <frevvo-home>\tomcat\webapps*

  • If

...

  •  is running this will automatically expand database.war into a <frevvo-home>\webapps\database sub folder

3) &nbsp;&nbsp;If frevvo is  If  is not running, start frevvo : Double  Double click <frevvo-home>\start-frevvo*

  • This will start

...

  •  and it will automatically expand database.war into a <frevvo-home>\webapps\database sub folder

4) &nbsp;&nbsp; [[#Starting_and_Testing_the_Connector |  Test the connector installation]] by  by copying this Url directly into your browser:

If the Connector Test failed then:

  1. Review the previous installation steps
  2. See [[#Starting_and_Testing_the_Connector | starting and testing the connector installation]] for  for more detailed instructions and common problems.
  3. If you cannot get the database connector working please see [[Getting _Help | Getting Help]] to contact frevvo supportHelp to contact  support.

Follow these steps to configure the connector:

If the connector test above was successful you are now ready to configure the database connector to work with your own database.

1)   Copy the JDBC driver appropriate for your database into <frevvo-home>\tomcat\webapps\database\WEB-INF\lib

  • The database connector contains pre-installed drivers for the most popular databases. So you may be able to skip this step. See Install a JDBC driver below

2)    If you did have to copy a JDBC driver into lib you must then Restart frevvo, Double click <frevvo-home>\stop-frevvo. Wait until frevvo stops. Then Double click <frevvo-home>\start-frevvo

3)    Configure your database connector Data Source by editing <frevvo-home>\tomcat\webapps\database\WEB-INF\etc\configuration.xml

4)    Define SQL Statements to read/write to your databasse by editing <frevvo-home>\tomcat\webapps\database\WEB-INF\etc\configuration.xml.

18px-Symbol OK.svg.pngImage Added We recommend that you do not leave your database configuration.xml file in its default locations. See configuration file location below.

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 several pre-installed drivers.

Warning

You MUST use a JDBC4 type driver.

The frevvo download  download package comes with several pre-installed drivers. Look in <frevvo-home>/tomcat/lib and you will see (among other jar files) the following pre-installed driver jar files:

...

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

  • [http://msdn.microsoft.com/en-us/sqlserver/aa937724 SQL Server JDBC Driver]
  • [http://www.oracle.com/technetwork/database/features/jdbc/jdbc-112010-090769.html Oracle]
  • [https://www-304.ibm.com/support/docview.wss?uid=swg21363866 DB2]
  • [http://dev.mysql.com/downloads/connector/j/ Mysql]

Once you have the driver you need, copy it to <frevvo-home>/tomcat/lib. 

...

Previous Pre-Installed Driver Versions

Previous versions of frevvo include  include these drivers:

  • hsqldb-1.8.0.7.jar - HSQLDB jdbc driver
  • com.microsoft.sqlserver.jdbc-1.1.3.jar - SQL Server driver
  • jtds-1.2.5.jar - SQL Server driver
  • org.objectweb.rmijdbc-1.0.0.jar - Access driver (also can be used for SQL Server)

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

  • [http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html Oracle]
  • [https://www14.software.ibm.com/webapp/iwm/web/preLogin.do?lang=en_US&source=swg-dm-db2jdbcdriver IBM DB2]
  • [http://dev.mysql.com/downloads/connector/j/5.1.html MySQL][http://rmijdbc.objectweb.org RmiJDBC]
  • RmiJDBC