I have just started working with ElasticSearch while creating a POC search
application at work. I was wondering if anyone had experimented with
running ElasticSearch in JBoss and could provide some direction as to how
to accomplish this?
I did some years ago.
I found that using a Transport Client was easier for me.
If it's for a POC, I would probably go for a an embedded Node in the web application.
This is what we did in http://www.scrutmydocs.org/ project but I did not test it on JBoss, only tomcat.
Easy to start: just deploy a war and that is.
May be you have more detailed questions or issues so far?
I have just started working with ElasticSearch while creating a POC search application at work. I was wondering if anyone had experimented with running ElasticSearch in JBoss and could provide some direction as to how to accomplish this?
Thanks for the quick response. For the purposes of this POC we need to
mock an environment where ElasticSearch is running similar to how it does
"out of the box" in Jetty, except use JBoss instead. We would like to have
an instance of JBoss which we can deploy ElasticSearch to and interact with
it using the Java API. I have been looking around for any information about
the possibility of deploying ElasticSearch in JBoss and how to do so if it
is possible, but so far I haven't found much.
Thanks for the quick response. For the purposes of this POC we need to
mock an environment where Elasticsearch is running similar to how it does
"out of the box" in Jetty, except use JBoss instead. We would like to have
an instance of JBoss which we can deploy Elasticsearch to and interact with
it using the Java API. I have been looking around for any information about
the possibility of deploying Elasticsearch in JBoss and how to do so if it
is possible, but so far I haven't found much.
Thanks for your reply. I don't think there is really any advantage. The
company I work for likes to run everything on JBoss, therefore in order to
make them happy we always have to explore JBoss as an option. The web
application I am working on as a POC will run on JBoss and I am hoping to
find a way to use ElasticSearch with it. I guess the better question I
should have asked to be begin with is if anyone had any thoughts on what
the best setup to have when developing a Java-Based web application running
on JBoss?
Craig, for a POC, you can deploy a WAR into Wildfly (JBoss) with a
TransportClient as a singleton, for example in a ServletContextListener, it
works perfectly for me.
You should not depend Wildfly instances on ES nodes. If frontend is not
dependent on backend, you can scale out both independently, Wildfly and ES.
Thanks for the suggestion. I don't think I will be able to speak at the
same level of understanding that you have in regards to this issue. Are you
suggesting using an approach such
as GitHub - elastic/elasticsearch-transport-wares: Servlet transport for Elasticsearch to
include ES in the same .war file as my Java web application?
Thanks for the suggestion. I don't think I will be able to speak at the
same level of understanding that you have in regards to this issue. Are you
suggesting using an approach such as GitHub - elastic/elasticsearch-transport-wares: Servlet transport for Elasticsearch to
include ES in the same .war file as my Java web application?
Craig, the war-es plugin uses a similar servlet-based approach. It is a
disguised client node, not a TransportClient. The plugin is not ready for
deployment as a WAR. You have to fix some of the code by yourself, maybe
this helps:
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.