Name

driver — Defines the JDBC driver to load.

Synopsis

<driver>
	<jar>JAR-path</jar>
	<native>native-path</native>
	<class>jdbc-class</class>
</driver>
				

Description

This element is the JDBC driver definition of a data source.

Attributes

name

This attribute is for logging purposes only, the JDBC driver provides the real driver name.

Content

JAR-path

The file path of the driver jar file.

native-path

Directory of native libraries files used by the driver (if necessary).

jdbc-class

Fully qualified JDBC Driver class name.

Example

Example 17. JDBC data source driver definition.

<project name="testProject">
	...
	<metadata>
		...
	</metadata>
	<output>
		<jdbc>
			<driver name="derby">
				<jar>/home/mbassale/devel/libs/db-derby-10.5.1.1-bin/lib/derby.jar</jar>
				<native></native>
				<class>org.apache.derby.jdbc.EmbeddedDriver</class>
			</driver>
			<connection>
				...
			</connection>
		</jdbc>
	</output>
</project>