This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is there is any way to connect to Database without JDBC

 
vicky saxena
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there is any way to connect to Database without JDBC
If yes then how its possible.
Can we use ODBC?
 
David Ulicny
Ranch Hand
Posts: 724
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, you can use native database API.

Yes, you can use ODBC, it's called "ODBC JDBC bridge".
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by David Ulicny:
Yes, you can use native database API.

Yes, you can use ODBC, it's called "ODBC JDBC bridge".


This would require JNI to be used , right?
 
David Ulicny
Ranch Hand
Posts: 724
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I suppose it depends on database vendor. For example HSQL or Cloudscape(Derby) will have native interface in Java. But Oracle,DB2 will have it in C, C++ or RPG.
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by David Ulicny:
I suppose it depends on database vendor. For example HSQL or Cloudscape(Derby) will have native interface in Java. But Oracle,DB2 will have it in C, C++ or RPG.


ok thanks.
 
Yilmaz Mete
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should implement the interface of the specific database of interest explicitly yourself, I mean the actual wire network protocol that handles the communication between the appl and the vendor database.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic