Question on DB connection!
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   dave_wong
Posted On:   Friday, April 20, 2001 02:43 AM

Hi there,
I'm trying to use apache + tomcat to connect oracle 7.3.4. and have read some docs. However, some of them said to register by "DriverManager.registerDriver(new oracle.jdbc.dnlddriver.OracleDriver());" and the others said to do "Class.forName( driver name )".
What's the different? I've tried both of them and still can't get the connection made. What action I should take?

Thanks
dave

Re: Question on DB connection!

Posted By:   Anonymous  
Posted On:   Tuesday, April 24, 2001 02:08 AM

Hi,
Put the driver classes in the classpath.And the user Class.forName();

It should work...-:)
About | Sitemap | Contact