Is it possible to define the datasource inside the project ?
posted 7 months ago
I'm not sure if it's possible to define data sources inside the application (EAR, WAR) itself, but it is possible to put it in separate XML files and deploy those. See https://docs.jboss.org/author/display/WFLY8/DataSource+configuration, then the "Deployment of -ds.xml files" subsection. It links to the XSD you'd need to adhere to.