JDBC Architecture
The JDBC architecture specifies how Java applications connect with the JDBC API and Database drivers to execute database operations including connection, querying and updating a relational database.
2-Tier and 3-Tier Architecture
Two-Tier Architecture
- Java application communicates directly with the database.
- Uses JDBC API and JDBC Driver.
Java Application → JDBC API → JDBC Driver → Database
Use Case: Standalone apps or simple desktop applications.
Three-Tier Architecture
- Introduces middleware as an application server positioned between the client and the database.
- The client application sends requests to middleware which then uses JDBC to interact with the database.
Java Application → Middleware (App Server) → JDBC API → JDBC Driver → Database
Use Case: Enterprise-level web applications require scalable solutions to meet their security demands and business logic requirements.
Quickly Find What You Are Looking For
Onlinetpoint is optimized for basic learning, practice and more. Examples are well checked and working examples available on this website but we can't give assurity for 100% correctness of all the content. This site under copyright content belongs to Onlinetpoint. You agree to have read and accepted our terms of use, cookie and privacy policy.