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 a jdbctemplate?

527


How does JDBC API helps us in achieving loose coupling between Java Program and JDBC Drivers API?

621


What is an SQL Locator?

593


What is a jdbc driver and how many jdbc drivers are available?

584


How can you know about drivers and database information ?

559






What does jdbc do?

531


What is jdbc oracle thin?

484


Differentiate between type_scroll_insensitive and type_scroll_sensitive.

524


What is the role of the jdbc drivermanager class?

489


Write an sql to find all records having all upper case alphanumeric characters in a field ?

531


Name the new features added in jdbc 4.0.

553


What is the use of callablestatement? Name the method, which is used to prepare a callablestatement.

477


How can I instantiate and load a new CachedRowSet object from a non-JDBC source?

537


Explain how data flows from view to db and reverse

1639


What is jdbc driver manager?

501