title: Can IBM WebSphere Liberty Datasource be split from the server.xml into an include file?
body: <p>Can IBM WebSphere Liberty handle splitting off the datasources/jndi entries from the server.xml into an include?</p>
  
  <p>When I split the datasources out of the server.xml into it's own file, and include it as an include in the server.xml file below the library tags:</p>
  
  <pre><code>&lt;include location="${server.config.dir}/datasources-join-include.xml"/&gt;
  </code></pre>
  
  <p>And the datasources-join-include.xml file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
  &lt;server description="Datasource join include file"&gt;
  
    &lt;dataSource id="db" jndiName="jdbc/Config"&gt;
       &lt;jdbcDriver libraryRef="OracleLib"/&gt;
       &lt;properties.oracle URL="jdbc:oracle:xxx:@hostname:port:db" password="password" user="user"/&gt;
    &lt;/dataSource&gt;
  
    &lt;jndiEntry id="db" jndiName="database" value="jdbc/XXXX"/&gt;
  
  &lt;/server&gt;
  </code></pre>
  
  <p>When setup this way with the include, it fails (doesn't seem to recognize the datasource). When I put the datasource and jndientry back directly into the server.xml in the exact same spot where I had the include, it works fine.</p>