In JBoss 5 and 6, we used the methods described on http://community.jboss.org/wiki/ProfileServiceDeploymentManagerin5x to remotely deploy Java EE applications to the JBoss server.
That method in particular looks up for
ProfileService in the JNDI registry.
Such an entry seems not to exist in JBoss 7. How can we remotely deploy to the JBoss 7 server?
you can try the jboss-as-maven-plugin
It can deploy applications to any remote JBoss 7. In the sources you can also get a good idea of how write additional deployment features with the controller API (like deploying datasources etc.). It pretty much allows you to do everything the CLI can do.
Some more info here: https://docs.jboss.org/author/display/AS7/Getting+Started+Guide. The video mentioned there is very cool
|Retrieving data ...|