Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 985 Bytes

File metadata and controls

29 lines (21 loc) · 985 Bytes

Supports also Tomee, GlassFish and Payara. Configure Apache Tomcat with extraClasspath and webApp property.

Configuration

Setup extraClasspath property in hotswap-agent.properties.

#
# Add this classpath prior to application classpath.
# This may be useful for example in multi module maven project, where you do not need to build JAR file
# after each change.
#
# Note that there must be a plugin that will provide actual replacement such as JettyPlugin for Jetty servlet container.
extraClasspath=

Implementation notes:

StandardContext (parsed web.xml configuration):

  • isCachingAllowed() - force to false
  • watchedResources
  • startInternal() - implemented lifecyle

ApplicationContext:

  • getResource(String path) - override webapp directory location
  • ClassLoader getClassLoader() -> ClassLoader result = context.getLoader().getClassLoader();