Indeed, I think it's best to let the configuration live inside the application server rather than being added to the deployment.
It's been frustrating finding out there are more than one way to deploy a datasource, when I can only find one way through the documentation.