thanks..
however few more query.
How to maintain connections threads (max and min settings)?
What would be ideal setting for max in setMaxConnectionsPerHost method.
Will it be ok for 30 to 40 concurrent user. How thread will be maintain for
MultiThreadedHttpConnectionManager class.
On Sunday 19 June 2011 02:04 PM, Ahmet Arslan wrote:
for heavy use (30 to 40 concurrent
user) will it work.
How to open and maintain more connection at a time like
connection pool. So
user cat receive fast response..
It uses HttpClient under the hood. You can pass httpClient to its constructor
too. It seems that MultiThreadedHttpConnectionManager has
setMaxConnectionsPerHost method.
String serverPath = "http://localhost:8983/solr";
HttpClient client = new HttpClient(new MultiThreadedHttpConnectionManager());
URL url = new URL(serverPath);
CommonsHttpSolrServer solrServer = new CommonsHttpSolrServer(url, client);