Hi,

Hm, right, although once Solr stops being a webapp, this won't work any more...

Otis
--
Solr & ElasticSearch Support
http://sematext.com/





On Mon, Jun 17, 2013 at 4:14 PM, Al Wold <alw...@alwold.com> wrote:
> I've used a servlet context listener before and it works pretty well. You 
> just have a write a small Java class to receive the event when the app is 
> started, then add it to web.xml.
>
> I don't think there's much good official documentation, but this blog post 
> outlines it pretty simply:
>
> http://www.mkyong.com/servlet/what-is-listener-servletcontextlistener-example/
>
> -Al
>
> On Jun 17, 2013, at 1:03 PM, Otis Gospodnetic wrote:
>
>> Hi,
>>
>> What is the best thing in Solr to hook into that would allow me to
>> start (and keep running) a custom piece of code when Solr starts?  Say
>> I want to have something that pulls data from an external queue from
>> within Solr and indexes it into Solr and I want it start and stop
>> together with the Solr process.  Is there any place in Solr where one
>> could do that?
>>
>> Thanks,
>> Otis
>> --
>> Solr & ElasticSearch Support
>> http://sematext.com/
>

Reply via email to