I have to instantiate ES within a Tomcat process. Normally ES is instantiated as a separate process and clients connect to it.
What I would like to do is to instantiate the ES within a Tomcat and connect to it using a client. How do I tell the Tomcat to instantiate Elasticsearch class so that the ES gets started when the Tomcat instance is up.
Embedding Elasticsearch is no longer supported, as outlined in this blog post.
Thanks Christian for directing me to this post.
Just out of curiosity what if I call the main method of Elasticsearch class using reflection and start it?
I know this is not a good idea but will there be any repercussion in such a case?
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.