lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antonio Calò <anton.c...@gmail.com>
Subject Re: Use of EmbeddedSolrServer
Date Mon, 28 Jun 2010 09:12:36 GMT
I think that this is the best way to use Solr. I've used EmbeddedSolrServer
keeping it in a singleton manner (by using Spring framework).

Also Solr is threadsafe, so you should not have any issue by using it
directly in an Ejb.

Antonio



2010/6/27 Robert Naczinski <robert.naczinski@googlemail.com>

> Hello,
>
> there is a recommendation (best practice) for the use of
> EmbeddedSolrServer? We use it, because we have in our application an
> EJB module with Message Drive Bean. Now, we create the
> EmbeddedSolrServer (http://wiki.apache.org/solr/Solrj #
> EmbeddedSolrServer) in a javax.servlet.ServletContextListener and keep
> the in a singletonwrapper
>
> Can we do it that way? Or should we create a whole pool of the
> servers? ( with Apache Commons Pool )
>
> Can anyone give me any advice?
>
> Regards,
>
> Robert
>



-- 
Antonio Calò
------------------------------------------
Software Developer Engineer
@ Intellisemantic
Mail anton.calo@gmail.com
Tel. 011-56.90.429
------------------------------------------

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message