Reloading web.xml is not supported, which was confirmed by the JRebel support team. The next problem I had with JRebel was web.xml. JRebel support team suggested writing a JiBX plugin myself (more info about creating plugins can be found here), but unfortunately JiBX does not provide incremental builds, so it would not add much value anyway. It troubled me quite a lot, because it is heavily used in my current company. What canNOT be reloaded?įrom the major problems I encountered, the first one was the lack of JiBX plugin. Personally, I used the Maven, Eclipse, IntelliJ, Spring, Struts and EJB plugins with minor issues. For example, if you change your Spring XML configuration file, you would also like to inform the Spring container that a class definition is outdated. The main idea behind plugins is that sometimes you may want to reload more files after compiling a class or changing a resource file. In addition to class reloading, JRebel provides a large variety of plugins that alter the way reloading works for different languages and libraries. Drebel.properties="/absolute_path_to_your_home_folder/.jrebel/jrebel.properties"Īgain, remember to specify absolute paths. ="/absolute_path_to_your_home_folder/.jrebel/jrebel.log" javaagent:"/absolute_path_to_jrebel_installation/jrebel/jrebel.jar" In the simplest case you have to add the -javaagent parameter either to your launch script or to the server start script: java Next thing is the JVM launch configuration. The web/link element is for the web resources that you would like to have reloaded, i.e.: JSPs, image files, CSS files, JavaScript files, etc. Then JRebel will find out that the class is changed and reload it. If you use Eclipse and have ticked the option Project/Build Automatically, after you save the source file Eclipse will automatically compile your code and overwrite the class file. The classpath element is used for the path to your compiled classes. You should put absolute paths, not relative ones, as the working directory from which JRebel will run may be hard to specify. Here is an example of the rebel.xml file:
0 Comments
Leave a Reply. |