• Post Reply Bookmark Topic Watch Topic
  • New Topic

with out registering driver i am getting connection

 
raj talatam
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
first i tried to connect to db by registering driver i am able, i just commented out the and executed then also i am able.. without registering how i am able to connect to DB

Note: first i set ojdbc jar in the class path;




thanks
rajaendar
 
Paul Clapham
Sheriff
Posts: 21975
36
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JDBC has worked that way since Java 6 (released in 2007, I think). Are you just surprised that it works that way, or are you asking for details about how exactly it's implemented?
 
raj talatam
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Paul Clapham wrote:JDBC has worked that way since Java 6 (released in 2007, I think). Are you just surprised that it works that way, or are you asking for details about how exactly it's implemented?

i was just surprised , the way it is working..
actually i ran that code in my person lap mac book pro (eclipse juno).

when i ran same code in my office desktop(windows 7 indigo eclipse ) i am getting this exception


my question is in Enterprise projects is it necessary to register/ driver or leave it like that

thanks
rajendr
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!