- When we create a java enterprise application interacting with database is very common.
- Creating and establishing connection with database is an expensive process.
- Establish Network Connections
- Initialize Database sessions
- Authorize back-end database
- So it is always a good process to use connection pool in our application.
- It increases the performance and scalability of application.
- We can reuse existing connections and prepared statements which helps to avoid the cost of establishing connections.
- Example of Libraries for connection pooling are "C3P0" and "dbcp" etc.
- Hibernate c3p0 dependency is used for Connection Pooling in Hibernate?
- Introduction
- Installation
- Junit
- Arrays
- Classes
- Data Types
- Expressions
- Interfaces
- JDBC
- Loops
- OOPS
- Serializable
- Strings
- Constructors
- Package
- Java Servlets
- Deployment
- Logging
- JSP
- ANT
- Web Services and Sockets
- Struts
- JPA
- Object Injection
- Annotations
- Reflection API
- Static Blocks
- Java Native Interface (JNI)
- Multithreading
- Tomcat Server
- Java Web Toolkit(JWT)
- Archive Files
- EJB(Enterprise Java Beans)
- JConsole
- Memory Profiling
- Hashing
- Exceptions
- Java Map Interface
- Java 8
- Garbage Collection
- Java 11
- Collections
- Java 17
Friday, May 17, 2024
Connection Pooling
Subscribe to:
Comments (Atom)
-
What are the different types of design patterns? Creational design patterns Structural design patterns Behavioural design patterns. List som...
-
What is the difference between response.sendRedirect() and RequestDispatcher.forward(request,response) method? Forward When we use the ...
-
What is Second Level Caching in JPA? Shares entries across transactions. Second level cache is available between multiple sessions. It is av...