Monday, August 19, 2019

Hot swap java projects without jRebel

I followed these steps to enable hot swap on Jboss with intellij



  • Deploy as exploded war 
  • Then set the update action on JBoss

Then on debug need to press this button when you modify the files




This will get swapped

I also added this on web.xml to make the JSP to work


<servlet>
    <servlet-name>jsp</servlet-name>
    <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
    <init-param>
        <param-name>development</param-name>
        <param-value>true</param-value>
    </init-param>
    <load-on-startup>3</load-on-startup>
</servlet>

And this on the JBOSS

Set the auto deply true and scann interval to 2000


And it works the JSP and Java I think I no more rrequired jRebel
Hope that helps


No comments:

Post a Comment