简体   繁体   中英

Servelt Database Connectivity: JDBC, ODBC, Connection Pooling and

For an exam question, I am looking at the various ways in which a servlet can make a connection to a database connection. So far I have

  1. JDBC
  2. ODBC
  3. Database Pooling

But the question asks for 4, and I cannot seem to find the 4th alternative. Does it actually exist?

I suspect you might want to look at the Java Persistence API. Go Google JPA.

I would add JNDI lookup and connecting directly using DriverManager . And what is database pooling ? Do you mean connection pooling?

On the other hand if they are asking about high-level technologies: -> -> -> .

A servlet can't really use ODBC it might be able to use a JDBC via ODBC driver, but the servlet sees only ODBC.

Similarly Connection Pooling just pools JDBC connections. The connections are just made via JDBC.

Since the expected answer is 4 they might be asking for the 4 types of JDBC drivers

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM