- 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
Friday, May 17, 2024
Connection Pooling
Subscribe to:
Post Comments (Atom)
-
What is the way to import only static members of a class? We can import using “import static packagename.classname.*” We can import using “i...
-
Q What is the difference between Array List and Linked List? Array List and Linked List both extend the List interface which extends Coll...
-
How do you detect a deadlock in a running Java program? We can use Jconsole to check for Deadlock which comes with JDK. There are also other...
No comments:
Post a Comment