This page is for administrators who need to connect PhixFlow to external databases using Driver Classes.
...
PhixFlow requires access to the database driver jar files in order to communicate with a database. Use the driver class properties to configure with the details of the database, its driver and the location of the Jar jar files.
PhixFlow is installed with a set of driver jar files and their associated Driver Classes
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
...
- An administrator with permission to add system files must download the required jdbc JDBC drivers and save them to the system.
To avoid your drivers being overwritten during Tomcat or PhixFlow upgrades, we recommend that you save them in a different part of the system. - The PhixFlow administrator configures a driver class for the driverJDBC drivers, specifying the database driver name and its path.
...
To create a driver class, in the full repository scroll down to the ICON
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
To add a new driver, right-click ICON and Driver Classes and select
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
To open an existing driver class, in the repository click on on its name.
Tip |
---|
You cannot change the pre-configured driver classes supplied with your PhixFlow installation |
...
. These have the System Defined property ticked. |
Driver Classes and Driver Class File Properties
...
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Basic Settings
Field | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Name | Enter a unique name for the driver, which will appear in the PhixFlow repository. | ||||||||||||||||
Driver Class Name | Enter the driver class name, which you will find in the driver documentation. For example, for MySQL, the driver name is: | ||||||||||||||||
System Defined | Read-only.
| ||||||||||||||||
Description | Optionally enter a description for the driver. |
Driver Class File
This section has a toolbar with standard buttons.
The grid contains a list of jar files and their file path. To add a jar file to the list:
- Click
to open a the properties for a new Driver Class File Location.Insert excerpt _add _add nopanel true In the Basic Settings section, set:
Field Description Name
Enter a unique name for the driver. Connector Jar File Location Enter the full path to the jar file.
Windows example path
Linux example path /lib/something/jar jar
Click
to save and close the properties for the driver class file.Insert excerpt _finish _finish nopanel true
...
To remove a jar file from the grid, use the toolbar button
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Using Drivers Across Multiple Instances
For application building, once you have a custom driver, you need the same driver on all instances - so you need to export/import or you will lose the refences.If you run multiple instances of PhixFlow, you must ensure that any custom driver classes you create:
- are exported and then imported to other instances
- have access to the database driver jar file from the other instances.
This ensures that all datasource objects that use the database driver continue to work on the other instances.
How PhixFlow Decides Which Driver to Use
(Needed??) The PhixFlow class path for finding drivers (but the drivers must be specified in the driver class so I'm not sure this is relevant any more
...
.
- The driver classes you configure In PhixFlow
- The system driver classes.
- Database drivers in the Tomcat class directory
- Drivers Database drivers in the Tomcat lib directory.
...