Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Kotlin in Action this week in the Kotlin 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: 21092
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!