BBj Filesystem Plugin
Ensure that the config file contains the following entry when running the demo listed below:
ALIAS J3 com.basis.plugin.SQLOpenPlugin
"jdbc:basis:localhost?database=ChileCompany&user=guest"
REM Requires ALIAS J3 com.basis.plugin.SQLOpenPlugin |
To use a different ODBC or JDBC driver (such as Oracle, SQL Server, MySQL, etc.), change the connection string specified in the ALIAS declaration in the config.bbx. For example, to use a SQL Server ODBC data source called "MyDatabase", change the line in the config.bbx file that reads:
ALIAS J3 com.basis.plugin.SQLOpenPlugin
"jdbc:basis:localhost?database=ChileCompany&user=guest"
To:
ALIAS J3 com.basis.plugin.SQLOpenPlugin "jdbc:odbc:MyDatabase"
Or, if using a MySQL JDBC driver to access a MySQL database called "MyDatabase," change:
ALIAS J3 com.basis.plugin.SQLOpenPlugin
"jdbc:mysql://myserver:3306/MyDatabase"
NOTE: If using a third party JDBC driver to connect to a database (as in the MySQL example above), ensure that the JDBC driver's .jar file is included in the BBj CLASSPATH. Using the
Enterprise Manager, login, and then double-click on the "Java Settings" node. Click on the CLASSPATH tab and then click the "Add" button. Enter the full path to the .jar file containing the necessary JDBC driver files. Lastly, restart BBjServices to get the new JDBC driver loaded into memory.
For additional information about com.basis.plugin, see Java API document.