Well, you can redeploy an app by just updating the .ear file on your deploy directory (basically, where you put iit the first time)
But i assume you want to do it from a remote machine?
I want to do it from remote machine. Well this is not a problem. But the issue is, if I copy-paste the ear to the deploy directory the apps is not restarted. So I assume I have to restart the server.
But the issue is, if I copy-paste the ear to the deploy directory the apps is not restarted
By default, the server should have picked up the application and started the deployment. Have you done any changes to the jboss-service.xml file in the %JBOSS_HOME%/< serverName>/conf folder? Specifically look for the "Deployment Scanning" MBean in that file and make sure that the MBean or its "ScanEnabled" and "ScanPeriod" properties are not commented out.
Is it possible to deploy apps to appserver without shutting it down? e.g through a web-console or something?
The other way to do this is to use the jmx-console (http://localhost:8080/jmx-console). On the page that comes up, look for MainDeployer and click on that link. The next page will list down all the methods available. There are a couple of deploy() method which accept the file path to deploy the application.