aspose file tools*
The moose likes JBoss/WildFly and the fly likes undeploying applications Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "undeploying applications" Watch "undeploying applications" New topic
Author

undeploying applications

Dan Allen
Author
Ranch Hand

Joined: Mar 05, 2003
Posts: 164
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:



Dan Allen | http://mojavelinux.com | Author of Seam in Action - http://mojavelinux.com/seaminaction
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10289
    
168

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.


[My Blog] [JavaRanch Journal]
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10289
    
168

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.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5845
    
    7

Is there a recipe for this in your book.


No. We describe deployment and undeployment, but do not provide any scripts for undeploying all user-deployed apps.


JBoss In Action
Javid Jamae
Author
Ranch Hand

Joined: May 14, 2008
Posts: 198
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.


Author: JBoss in Action, javidjamae.com, @javidjamae on Twitter
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: undeploying applications