Hot deploy on JBoss - how do I make JBoss “see” the change?

后端 未结 16 1551
傲寒
傲寒 2020-11-30 21:23

I am developing a Java EE application that I deploy over and over again on a local JBoss installation during development. I want to speed up the build by hot deploying my ap

16条回答
  •  时光说笑
    2020-11-30 22:09

    Hot deployment is stable only for changes on static parts of the application (jsf, xhtml, etc.).

    Here is a working solution, according to JBoss AS 7.1.1.Final:

  • Build your project.
  • Navigate to [JBOSS_HOME]/standalone/tmp/vfs.
  • Open the most recently modified folder named "deployment[some_alphanumeric_values]", i.e. "deployment344b1c870c8edbd".
  • Navigate to the specific view that you want to edit (usually, this is included into the packaged .war folder) and open it with a text editor (i.e. Notepad++).
  • Make the changes you want and save the file.
  • Refresh the respective page on your browser. The changes should be visible now.
  • When finished, don't forget to copy these changes to your actual development environment, rebuild and redeploy.

提交回复
热议问题