Jboss step by step set hot deploy

隐身守侯 提交于 2019-12-02 21:21:19
bondkn
  1. Edit Standalone.xml,change development to "true"
    <configuration> <jsp-configuration development="true"/> </configuration>

  2. Start JBoss.

  3. Go to ServerLocation-> standalone\tmp\vfs
  4. Sort by "Date Modified" descending
  5. Open the first folder(something like deployment*******)
  6. There will be your complete exploded war.
  7. Go to the jsps,js,css location,edit & save the changes.
  8. changes will be displayed live.

Follow this procedure to enable hot deployment enable in JBOSS

It will work on JBoos AS 7.0.1 and should work on other versions with slight changes

  1. Go to JBoss administrative panel (by default localhost:9990)
  2. Now in profile settings open Core - Deployment Scanners
  3. Turn on Autodeploy-Exploded (set to true)
  4. You can set scanner time (by default 5000 ms) to appropriate as according to you your (I prefer to set 2000, for more fast incremental publishing when I make changes in projects)

That it.

Now JBoss make HOT deploy for almost all kind of files

I think that you're looking for something like JRebel. For those who haven't had the chance to hear about it, it's a magic tool made to get rid of such annoying redeploys after every modification made in your source files.

As you're using Netbeans IDE, this a dedicated tuto explaining how to set up JRebel.

I have the same problem. My solution is to run the program on debug mode without editing config file. Once you are done, you can see the result without restarting.

Deploy the app as exploded (project.war folder), add in your web.xml:

<web-app>
    <context-param>
        <param-name>org.jboss.weld.development</param-name>
        <param-value>true</param-value>
    </context-param>

Copy class/jsp/etc, update the web.xml time stamp every-time you deploy(append blank line):

set PRJ_HOME=C:\Temp2\MyProject\src\main\webapp
set PRJ_CLSS_HOME=%PRJ_HOME%\WEB-INF\classes\com\myProject

set JBOSS_HOME= C:\Java\jboss-4.2.3.GA-jdk6\server\default\deploy\MyProject.war
set JBOSS_CLSS_HOME= %JBOSS_HOME%\WEB-INF\classes\com\myProject

copy %PRJ_CLSS_HOME%\frontend\actions\profile\ProfileAction.class %JBOSS_CLSS_HOME%\frontend\actions\profile\ProfileAction.class
copy %PRJ_CLSS_HOME%\frontend\actions\profile\AjaxAction.class %JBOSS_CLSS_HOME%\frontend\actions\profile\AjaxAction.class

ECHO.>>%JBOSS_HOME%\WEB-INF\web.xml
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!