• Post Reply Bookmark Topic Watch Topic
  • New Topic

Is it possible to define the datasource inside the project ?

 
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: 20827
68
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.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!