• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

can we wrap JNI code around ODBC driver to connect to database?

 
Timber Lee
Ranch Hand
Posts: 157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if there is no JDBC in system ,can we wrap JNI code around ODBC driver to connect to database?
compared with JDBC-ODBC bridge driver, what is its disadvantages and advantages?
 
Rufus BugleWeed
Ranch Hand
Posts: 1551
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you use JNI are you not locking yourself into a given DB implementation? And your application is hobbled with the JNI code too.
You have to write, test, document, and debug your implementation.
The JNI approach maybe a faster implementation.
It's easier to find people that know JDBC than your homegrown system.
 
Thomas Taeger
Ranch Hand
Posts: 311
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Timber,
Originally posted by Timber Lee:
if there is no JDBC in system, can we wrap JNI code around ODBC driver to connect to database?
Compared with JDBC-ODBC bridge driver, what is its disadvantages and advantages?

Wouldn't a "JNI code wrapped around an ODBC driver" _be_ a JDBC-ODBC bridge driver? A home-made one? Good luck, and much patience...
Thomas.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic