Meaningless Drivel is fun!
The moose likes JDBC and Relational Databases and the fly likes jdbc connection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "jdbc connection" Watch "jdbc connection" New topic

jdbc connection

Rangarajan Balasubramanian

Joined: Jun 10, 2005
Posts: 9
Just i want to know connection established in 4th driver(Coding)
Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

Depends how you want to do it. If you are using the DriverManager, you just need to load the driver class and call DriverManager.getConnection(<url> ) . If you are using a DataSource, you just call DataSource.getConnection().

Read you driver documentation. I can't think of one which doesn't come with an example.
[ June 13, 2005: Message edited by: Paul Sturrock ]

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
I agree. Here's the link:
subject: jdbc connection
It's not a secret anymore!