This way you only need to hit refresh in the browser to see the changes in your JavaScript, CSS or other static resources. The web fragment’s resources have to be defined using “link” element with a target matching the directory name. This needs some special attention in our JRebel configuration. Thanks to Servlet 3.0 any resources under META-INF/resources are accessible from the root context of the web application. We want JRebel to monitor for changes both classes and resources in our web fragment as in the main web Let’s assume we have a maven project structure including the main web application and a web fragment. Nevertheless, I would like to share here a working JRebel configuration for a project including web fragments. With such a project structure we didn’t get our JRebel configuration right from the beginning but once you know how to do it it seems extremely trivial. Web fragments allow you to modularize your deployment descriptor which means that a part of your web application can reside in a separate module along with its own descriptor. We have recently started to work on a new project which uses a Servlet 3.0 feature: web fragments. We use Tomcat in our day-to-day development and getting rid of the annoying reboot to see the changes in code and resources was a big relief. Once you have enabled logging, restart your application or server and reproduce the issue that was relevant for your support case.Our team recently added JRebel to our toolbox, and we love it. Add this flag when you are having performance issues. Performance logging – Enabled by adding =true to your VM arguments. In addition, you can enable performance logging: This is the highest detail level logging method. Enabled by adding -Drebel.log=trace to your VM arguments or enabling it from the JRebel IDE plugin settings. This log includes a more detailed level of events. This logging level has a minor impact on performance.ĭebug – Debug level logging. When asked for the jrebel.log file, this level should usually be enabled. Enabled by adding -Drebel.log=true to your VM arguments, or enabling this from the JRebel IDE plugin settings. Info (Default) – Information level logging. Add -Drebel.log=false to disable logging.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |