title: Embedded Jetty 8 and configuration of JNDI MySQL connection pool with no XML
body: <p>I have been searching a good while now, and I am not able to find any good tutorials or answers to this question.</p>
  
  <p>In this project there are only one XML-file, pom.xml, the server is an embedded Jetty 8, with a programmatically defined ServletContextHandler that handles all the incoming requests. My point is, no WebAppContext or WAR-file(as it seems like all tutorials expect a WEB-INF, WebAppContext, web.xml, jetty-env.xml or WAR file).</p>
  
  <p>I simply want to add a JNDI-datasource for pooling sql-connections programmatically in Java. Are there anyone that could point me to a good tutorial, or give some tips on how to achieve this?</p>