Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

undeploying applications

 
Dan Allen
Author
Ranch Hand
Posts: 164
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:

 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Javid Jamae
Author
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic