Francesco Chicchiriccò
2018-07-13 14:53:06 UTC
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-***@wicket.apache.org
For additional commands, e-mail: users-***@wicket.apache.org
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-***@wicket.apache.org
For additional commands, e-mail: users-***@wicket.apache.org