Hello everyone,

I'm in a bit of a dilemma here with my company.  We are using cruise control 
for automated nightly builds.  However I am experiencing issues in trying to 
figure out how to "clean" the active WAR file for our web application, which 
JBoss is using, by essentially deleting it and then dropping in the newly built 
one.  The developers want the active WAR file deleted so I can't simply 
overwrite the old with the new if you will.  Furthermore, JBoss is always using 
the active WAR file, as it is deployed, and I cannot simply invoke delete 
commands from my Ant file without access violations.  So the question arises....



Question:  Can I use a command line statement or a small batch file that 
somehow notifies JBoss to undeploy or remove the current WAR file (by 
specifying its name and path) so that the new one can simply be copied into the 
deploy directory and automatically hot deployed?



I ran across the twiddle utility in the JBoss Documentation, but still largely 
do not understand how to use it.  Is this the utility that could help me?  Can 
I invoke an MBean's method that somehow does what I need, while having been 
called from within a windows batch file?

Any comments or suggestions are much appreciated.  Hopefully there is a simple 
call.  Otherwise there is an ugly work around I have that currently starts and 
stops the JBoss service from batch files.  This approach detracts from some of 
the key reasons for using cruise control so I would like to avoid it at all 
costs.  

Thank you and take care.     


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954512#3954512

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954512

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to