-
1. Re: JBOSS HOT deployment
peterj Feb 28, 2013 9:48 AM (in response to ashishjoshi106)If you change a class file, then you must also "touch" the web.xml file to get JBoss AS to redeploy the app. I usually make an innocuous change, such as adding an empty line (or removing it on the second redeploy!) and saving it.
-
2. Re: JBOSS HOT deployment
ashishjoshi106 Mar 12, 2013 8:29 AM (in response to peterj)its not correct answer hot deployment means if i add a class file in jboss application server then it will automatically update itself.
-
3. Re: JBOSS HOT deployment
peterj Mar 12, 2013 10:53 AM (in response to ashishjoshi106)JBoss AS does not have the ability to replace a single class within an application. The only "hot deploy" available in JBoss is when an application is either deployed or redeployed without restarting JBoss AS. And the only way to get JBoss AS to redeploy an "exploded" war is to touch the web.xml file. Of course, if you have a war file, then updating the war file will also cause an application redeploy.
-
4. Re: JBOSS HOT deployment
ashishjoshi106 Mar 15, 2013 1:41 AM (in response to peterj)So in jboss there is no option to update a single class file in incremental deployment of war, we can only add a class file and restart the jboss.
-
5. Re: JBOSS HOT deployment
peterj Mar 15, 2013 10:40 AM (in response to ashishjoshi106)>>there is no option to update a single class file in incremental deployment of war
That is correct.
>> we can only add a class file and restart the jboss.
That is not correct. As I already stated, JBoss AS will redeploy an application while it (JBoss AS) is running. In other words, youi do not have to restart JBoss AS. It all depends on how your applicaiton is deployed:
a) If you deployed your application as a war file, when you update the war file the application is redeployed.
b) If you deployed your application as an exploded war (an unpacked war), then you can redeploy the application by touching the web.xml (that is, by changing it last modified timestamp). In Linux you can use the touch command, in Windows edit the web.xml and add a space or blank line or make some other inncuous change and save it.
Both mechanisms are known as hot deployment. Also note that this is the default behaviour - there is a mechanism to turn off hot deployment.
-
6. Re: JBOSS HOT deployment
ashishjoshi106 Mar 22, 2013 12:29 AM (in response to peterj)Thank You so much
-
7. Re: JBOSS HOT deployment
paulcooper Apr 9, 2013 1:30 PM (in response to ashishjoshi106)I have a exploded war setup for my application and even though I have updated a class and touched (windows method) the web.xml file the old cached class file is still being used. I assume I have a setup with the hot deployment feature turned off. Where is this set and how do I turn it on?
-
8. Re: JBOSS HOT deployment
wdfink Apr 9, 2013 2:10 PM (in response to paulcooper)That depends on the used JBoss version. Please provide the version you use.
-
9. Re: JBOSS HOT deployment
paulcooper Apr 10, 2013 5:46 AM (in response to wdfink)According to jmx-console the version is 5.1.0 GA
Paul
-
10. Re: JBOSS HOT deployment
wdfink Apr 10, 2013 9:09 AM (in response to paulcooper)See server/<profile>/deploy/hdscanner-jboss-beans.xml
you will find the scan period and other parameters here.
If you use the unchanged configuration the scanner is enabled by default.
You can find more information in this wiki
-
11. Re: JBOSS HOT deployment
paulcooper Apr 10, 2013 9:33 AM (in response to wdfink)Thanks, Wolf-Dieter.
I have found that my hdscanner-jboss-beans.xml is missing which is how the hot deploy is meant to be turned off. Do you have or can you point me at a copy of the full file so I can build my own copy. All I can find on the web is the snippet that is edited and I do not have another JBoss server setup to copy it from.
Regards,
Paul
-
12. Re: JBOSS HOT deployment
wdfink Apr 11, 2013 4:38 AM (in response to paulcooper)See the download page and scroll down to the 5.1 version do you have as the file might be not the same for different versions.
-
13. Re: JBOSS HOT deployment
wdfink Apr 11, 2013 4:39 AM (in response to paulcooper)Also another option is if you have several profiles (different directories in the 'JBOSS_HOME/servers' directory), you might simple copy the file from a different profile.
-
14. Re: JBOSS HOT deployment
paulcooper Apr 11, 2013 4:58 AM (in response to wdfink)Wolf-Dieter,
There are no other profiles. I also did a file search to see if that file existed elsewhere.
Thanks for the link. I now have the joy of trying to get round the download blocking proxy server my company uses. :-(
Regards,
Paul