I have a JBoss server running and want to deploy a service. The service connects to a database which is configured in the following xml file
Make sure you have property substitution enabled in your standalone.xml.
Look for the following subsytem in standalone.xml, and make sure the values are set to true
true true
EDIT: This is only supported for eap6 and jboss 7.1.2 (or later)