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.
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?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.