|
|
|
|
Re: Installing a JDBC driver [message #12057 is a reply to message #7800] |
Tue, 01 March 2005 19:58  |
Eclipse User |
|
|
|
Thierry Lach wrote:
> How can different JDBC drivers be added to the existing driver?
Hi Thierry,
As you had found, to specify a different JDBC driver, simply include its
jar file(s) in the JDBC ODA driver's configuration file (odaconfig.xml).
Below are some more details on various configurable options.
An ODA driver's odaconfig.xml file is by default in the same installation
directory as the ODA driver's plugin.xml, e.g. in the
"org.eclipse.birt.report.data.oda.jdbc" for the JDBC ODA driver. The BIRT
ODA plugin schema has an extension point element for a driver's
"configFileDir". It is optional for specifying the directory of its
odaconfig.xml .
In the JDBC ODA configuration file's
<RunTimeInterface>.<DriverLibraries>.<LibrariesForOS>.<LibraryName >
element, simply replace the sample value of "jtds-0.9.jar" with the name
of your JDBC jar file. Add another <LibraryName> element for each
additional jar file that might be needed.
A copy of the ODA configuration's XML schema definition (ODAConfig.xsd)
can be found in BIRT's Eclipse CVS, under the
source/org.eclipse.birt.data/schema folder. A driver's library files are
by default expected in the same directory as the odaconfig.xml. You can
optionally add a <Location> element to specify the path of all the library
files.
BTW, an ODA driver is intended to also run outside of the Eclipse desk top
environment, such as a J2EE Appl server.
One can use any XML editor to edit the odaconfig.xml directly.
We are looking into providing an UI editor tool that would make it easier
for one to configure any type of ODA driver. The JDBC one is simply an
example of one type of ODA drivers.
Linda
BIRT Data Engine team lead
|
|
|
Powered by
FUDForum. Page generated in 0.03901 seconds