Is there an easy way in JBoss AS to simply undeploy all user applications without nuking the deployments that JBoss AS needs to run? Is there a recipe for this in your book. I tend to create an Ant build file in the root of my JBoss installation with the following target:
Maybe the other way of doing this is to use an custom external folder (not the server/< serverName>/deploy) to deploy the applications/datasources. Then for undeploying, you can just delete all from that custom folder. For configuring custom external folder on JBossAS-5 see this.
Jaikiran Pai wrote:Maybe the other way of doing this is to use an custom external folder
In JBoss-4.x hotdeployment of applications deployed in an external folder was not supported. I am trying to find a post from Peter in which he had mentioned a different (improved) behaviour in JBossAS-5. I haven't been able to find that post yet.
Along the lines of what Jaikiran said. You should be able to configure the deployment scanner service to have a second directory that you just use for your user deployed apps. Then you can wipe out that directory.