aspose file tools
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes can we wrap JNI code around ODBC driver to connect to database? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Professional Certification » Architect Certification (SCEA/OCMJEA)
Reply Bookmark "can we wrap JNI code around ODBC driver to connect to database?" Watch "can we wrap JNI code around ODBC driver to connect to database?" New topic
Author

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

Timber Lee
Ranch Hand

Joined: Oct 14, 2002
Posts: 157
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
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
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.


www.classic-and-class.com - www.evalulearn.com
Interfaces are the glue of OO.
 
 
subject: can we wrap JNI code around ODBC driver to connect to database?
 
Threads others viewed
What is a normal JDBC driver?
Driver types
how to connect data base without jdbc?
SCEA mock question from Whizlabs
Is there is any way to connect to Database without JDBC
Two Laptop Bag