Datasources are handled different in EAP6.
The recommended way is to use a module for the driver and use the subsystem datasources to
install the DS as managed, see
You might use *-ds.xml files for development, a description how to do it is here
(
https://docs.jboss.org/author/display/AS72/DataSource+configuration)
Posted by forums
Original post:
https://community.jboss.org/message/869779#869779