Without using of Class.forName(? ?), how do you connect to
db?

Answer Posted / kalyan

by using datasource object, generally datasource is
confiured at app server specifying jndi name , data source
name, driver name, user name, and password.

by getting datasource object using jndi lookup, we can get
connection.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between executing, executequery, executeupdate in jdbc?

744


How you restrict a user to cut and paste from the html page using java programing?

643


Explain what should be done when a SQL exception is raised?

731


What does the jdbc resultset interface?

722


Does sql allow null values ?

733


What driver should I use for scalable Oracle JDBC applications?

709


What is jdbc connection?

818


Where is jdbc url mysql?

685


Is jdbc a web technology?

666


Explain about the drive manager class working?

809


What are different types of ResultSet?

765


Where is mysql jdbc driver located?

701


What is jdbc drivers in java?

647


How to make updates to updatable result sets in jdbc?

673


Is jdbc faster than odbc?

655