# JDBC Connection Pool for Elastic sql

**URL:** <https://discuss.elastic.co/t/jdbc-connection-pool-for-elastic-sql/325320>\
**Category:** Elasticsearch\
**Tags:** jdbc\
**Created:** [February 11, 2023, 5:33pm UTC](https://discuss.elastic.co/t/jdbc-connection-pool-for-elastic-sql/325320 "2023-02-11T17:33:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![varindersandhu](https://avatars.discourse-cdn.com/v4/letter/v/b487fb/32.png) [@varindersandhu](https://discuss.elastic.co/u/varindersandhu)\
**Post date:** [February 11, 2023, 5:33pm UTC](https://discuss.elastic.co/t/jdbc-connection-pool-for-elastic-sql/325320/1 "2023-02-11T17:33:21Z")

</div>

Hi Team, trying to build osgi plugin for elastic sql driver to query ES . Not able to find ConnectionPoolSource class name from x-pack-sql-jdbc-8.6.1.jar . Any idea which class will replace EsDataSourcePool in code below

- All rights reserved. This program and the accompanying materials

- are made available under the terms of the Eclipse Public License v1.0 \* Contributors:  
\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\***/package com.custom.driver.elastic.JDBC;import java.sql.Driver;  
import java.sql.SQLException;  
import java.util.Properties;  
import javax.sql.ConnectionPoolDataSource;  
import javax.sql.DataSource;  
import javax.sql.XADataSource;  
import org.osgi.service.jdbc.DataSourceFactory;/** TODO \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

- Import the packages from jar that contain the data source and drivers\*

- by hovering over the data source class name with your mouse and \*

- select the import option \*  
\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\ ***/public class CustomDataSourceFactory implements DataSourceFactory { /**

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 11, 2023, 5:34pm UTC](https://discuss.elastic.co/t/jdbc-connection-pool-for-elastic-sql/325320/2 "2023-03-11T17:34:12Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
