DataSource definition is available from Java EE 6 onwards and you can define it in web.xml/ejb-jar.xml/application.xml. If other servers do not have Java EE 6 support, DataSource definition will not work in those servers.
[Message sent by forum member 'jr158900']
http://forums.java.net/jive/thread.jspa?messageID=470228