how can we connect to db without using getConnection()
method

Answers were Sorted based on User's Feedback



how can we connect to db without using getConnection() method..

Answer / sitaram

without getConnection(), we can't connect the DB.

Is This Answer Correct ?    7 Yes 2 No

how can we connect to db without using getConnection() method..

Answer / kanu butani

Use Hibernate framework to connect to the database without
using getConnection method.
Hibernate Performing the usual DB operations

Is This Answer Correct ?    8 Yes 5 No

how can we connect to db without using getConnection() method..

Answer / john

i suggest shine Enterprise farmework
use the jconnection package
it contains something like hibernate
and i removed the .xml files
enjoy it
http://sourceforge.net/projects/shine-enterpris/files/

Is This Answer Correct ?    0 Yes 0 No

how can we connect to db without using getConnection() method..

Answer / naveen

it is not possible to get the connection from db server
without using getConnection();method, because
getConnection()method will take 3 paramaeters like
url,username,pwd......without this a javapgm will not
connect to db server. and getConnection method returns
connectionobject ..........

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More JDBC Interview Questions

Diff. types of triggers..

4 Answers   Logica CMG,


What are the factors that the jdbc driver performance depends upon?

0 Answers  


What are the advantages of using preparedstatement in java?

0 Answers  


What is jdbc architecture in java?

0 Answers  


Why would you use setautocommit(false) in jdbc?

0 Answers  






What do you understand by jdbc driver and explain its types?

0 Answers  


Can I set up a connection pool with multiple user IDs? The single ID we are forced to use causes problems when debugging the DBMS.

0 Answers  


how to use CallableStatement? specially how to use their index given ..

1 Answers  


What are the differences between execute, executequery, and executeupdate?

0 Answers  


Are there any ODBC drivers that do not work with the JDBC- ODBC Bridge?

2 Answers  


How can you use preparedstatement in jdbc?

0 Answers  


Why can't I invoke the ResultSet methods afterLast and beforeFirst when the method next works?

0 Answers  


Categories