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.