Hmm, at a quick glance, I think this will not work. The problem is that OFBiz is currently designed as a "collection" of webapps each loaded separately but housed in one jar file that also includes an embedded web server. So you have to alter the Catalina Container or something like that to perhaps be able to incorporate hot plugging.
If you like a suggestion, I would say we probably need to re-visit the architecture of the whole web deployment style we currently have (The Servlet Container, the Servlets, The Webapps, Tomcat, the whole thing). We need to make a more flexible architecture that can easily deploy as a stand-alone webapp that you can put on any servlet container. Then all such plugins and tools would be easier to use. On Thu, Jul 26, 2018 at 12:08 PM, Mathieu Lirzin <[email protected]> wrote: > Hello, > > Being a bit frustrated by the slowness of having to stop/compile/restart > OFBiz manually each time a java file is changed, I have been searching > for a way to make Java code hot-deployable, meaning recompiling and > redeploying Java classes each time a ‘.java’ file is saved. > > The ‘gretty’ Gradle plugin seems to provide such feature [1][2]. > > I would like to know if somebody has already tried to integrate it in > OFBiz build system? and if there is any OFBiz singularitiy preventing > its use? > > Thanks. > > [1] https://guides.gradle.org/building-java-web-applications/ > [2] https://akhikhl.github.io/gretty-doc/Hot-deployment.html > > -- > Mathieu Lirzin > GPG: F2A3 8D7E EB2B 6640 5761 070D 0ADE E100 9460 4D37
