This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes JDBC and Relational Databases and the fly likes registering Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "registering" Watch "registering" New topic


amit bhadre
Ranch Hand

Joined: Jan 23, 2006
Posts: 124
1.How to connect/register to database without using the drivers?

I tried by using

Not working.

2. How you will connect/register to database without using Class.forName("");?

thanking in advance.

amit bhadre

Thanks advance who ever answers this question.

amit bhadre
steve souza
Ranch Hand

Joined: Jun 26, 2002
Posts: 862
I haven't used oracles driver but typically you would do the following and the driver registers itself (via a static initializer).

Here is an article. - a fast, free open source performance tuning api.
JavaRanch Performance FAQ
I agree. Here's the link:
subject: registering
It's not a secret anymore!