• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

undeploying applications

 
Author
Posts: 164
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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:

 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Author
Posts: 198
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic