Re: Load a java class on start up

2016-07-02 Thread Mark Robinson
Yes. Integrating my CustomComponent along with SolrCoreAware (I was unaware of this prev) should give me what I am looking for. Thanks! Mark. On Sat, Jul 2, 2016 at 5:57 AM, Andrea Gazzarini wrote: > You're welcome ;) is that close to what you were looking for? > On 2 Jul 2016 11:53, "Mark Robi

Re: Load a java class on start up

2016-07-02 Thread Andrea Gazzarini
You're welcome ;) is that close to what you were looking for? On 2 Jul 2016 11:53, "Mark Robinson" wrote: > Thanks much Andrea esp. for the suggestion of SolrCoreAware! > > > > Best, > Mark. > > On Thu, Jun 30, 2016 at 10:23 AM, Andrea Gazzarini > wrote: > > > Hi, > > the lifecycle of your Solr

Re: Load a java class on start up

2016-07-02 Thread Mark Robinson
Thanks much Andrea esp. for the suggestion of SolrCoreAware! Best, Mark. On Thu, Jun 30, 2016 at 10:23 AM, Andrea Gazzarini wrote: > Hi, > the lifecycle of your Solr extension (i.e. the component) is not something > that's up to you. > Before designing the component you should read the framew

Re: Load a java class on start up

2016-06-30 Thread Andrea Gazzarini
Hi, the lifecycle of your Solr extension (i.e. the component) is not something that's up to you. Before designing the component you should read the framework docs [1], in order to understand the context where it will live, once deployed. There's nothing, as far as I know, other than the compon

Load a java class on start up

2016-06-30 Thread Mark Robinson
Hi, I have a java OBJECT which I need to load once. I have written a java custom component, which I have added in "last-components" in solrconfig.xml, from which I want to access the above mentioned OBJECT when each search request comes in. Is there a way I can load a java object on server/ insta