2) Check also the Arquilian-Project (http://www.jboss.org/arquillian/), which uses DeploymentManager API. I was able to dynamicaly build, upload and deploy an EJBs for JUnit Tests in the remote JBoss AS.

3) Take a look at Cargo-Project (http://cargo.codehaus.org). But there is a limitation, the deployable must be uploaded to the remote server first. I hope, they will fix it some day...

I'm actually one of the managers in the CARGO team, and the information you provided will be used to make the CARGO JBoss container's remote methods work remotely on JBoss 4.x, 5.x and 6.0.0 Mx. The issue is https://jira.codehaus.org/browse/CARGO-416 and should be fixed in CARGO 1.0.3.

Of course, if you would like to contribute to CARGO with your idea of the implementation, feel free to notify me.