Re: Need to create SolrServer objects without checking server availability

2013-02-12 Thread Shawn Heisey
On 2/12/2013 12:27 PM, Chris Hostetter wrote: : The problem is at program startup -- when 'new HttpSolrServer(url)' is called, : it goes and makes sure that the server is up and responsive. If any of those : 56 object creation calls fails, then my app won't even start. What exactly is the exce

Re: Need to create SolrServer objects without checking server availability

2013-02-12 Thread Chris Hostetter
: The problem is at program startup -- when 'new HttpSolrServer(url)' is called, : it goes and makes sure that the server is up and responsive. If any of those : 56 object creation calls fails, then my app won't even start. What exactly is the exception are you getting? i don't think antying in

Re: Need to create SolrServer objects without checking server availability

2013-02-05 Thread Shawn Heisey
On 2/4/2013 3:33 PM, Michael Della Bitta wrote: Ah, OK, sorry to be terse! 1. Create a class that implements SolrServer from the SolrJ project: http://lucene.apache.org/solr/4_1_0/solr-solrj/org/apache/solr/client/solrj/SolrServer.html 2. Make the constructor of that class take as arguments the

Re: Need to create SolrServer objects without checking server availability

2013-02-04 Thread Michael Della Bitta
Ah, OK, sorry to be terse! 1. Create a class that implements SolrServer from the SolrJ project: http://lucene.apache.org/solr/4_1_0/solr-solrj/org/apache/solr/client/solrj/SolrServer.html 2. Make the constructor of that class take as arguments the config you need to make an HttpSolrServer object a

Re: Need to create SolrServer objects without checking server availability

2013-02-04 Thread Shawn Heisey
On 2/4/2013 2:38 PM, Michael Della Bitta wrote: Hi Shawn, Why don't you write a delegating SolrServer class that lazily instantiates an HttpSolrServer and catches and logs exceptions when something's down? I only about half understood that, and I'm not sure how to do it. I'm willing to learn

Re: Need to create SolrServer objects without checking server availability

2013-02-04 Thread Michael Della Bitta
Hi Shawn, Why don't you write a delegating SolrServer class that lazily instantiates an HttpSolrServer and catches and logs exceptions when something's down? Michael Della Bitta Appinions 18 East 41st Street, 2nd Floor New York, NY 10017-6271 ww