I have found the following solution, which might not be elegant, but works for me. Using System.getProperties() I have got a loads of properties. The one keys that were interesting for me were: "jboss.server.data.dir" and "${project.artifactId}${project.version}" (the 2nd one gives you an absolute path to the deployed app).
Hope it helps somebody.