Lucid Imagination

Secondary links

  • Contact Us
  • Sign Up or Login
  • Downloads
  • Solutions
    • Partners |
    • Blog |
    • Software |
    • Services |
    • Training |
    • Case Studies |
    • Webcasts |
  • Developers
    • Blog |
    • Tech Articles |
    • Community |
    • Docs |
    • Downloads |
    • Whitepapers |
    • Podcasts |
  • About
    • Market Overview |
    • Management |
    • Company News |
    • In the Media |
    • Contact |

beta

Start new search

Back to search results

  1. FromDate
  2. Dino Di Cola1969-12-31 19:00
  3. Chris Hostetter1969-12-31 19:00
  4. Dennis Gearon1969-12-31 19:00
  5. Dino Di Cola1969-12-31 19:00

[solr-user] embedded server / servlet container

Subject:
Re: embedded server / servlet container
From:
Dino Di Cola <dinodicola@...>
Date:
1969-12-31 19:00
Hi all.
Anyone involved in a configuration like this?
Or is it a wrong approach or the wrong place to ask for?
Thanks in advance,
Dino.
--

2010/3/10 Dino Di Cola <dinodicola@gmail.com>

Dear all, I am trying to provide an embedded server to a web application deployed in a servlet container (like tomcat). I would like to call a method like this protected void configSolrServer() throws ConfigException { String idxHome = systemProp.getProperty(Configuration.Key.IDX_HOME); System.setProperty(Configuration.Key.SOLR_HOME, idxHome ); CoreContainer.Initializer initializer = new CoreContainer.Initializer(); CoreContainer coreContainer; try { coreContainer = initializer.initialize(); } catch (IOException e) { throw new ConfigException(e); } catch (ParserConfigurationException e) { throw new ConfigException(e); } catch (SAXException e) { throw new ConfigException(e); } solrServer = new EmbeddedSolrServer(coreContainer, ""); } inside a factory implementation injected as the ServletContextListener contextInitialized() method is called. Are there problems if the Embedded Server is configured as slave and is polling a master to implement index replication? In particular, I have doubts with respect to container thread handling (I saw different thread pool started during index replication polling). Sorry if the question is closer to servlet container behaviour than solr server. Any help is really appreciated. Thanks, Dino. --

Solr Powered

Give us your feedback

  • Lucene
  • Solr
  • Nutch
  • Tika
  • Mahout
  • Droids
  • PyLucene
  • Lucene.Net
  • Lucy
  • Lucene4c
  • Open Relevance Project
  • How We Can Help:
    • Getting Started |
    • Support Subscriptions |
    • White Papers |
    • Training |
    • Consulting |
    • Contact Us |
  • Developers:
    • Blog |
    • Documentation |
    • Tech Articles |
    • Podcasts and Videos |
    • Community |
  • Downloads:
    • LucidWorks for Solr |
    • LucidWorks for Lucene |
    • LucidGaze for Solr |
    • LucidGaze for Lucene |
  • Products:
  • Services:

Contact | Privacy Policy | Legal Terms of Use | Copyrights and Disclaimers | Admin

Apache Solr, Apache Lucene, ApacheCon and their logos are trademarks of the Apache Software Foundation.

© 2010 Lucid Imagination. All Right reserved.