Instantiate Elasticsearch server within a Tomcat process


(Sambit Kabi) #1

Hello ,

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.


(Christian Dahlqvist) #2

Embedding Elasticsearch is no longer supported, as outlined in this blog post.


(Sambit Kabi) #3

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?


(system) #4

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.