Wicket - runtime class reloading

Deadly 提交于 2020-01-06 02:49:07

问题


I have classical complaint - rebuilding and reloading the web app takes too long. I want to compile the classes (preferrably from the IDE) or change a static file and let the server check what changed and act approprietly (reload the class/file).

What are my options for Wicket + JDK 1.6 ? I'd prefer Jetty, but Tomcat, JBoss AS or others are good, too.

I am not using the ReloadingWicketFilter since I use mvn jetty:run-exploded because it's the simplest way to run my app with desired configuration, and jetty plugin does not (?) support using that.

Thanks, Ondra


回答1:


Be sure to configure Wicket in development mode by adding this init param to Wicket's filter in web.xml:

<init-param>
    <param-name>configuration</param-name>
    <param-value>development</param-value>
</init-param>

Another productivity booster is JRebel which reloads classfile changes (well, most of them) on the fly.



来源:https://stackoverflow.com/questions/3082312/wicket-runtime-class-reloading

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!