Hotswap class changes using the Docker Integration Plugin

Answered

So I am trying to simplify the setup of a project that I work on and docker seems to be a natural fit.

Our development configuration consists of a tomcat instance fronted by apache web server.  All of this wired up using docker compose and run in Intellij using the Jetbrain's Docker Integration plugin.

Everything is working fine.  Since the webapp is mounted in the tomcat container any JSP changes can be repackaged and tested immediately by refreshing the page.  However, class changes (service, controllers, etc) are not.

Basically, I am trying the duplicate the hotswapping behaviour you get when starting a Tomcat run configuration in debug mode (minor code changes can be repackaged and tested without re-starting / re-deploying the app)

Any ideas on how to replicate this behaviour with a tomcat instance running inside a docker container?

Any help would be greatly appreciated.

Thanks,

Chris

 

1
1 comment

You can try using Tomcat Remote configuration instead.

0

Please sign in to leave a comment.