1.1

Table Of Contents
Chapter 19
Configuring SQLFire as a JDBC
Datasource
The SQLFire JDBC implementation enables you to use a distributed system as an embedded JDBC datasource in
products such as WebLogic Server.
Procedure
Follow this general procedure when setting up SQLFire as a datasource in a third-party product:
1. For products such as WebLogic Server that provide datasource templates, select "Apache Derby" or "Other" as the
database type if vFabric SQLFire is not explicitly supported.
2. Specify "sqlre" as the database name. This represents a single SQLFire distributed system. (SQLFire does not
contain multiple databases as in Apache Derby or other relational database systems.)
3. For the hostname and port, specify the hostname and port combination of a SQLFire locator or a SQLFire server.
This is the same hostname and port combination you would use to connect as a client from the sqlf prompt.
4. For the database username and password, enter a valid username and password combination if you have enabled
authentication in your system (using the -auth-provider property).
If you have not congured authentication in SQLFire, specify "app" as both the username and password values, or
any other temporary value.
Note: SQLFire uses the username specied in the JDBC connection as the schema name when you do not
provide the schema name for a database object. SQLFire uses "APP" as the default schema. If your system
does not enable authentication, you can specify "APP" for both the username and password to maintain
consistency with the default schema behavior.
5.
For the driver class, specify: com.vmware.sqlfire.internal.jdbc.ClientDataSource
6.
The JDBC URL that you specify must begin with jdbc:sqlfire://. Remove any template properties such as
create=true if they are present in the URL or properties elds.
In products such as WebLogic, you cannot specify JDBC connection properties for an embedded datasource as
part of the JDBC URL. Instead, use the properties eld and specify connectionAttributes using the format:
connectionAttributes=attribute;attribute;...
For example: connectionAttributes=mcast-address=239.192.81.1;mcast-port=10334 or
connectionAttributes=locators=239.192.81.1;mcast-port=0
See also the Apache Derby documentation for EmbeddedDataSource.
119