I
I
Innokenty Ogoyukin2015-06-27 18:29:27
Java
Innokenty Ogoyukin, 2015-06-27 18:29:27

Does Java EE need to redeploy a project every time when developing on TomCat?

Hello everyone, please tell me) When developing a project on Java EE + TomCat 7 + Maven, each time you need to restart the server when changing files (jsp, css ...)? Clean, install, reboot? If there is a quick way please tell me)

Answer the question

In order to leave comments, you need to log in

4 answer(s)
C
cthulhudx, 2015-06-27
@Ogoyukin

hotswap

E
Emin, 2015-06-27
@Ewintory

There is: JRebel ( article ). But he is paid.

V
Vyacheslav, 2015-07-02
@vkulakov

Use the IDE to develop your application. For example, Eclipse does not re-deploy the application to the server when changing jsp, js, css, etc. files. Accordingly, by changing the styles, you can almost immediately see the result in the browser.
Deploy occurs only when changing java classes, configurations, etc.

Z
zesetup, 2016-04-19
@zesetup

I suggest 3 ways:
1) Use Spring loaded ,
in Tomcat launch options you only need to specify "JAVA_OPTS=-javaagent:C:\springloaded-1.2.5.RELEASE.jar -noverify"
2) Use HotSwap Agent , you will need to patch your Java " DCEVM Java patch" and specify the agent in Tomcat launch options, for example:
JAVA_OPTS=-XXaltjvm=dcevm -javaagent:C:\hotswap-agent.jar
in these two cases, you need to copy the compiled classes to the server folder,
for example, Eclipse has File Synchronization Plugin, you can also use Hot Deploy from the IDE
3) Run the application in Debug mode and use Hot Deploy from your IDE

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question