JBoss Community

Datasource file in WEB-INF or deploy directory

created by davidmiller in Datasource Configuration - View the full discussion

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?

 

Thanks,

 

Dave

Reply to this message by going to Community

Start a new discussion in Datasource Configuration at Community