I don't understand you. There is a single instance of servlet per application. Servlet.init method called once. Here you can instantiate HConnection and solve ANY concurrency problems. HConnection is tread-safe. Just don't close it and reuse. Then just use HConnection to get HTable.
What problem you are trying to solve? 2015-02-15 9:23 GMT+03:00 David chen <[email protected]>: > If sharing one HConnection for the whole application, when concurrency to > access servlets increases to a threshold, whether or not it will influence > the application performance? But if increasing the sharing HConnection > number, the problem will be relieved?
