Mark - So you want the *server* to be started programmatically? You could use Jetty's API to do this... or fork a JVM.
As for client-side SolrJ, you can pass an HttpClient to CommonsHttpSolrServer's constructor to customize how the HTTP connection is configured. EmbeddedSolrServer - no, it itself does not accept HTTP responses, you'd have to implement that on top but there'd be no reason to do that, just fire up solr.war in a real container then. Erik On Dec 6, 2011, at 07:10 , Mark Swinson wrote: > Hi, > > I want to test a custom implementation CommonsHttpSolrServer, which is > required so that we can enable > it to use SSL certificates and proxies when accessing the Solr REST api. > > One thing I want to avoid is having to have a Solr instance set up on > every developers sandbox in order > for the tests to work. What I'm looking for is an embedded solution > which is started up programmatically > BUT is accessed over HTTP. > > I've had a look at the EmbeddedSolrServer instance, but I'm not sure > whether or not this is what I want. > Is it possible to access EmbeddedSolrServer via HTTP on the localhost? > > > Mark > > > > http://www.bbc.co.uk/ > This e-mail (and any attachments) is confidential and may contain personal > views which are not the views of the BBC unless specifically stated. > If you have received it in error, please delete it from your system. > Do not use, copy or disclose the information in any way nor act in reliance > on it and notify the sender immediately. > Please note that the BBC monitors e-mails sent or received. > Further communication will signify your consent to this. >