Here is a cheatsheet with some examples of Datasources configurations which are valid for JBoss AS 7, JBoss EAP 6 and WildFly.
JBoss AS 5 Datasource configuration
In order to create a DataSource (so that you can use JDBC connectivity) you need to create a file ending with -ds.xml under the “deploy” directory of your server. The default Datasource file The default data source for JBoss 5 is the HypersonicDB data source. Here’s the hsqldb-ds.xml that ships with JBoss : <?xml version=”1.0″ … Read more