title: How to define a JNDI Datasource on Undertow?
body: <p>I have a running Spring application that already works on Weblogic and JBoss, and I'm adding the option to run it by itself with Spring Boot.</p>
  
  <p>As it has a Java EE architecture, it has a container-managed datasource that is looked up by a JNDI name, and I wanted to keep it that way.</p>
  
  <p>I see that Spring Boot has the ability to use a EE container called Undertow, that it turns out to be the Wildfly EE engine.</p>
  
  <p>I've done A LOT of research on how to define this JNDI Datasource in Undertow with config files and stuff, but I can't find any documentation on that on Undertow's website and neither on WildFly documentation.</p>
  
  <p>Has someone already done that? I need to know how to define this Datasource with a config file or something.</p>