# Connection pooling for jboss

**URL:** https://discuss.elastic.co/t/connection-pooling-for-jboss/8703
**Category:** Elasticsearch
**Created:** [August 10, 2012, 10:42am UTC](https://discuss.elastic.co/t/connection-pooling-for-jboss/8703 "2012-08-10T10:42:11Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![a\_muzam](https://avatars.discourse-cdn.com/v4/letter/a/f17d59/32.png) [@a\_muzam](https://discuss.elastic.co/u/a_muzam)
#### Post date: [August 10, 2012, 10:42am UTC](https://discuss.elastic.co/t/connection-pooling-for-jboss/8703/1 "2012-08-10T10:42:11Z")

</div>

I using ES in my java web service. My web service is gonna perform a GET(search) on the index. I am creating a client to perform the get.

Client client = new TransportClient(settings).addTransportAddress(new InetSocketTransportAddress( "192.168.2.71", 9300));

Every time my web service is called the client is created. In order to overcome this is there any alternative way so that I can create a connection pooling in my jboss server and use the same clients for all my request.

---

<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: [July 6, 2017, 3:16am UTC](https://discuss.elastic.co/t/connection-pooling-for-jboss/8703/2 "2017-07-06T03:16:51Z")

</div>


