Jboss step by step set hot deploy

后端 未结 8 1827
南旧
南旧 2021-02-03 13:45

Hello i would like ask how it is possible configure jboss server for something like live, hot deploment:

  • every time when i change some code of my jsp,html,js or cs
8条回答
  •  抹茶落季
    2021-02-03 14:12

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

    
        
            org.jboss.weld.development
            true
        
    

    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
    

提交回复
热议问题