-
1. Re: How to restart a jboss war from another jboss war?
peterj Feb 15, 2012 10:06 AM (in response to its_me)Which version of JBoss AS? If 6.x or earlier, there are MBeans you can call to undeploy the app, but from what I recall that ends up removing the app from the deploy directory making redeployment impossible. It sounds like the app you want to control is deployed as an exploded app; if so you could touch the web.xml file - a timestamp update will cause the app server to redeploy the app.
-
2. Re: How to restart a jboss war from another jboss war?
its_me Feb 15, 2012 9:42 PM (in response to peterj)Hello Peter,
We are using Jboss AS 6.0 final server. Can you please throw more light on how to touch the web.xml inside a war of another application in our server?
Thanks and Regards,
Nid..................................
-
3. Re: How to restart a jboss war from another jboss war?
peterj Feb 16, 2012 9:51 AM (in response to its_me)I don't understand the question. What part of touching the web.xml file are you having an issue with? The path should be fairly easy to get (though you might need a property to define the app's directory name), and then use the File.setLastModified() method.
-
4. Re: How to restart a jboss war from another jboss war?
its_me Feb 16, 2012 9:49 PM (in response to peterj)Hello Peter,
Our question was how do we modify the xml file within myApp.war? Should we do an unwar and war it again?We are not sure of this process...
Thanks and Regards,
Nid..............................
-
5. Re: How to restart a jboss war from another jboss war?
ozizka Feb 16, 2012 10:24 PM (in response to its_me)Deploy it as exploded, i.e. unzipped.
Through JMX, get the path to the deployment. See AS JMX console for what to expect.
Then "touch" the web.xml with File.setLastModified(). JBoss will redeploy the app.