can we wrap JNI code around ODBC driver to connect to database?
Timber Lee
Ranch Hand
Joined: Oct 14, 2002
Posts: 157
posted
0
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?
SCJP<br />SCWCD<br />SCEA
Rufus BugleWeed
Ranch Hand
Joined: Feb 22, 2002
Posts: 1551
posted
0
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
Joined: Dec 16, 2002
Posts: 307
posted
0
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.