# Wares Plugin Questions

**URL:** <https://discuss.elastic.co/t/wares-plugin-questions/6644>\
**Category:** Elasticsearch\
**Created:** [February 8, 2012, 6:22pm UTC](https://discuss.elastic.co/t/wares-plugin-questions/6644 "2012-02-08T18:22:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![davrob](https://avatars.discourse-cdn.com/v4/letter/d/d78d45/32.png) [@davrob](https://discuss.elastic.co/u/davrob)\
**Post date:** [February 8, 2012, 6:22pm UTC](https://discuss.elastic.co/t/wares-plugin-questions/6644/1 "2012-02-08T18:22:31Z")

</div>

Hi, I have a few questions about the Wares plugin:

i) Do I have to use REST / http to query ES, or can I still use the  
java client, which will be deployed in the same application server  
(Weblogic).

ii) Does Wares automatically encrypt the Java port (Netty) cluster  
communication using SSL. If not how is this done, Shay seem to  
indicate that this is possible in his comment here:

> <https://github.com/elastic/elasticsearch/issues/664>

- David.

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [February 9, 2012, 8:15am UTC](https://discuss.elastic.co/t/wares-plugin-questions/6644/2 "2012-02-09T08:15:23Z")

</div>

On Wednesday, February 8, 2012 at 8:22 PM, davrob2 wrote:

> Hi, I have a few questions about the Wares plugin:
> 
> i) Do I have to use REST / http to query ES, or can I still use the  
> java client, which will be deployed in the same application server  
> (Weblogic).

If its embedded, then you can just use the Node itself to talk to the cluster. You can get it from the servlet context attribute: [https://github.com/elasticsearch/elasticsearch-transport-wares/blob/master/src/main/java/org/elasticsearch/wares/NodeServlet.java#L89](https://github.com/elasticsearch/elasticsearch-transport-wares/blob/master/src/main/java/org/elasticsearch/wares/NodeServlet.java#L89).

> ii) Does Wares automatically encrypt the Java port (Netty) cluster  
> communication using SSL. If not how is this done, Shay seem to  
> indicate that this is possible in his comment here:  
> [Add HTTPS and basic authentication support to elasticsearch · Issue #664 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/664#issuecomment-3312728)

It does not use netty for HTTP in this case, it will plug (based on the path you provide) as a Servlet and use it to do the communication.

> - David.

---

<div class="post-metadata">

**Author:** ![davrob](https://avatars.discourse-cdn.com/v4/letter/d/d78d45/32.png) [@davrob](https://discuss.elastic.co/u/davrob)\
**Post date:** [February 9, 2012, 11:09am UTC](https://discuss.elastic.co/t/wares-plugin-questions/6644/3 "2012-02-09T11:09:45Z")

</div>

Hi Shay,

On point ii), does this mean that the Servlet is used to do all inter-  
node communication? Is that less efficient than using Java Sockets?

If the above is true then implementing SSL is just a matter of  
plugging in the default application server SSL for servlets?

-David

On Feb 9, 8:15 am, Shay Banon [kim...@gmail.com](mailto:kim...@gmail.com) wrote:

> On Wednesday, February 8, 2012 at 8:22 PM, davrob2 wrote:
> 
> > Hi, I have a few questions about the Wares plugin:
> 
> > i) Do I have to use REST / http to query ES, or can I still use the  
> > java client, which will be deployed in the same application server  
> > (Weblogic).
> 
> If its embedded, then you can just use the Node itself to talk to the cluster. You can get it from the servlet context attribute:[https://github.com/elasticsearch/elasticsearch-transport-wares/blob/m](https://github.com/elasticsearch/elasticsearch-transport-wares/blob/m)....
> 
> > ii) Does Wares automatically encrypt the Java port (Netty) cluster  
> > communication using SSL. If not how is this done, Shay seem to  
> > indicate that this is possible in his comment here:  
> > [Add HTTPS and basic authentication support to elasticsearch · Issue #664 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/664#issuecommen)...
> 
> It does not use netty for HTTP in this case, it will plug (based on the path you provide) as a Servlet and use it to do the communication.
> 
> > - David.

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [February 12, 2012, 10:51am UTC](https://discuss.elastic.co/t/wares-plugin-questions/6644/4 "2012-02-12T10:51:08Z")

</div>

Yes, the servlet uses to the embedded Node started to do all its "work". Exposing it is up to you, if you expose it through HTTP through the servlet container, then you can use the container SSL for it.

On Thursday, February 9, 2012 at 1:09 PM, davrob2 wrote:

> Hi Shay,
> 
> On point ii), does this mean that the Servlet is used to do all inter-  
> node communication? Is that less efficient than using Java Sockets?
> 
> If the above is true then implementing SSL is just a matter of  
> plugging in the default application server SSL for servlets?
> 
> -David
> 
> On Feb 9, 8:15 am, Shay Banon \<[kim...@gmail.com](mailto:kim...@gmail.com) ([http://gmail.com](http://gmail.com))\> wrote:
> 
> > On Wednesday, February 8, 2012 at 8:22 PM, davrob2 wrote:
> > 
> > > Hi, I have a few questions about the Wares plugin:
> > 
> > > i) Do I have to use REST / http to query ES, or can I still use the  
> > > java client, which will be deployed in the same application server  
> > > (Weblogic).
> > 
> > If its embedded, then you can just use the Node itself to talk to the cluster. You can get it from the servlet context attribute:[https://github.com/elasticsearch/elasticsearch-transport-wares/blob/m](https://github.com/elasticsearch/elasticsearch-transport-wares/blob/m)....
> > 
> > > ii) Does Wares automatically encrypt the Java port (Netty) cluster  
> > > communication using SSL. If not how is this done, Shay seem to  
> > > indicate that this is possible in his comment here:  
> > > [Add HTTPS and basic authentication support to elasticsearch · Issue #664 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/664#issuecommen)...
> > 
> > It does not use netty for HTTP in this case, it will plug (based on the path you provide) as a Servlet and use it to do the communication.
> > 
> > > - David.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 3:39am UTC](https://discuss.elastic.co/t/wares-plugin-questions/6644/5 "2017-07-06T03:39:51Z")

</div>


