1 Reply Latest reply on Jan 9, 2014 3:19 PM by Wolf-Dieter Fink

    Do I need to define data sources in standalone.xml?

    Sean Barry Newbie



      I'm a complete newbie in JBoss AS 7 and developing Java EE Web Projects. I've developed a REST service that accesses a data source and I was wondering if there is a way to just define the datasource in a .xml file within my project or do I have to always define it in standalone/configuration/standalone.xml?





        • 1. Re: Do I need to define data sources in standalone.xml?
          Wolf-Dieter Fink Master

          With former JBoss versions the database are defined in *-ds.xml files.

          Until AS7 this has changed and you should use standalone or domain configuration to be able to manage the datasource.


          You might use the -ds.xml files in development and drop it into the standalone/deployments folder, but this feature is not recommended for production.


          I prefer creating DS in the configuration, you might use a simple CLI script to add the datasource