• 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: 21559
33
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic