We are connecting to an LDAP (OpenLDAP) service from a Java (Spring Boot) application. We are having issues with TLS and with memory usage. Background We are using the Apache Directory LDAP API (v2) library for the connection. We are using a pooled connection to the LDAP server. We are using StartTLS to secure the connections between the Java service
Tag: connection-pooling
Connection Pool and thread pool setting in Java
Spring application using Hikari pool. Now for a single request from the client I have to query 10 tables(business required), and then composite the result together. And querying for each table may cost 50ms to 200ms. To speed up the response time, I create a FixedThreadPool in my service to query each table in different thread(pseudocode): Now for a single
How to get a context.xml working with Tomcat and IntelliJ IDEA
I’ve been learning about connection pools, and I have gotten one working by using Tomcat’s PoolProperties. Now I would like to set one up using a context.xml file with Tomcat and IntelliJ, but I can’t get this to work. How is this done? A new project with a 4.0 Web Application framework can automatically create a web/WEB-INF directory with a
connection pooling with smtp servers
like i have 5 smtp server’s and i want to do bulk mailing and want to post on each server then how i can achieve it ? I am using like this now : Now i want to post on multiple VIP’s like Can you suggest how i can achieve this ? Answer You can use SmtpConnectionPool. Create session with
How configure connection existence check in C3P0?
I am using the below code to get Connection. I have used the c3p0 library for connection pooling. Now my question is, this code is not checking whether the connection is existing or not. Most likely this will get hit by the famous connection closed error after 8 hours. While I was using C3P0 with hibernate, there were configurations to
java.sql.SQLException: An attempt by a client to checkout a Connection has timed out
I have a java client server which is supposed to establish connection pool on startup but its failing on timeout error. There are so many threads on this same issue but none of the solutions worked for me AM using jdk 7 and below is the mchange maven dependency jdbc.properties Here is my DAO class which establishes connection-pool on server
DBCP – validationQuery for different Databases
I use DBCP pool and I want use testOnBorrow and testOnReturn to test if connection is still valid. Unfortunately I have to set property validationQuery to make it work. Question: What value should be in validationQuery? I know, that: validationQuery must be an SQL SELECT statement, that returns at least one row. Problem is that we use various databases (DB2,
Connection pooling in java using HttpClient [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed last year. Improve this question How can I create a pool of connections using HttpClient? I have to make frequent connections to the same server. Is