• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

when using the getConnection method

 
Ken
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When using the getConnection method of the DriverManager it takes 3 parameters. URL, user, password correct? When I want to connect to a database from an applet that can be viewed from anywhere in the world all I have to do is point the applet to the correct URL and WHAM! im connected? Is it that easy? or am I missing something?
What is the syntax for this? Is the DSN part of the URL?.
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Ken
Yes , it is that Easy.
thats why it was defined as a URL
Because the Database is somewhere
That Somewhere can be defined by a URL
and the Driver Provider is Obligated to implement the
getConnection that recieves the URL
Thank you SUN for that great Interface
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic