Win a copy of Murach's Java Programming this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Is it possible to define the datasource inside the project ?  RSS feed

 
Cedric Bosch
Ranch Hand
Posts: 99
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd like to define my datasource + mysql connector inside my project instead of inside standalone.xml.

Is this possible ?
 
Rob Spoor
Sheriff
Posts: 21019
85
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!