3 Replies Latest reply on May 23, 2011 4:00 AM by Wolf-Dieter Fink

    Datasource file in WEB-INF or deploy directory

    davidmiller Newbie

      Hi All,


      I'm fairly new to JBoss, so bear with me if this is a silly question.


      I have been under the understanding that the datasource file (*-ds.xml) should be place in the deploy directory of the given server, as per [[http://community.jboss.org/wiki/DSdotXML]].

      But I have found that if a *ds.xml file is in the WEB-INF directory of a war file within the ear file, then this file is used.


      If both files are present I find that I can't deploy the Ear and the error message rarely points me in the direction of connection issues, although sometimes it does say the connection is already configured.


      What is best practice for dealing with datasources?