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
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.
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.