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 <[email protected]> > 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 [email protected] Tel. 011-56.90.429 ------------------------------------------
