B4J Question jRDC2 using JDBC driver with embedded file

cliv

Member
Licensed User
Longtime User
I try to create a jRDC server using a JDBC driver (cData) for a friend.

Creating a JDBC Data Source
Create a JDBC data source to connect from your Java application. Creating a JDBC data source based on the CData JDBC Driver consists of three basic steps:
  • Add the driver JAR to the classpath:
    The JAR is located in the lib subfolder of the installation directory. Note that the .lic file must be located in the same folder as the JAR.
  • Provide the driver class:
    cdata.jdbc.XXX
  • Provide the JDBC URL. For example:
    jdbc:XXX:dataSource=C:\\mydb
    The URL must start with "jdbc:XXX:" and can include any of the connection properties in name-value pairs separated with semicolons.

Driver have 2 additional file to be located in the lib subfolder of the installation directory.
("The JAR is located in the lib subfolder of the installation directory. Note that the .lic file must be located in the same folder as the JAR.")

B4X:
cdata.jdbc.XXX.jar
cdata.jdbc.XXX.lic
cdata.jdbc.XXX.remoting.ini

Driver file can be added in code with:
B4X:
#AdditionalJar:cdata.jdbc.XXX

...but how to add .lic file and .ini file?
 
Last edited:

cliv

Member
Licensed User
Longtime User
Last edited:
Upvote 0
Top