Hi Francesco, I faced the same situation last week.
I wrote a Wicket plugin that clears the Localizer cache. It does not clear the resource bundle cache because I use Spring's ReloadableResourceBundle, but that should be very easy to add. Configuration is a little more difficult than with JRebel. I had to add src/main/resources as extraClasspath for some reason, to get it to reload HTML and property files. Here is a gist with my Wicket plugin and my working hotswap-agent.properties: https://gist.github.com/theigl/6ff4a505eac8f166b9bd079017884474 Best, Thomas On Fri, Jul 13, 2018 at 4:53 PM, Francesco Chicchiriccò <ilgro...@apache.org > wrote: > Hi all, > at Syncope we recently switched from JRebel to HotSwapAgent, mostly > because the MyJRebel program has ended. > All works quite well for Java classes, but we do have issues with HTML and > properties files (for Resource Bundles) used by Wicket. > > Please consider that we do package our Wicket application as JAR with > web-fragment [1], and HTML and properties files are kept under > src/main/resources [2]. > > I have started building a Wicket plugin for HotSwapAgent following the > instructions at [3] and the samples at [4]: the MyFaces plugin [5] looks > promising, at least because it says that it's clearing out the Resource > Bundle cache. > > So my question is: assuming that HotSwapAgent correctly replaces the HTML > and properties file in the classloader, how can I trigger Wicket to reload? > > TIA > Regards. > > [1] https://github.com/apache/syncope/tree/master/client/console > [2] https://github.com/apache/syncope/tree/master/client/ > console/src/main/resources/org/apache/syncope/client/console > [3] http://hotswapagent.org/mydoc_custom_plugins.html > [4] https://github.com/HotswapProjects/HotswapAgent/ > blob/master/README.md#java-frameworks-plugins > [5] https://github.com/HotswapProjects/HotswapAgent/ > blob/master/plugin/hotswap-agent-myfaces-plugin/src/main/ > java/org/hotswap/agent/plugin/myfaces/MyFacesPlugin.java > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >