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 |
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 <[hidden email]> 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 |
In reply to this post by Mathieu Lirzin
Hello Mathieu,
I have tried jRebel link: https://zeroturnaround.com/software/jrebel/ with IntelliJ. +1 Taher for the change in architecture from a single huge monolithic to some microservice hot swap (dynamic loading) flexible architecture. Thanks & Regards, Pradhan Yash Sharma On Thu, Jul 26, 2018 at 2:38 PM, Mathieu Lirzin <[hidden email]> 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 > |
In reply to this post by Mathieu Lirzin
Hi Mathieu,
hot code replacement works fine in Eclipse if you have updated the Eclipse classpath through ./gradlew eclipse. You can run/debug OFBiz in Eclipse without problems mostly. Sometimes you have to restart, depending of the changes. For me this is working sufficiently. Best regards, Michael Brohl ecomify GmbH www.ecomify.de Am 26.07.18 um 11:08 schrieb Mathieu Lirzin: > 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 > smime.p7s (5K) Download Attachment |
In reply to this post by Yash Sharma
Hi Pradhan, Taher,
I think this would be a huge undertaking and I am not sure if this would be a project goal for the near future. We have many fields of action which should have more focus like UI, functionality, documentation etc.. So yes, nice goal but more on the long view... Regrds, Michael Am 26.07.18 um 11:27 schrieb Yash Sharma: > Hello Mathieu, > > I have tried jRebel link: https://zeroturnaround.com/software/jrebel/ > with IntelliJ. > > +1 Taher for the change in architecture from a single huge monolithic to > some microservice hot swap (dynamic loading) flexible architecture. > > > Thanks & Regards, > Pradhan Yash Sharma > > On Thu, Jul 26, 2018 at 2:38 PM, Mathieu Lirzin <[hidden email]> > 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 >> smime.p7s (5K) Download Attachment |
Yes agreed Michael. This is a "someday" to do item.
On Thu, Jul 26, 2018, 1:53 PM Michael Brohl <[hidden email]> wrote: > Hi Pradhan, Taher, > > I think this would be a huge undertaking and I am not sure if this would > be a project goal for the near future. > > We have many fields of action which should have more focus like UI, > functionality, documentation etc.. > > So yes, nice goal but more on the long view... > > Regrds, > > Michael > > > Am 26.07.18 um 11:27 schrieb Yash Sharma: > > Hello Mathieu, > > > > I have tried jRebel link: https://zeroturnaround.com/software/jrebel/ > > with IntelliJ. > > > > +1 Taher for the change in architecture from a single huge monolithic to > > some microservice hot swap (dynamic loading) flexible architecture. > > > > > > Thanks & Regards, > > Pradhan Yash Sharma > > > > On Thu, Jul 26, 2018 at 2:38 PM, Mathieu Lirzin < > [hidden email]> > > 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 > >> > > > |
In reply to this post by Mathieu Lirzin
Hi Mathieu,
Have you looked into http://dcevm.github.io/ ? No comment about gretty as I haven't tried. Regards, James Yong On 2018/07/26 09:08:44, Mathieu Lirzin <[hidden email]> 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 > |
Hello James,
James Yong <[hidden email]> writes: > Have you looked into http://dcevm.github.io/ ? > > No comment about gretty as I haven't tried. I didn't know about it. I will take a look. Thanks. -- Mathieu Lirzin GPG: F2A3 8D7E EB2B 6640 5761 070D 0ADE E100 9460 4D37 |
Free forum by Nabble | Edit this page |