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 are the new features available in jdbc 4.0?

514


How do I start debugging problems related to the JDBC API?

504


Is jdbc a framework?

457


How to invoke Oracle Stored Procedure with Database Objects as IN/OUT?

549


What is getconnection method in java?

487






What does jdbc stand for?

490


What is the return type of class.forname() method?

524


What is jdbc driver manager?

479


What are the packages are used in jdbc?

548


Explain about DSN?

518


What is jdbc and jpa?

497


RowSetInternal caller and returns void. What can I do in the readData method?

523


What do you understand by jdbc statements?

492


What is com mysql jdbc driver?

481


What do you mean by batch processing in jdbc?

507