Deployment in JBoss goes through the JMX MBean MainDeployer. There's a method (operation) called "deploy" which takes a URL and I believe should return error status when deployment fails or not. If not there is another method that will check for deployment errors.
You have to create a NotificationListener to listen for notifications from the MBean with objectname: jboss.system:type=Server and notification type : org.jboss.system.server.started
You will receive a notification once the server is started.