Re: SolrJ - threading, http clients, connection managers

2011-11-07 Thread pravesh
>1) Is it safe to reuse a single _mgr and _client across all 28 cores? both are thread-safe API as per HttpClient specs. You shld go ahead with this. Regds Pravesh -- View this message in context: http://lucene.472066.n3.nabble.com/SolrJ-threading-http-clients-connection-manag

SolrJ - threading, http clients, connection managers

2011-11-06 Thread Shawn Heisey
In my long-running build system that uses SolrJ, I have been looking into reusing HttpClient and connection managers. This snippet is the latest iteration of my initialization code for an individual core, based on what I've been able to figure out with Google: _mgr = new MultiThreadedHttpCo