# Launch Kibana in a Java VM as a Servlet

**URL:** <https://discuss.elastic.co/t/launch-kibana-in-a-java-vm-as-a-servlet/28253>\
**Category:** Kibana\
**Created:** [August 28, 2015, 3:12pm UTC](https://discuss.elastic.co/t/launch-kibana-in-a-java-vm-as-a-servlet/28253 "2015-08-28T15:12:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Victor\_Ferrer](https://avatars.discourse-cdn.com/v4/letter/v/b2d939/32.png) [@Victor\_Ferrer](https://discuss.elastic.co/u/Victor_Ferrer)\
**Post date:** [August 28, 2015, 3:12pm UTC](https://discuss.elastic.co/t/launch-kibana-in-a-java-vm-as-a-servlet/28253/1 "2015-08-28T15:12:04Z")

</div>

Hi,

I´d like to know whether is possible to launch Kibana inside a Java VM as a servlet (along with its servlet mapping)

For instance, I have a Spring Boot application where I can register the H2 Console Servlet:

@Bean  
ServletRegistrationBean h2servletRegistration(){  
ServletRegistrationBean registrationBean = new ServletRegistrationBean( new WebServlet());  
registrationBean.addUrlMappings("/console/\*");  
return registrationBean;  
}

Is there an ES equivalent to _WebServlet_ I could instantiate in order to launch Kibana?

Thanks!

---

<div class="post-metadata">

**Author:** ![spalger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spalger/32/14092_2.png) [@spalger](https://discuss.elastic.co/u/spalger)\
**Post date:** [September 1, 2015, 3:00am UTC](https://discuss.elastic.co/t/launch-kibana-in-a-java-vm-as-a-servlet/28253/2 "2015-09-01T03:00:12Z")

</div>

Kibana is a separate project from Elasticsearch and does not run on the JVM. It has it's own server which you can run by following these directions: [https://www.elastic.co/guide/en/kibana/current/setup.html#install](https://www.elastic.co/guide/en/kibana/current/setup.html#install)

---

<div class="post-metadata">

**Author:** ![tinle](https://avatars.discourse-cdn.com/v4/letter/t/c77e96/32.png) [@tinle](https://discuss.elastic.co/u/tinle)\
**Post date:** [September 1, 2015, 3:11am UTC](https://discuss.elastic.co/t/launch-kibana-in-a-java-vm-as-a-servlet/28253/3 "2015-09-01T03:11:23Z")

</div>

Kibana4 run on node.js and come with its own node server binary.

---

<div class="post-metadata">

**Author:** ![Victor\_Ferrer](https://avatars.discourse-cdn.com/v4/letter/v/b2d939/32.png) [@Victor\_Ferrer](https://discuss.elastic.co/u/Victor_Ferrer)\
**Post date:** [September 30, 2015, 4:55pm UTC](https://discuss.elastic.co/t/launch-kibana-in-a-java-vm-as-a-servlet/28253/4 "2015-09-30T16:55:27Z")

</div>

Thanks, I thought it was a Java application as well.  
@tinle, thanks too!

---

<div class="post-metadata">

**Author:** ![djmcgreal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/djmcgreal/32/52956_2.png) [@djmcgreal](https://discuss.elastic.co/u/djmcgreal)\
**Post date:** [October 1, 2015, 10:35am UTC](https://discuss.elastic.co/t/launch-kibana-in-a-java-vm-as-a-servlet/28253/5 "2015-10-01T10:35:38Z")

</div>

Apache Karaf Decanter runs Kibana in a JVM, I saved a mental note to check this out when I get to that stage of my project, but I suspect t's Kibana 3 anyways: [http://search.maven.org/#artifactdetails|org.apache.karaf.decanter|org.apache.karaf.decanter.kibana|1.0.0|bundle](http://search.maven.org/#artifactdetails%7Corg.apache.karaf.decanter%7Corg.apache.karaf.decanter.kibana%7C1.0.0%7Cbundle)

---

<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, 2:12pm UTC](https://discuss.elastic.co/t/launch-kibana-in-a-java-vm-as-a-servlet/28253/6 "2017-07-06T14:12:08Z")

</div>


