Hello dears , I need solve for my problem, When I change anything in my java class or entity def I need to restart the OFBiz from cmd or my IDE ,
|
Hi,
Changing java code requires a rebuild of the java classes before a restart of OFBiz. Best regards, Pierre Smits ORRTIZ.COM <http://www.orrtiz.com> OFBiz based solutions & services OFBiz Extensions Marketplace http://oem.ofbizci.net/oci-2/ On Tue, Feb 7, 2017 at 9:51 AM, Ahmad Rabab’ah <[hidden email]> wrote: > Hello dears , > > I need solve for my problem, When I change anything in my java class or > entity def I need to restart the OFBiz from cmd or my IDE , > there is any solution for this problem or every change you must to restart > Ofbiz ? > > Thank you. > > > > *Best Regards,* > > > > Ahmad Rbab’ah > > Java Developer > > > > [image: Description: Logo for Office-4] > > > > [image: Description: bi email-3-02] > > > > P.O.Box 3516 Amman, 11821 > > The Hashemite Kingdom of Jordan > > *Tel.* +962 (6) 556 2620 > > *Mob (Jordan).* +962 79 5077915 > > [image: Description: bi email-3-04] > > [image: Description: bi email-3-05] > > /biict > > @biict > > > > > |
Administrator
|
Same for entity def
See https://cwiki.apache.org/confluence/display/OFBIZ/FAQ+-+Tips+-+Tricks+-+Cookbook+-+HowTo#FAQ-Tips-Tricks-Cookbook-HowTo-WhenAndWhenNotRecompiling Jacques Le 07/02/2017 à 10:00, Pierre Smits a écrit : > Hi, > > Changing java code requires a rebuild of the java classes before a restart > of OFBiz. > > Best regards, > > Pierre Smits > > ORRTIZ.COM <http://www.orrtiz.com> > OFBiz based solutions & services > > OFBiz Extensions Marketplace > http://oem.ofbizci.net/oci-2/ > > On Tue, Feb 7, 2017 at 9:51 AM, Ahmad Rabab’ah <[hidden email]> wrote: > >> Hello dears , >> >> I need solve for my problem, When I change anything in my java class or >> entity def I need to restart the OFBiz from cmd or my IDE , >> there is any solution for this problem or every change you must to restart >> Ofbiz ? >> >> Thank you. >> >> >> >> *Best Regards,* >> >> >> >> Ahmad Rbab’ah >> >> Java Developer >> >> >> >> [image: Description: Logo for Office-4] >> >> >> >> [image: Description: bi email-3-02] >> >> >> >> P.O.Box 3516 Amman, 11821 >> >> The Hashemite Kingdom of Jordan >> >> *Tel.* +962 (6) 556 2620 >> >> *Mob (Jordan).* +962 79 5077915 >> >> [image: Description: bi email-3-04] >> >> [image: Description: bi email-3-05] >> >> /biict >> >> @biict >> >> >> >> >> |
In reply to this post by Ahmad Rabab’ah
Hi Ahmad,
First of all, my recommendation is to use unit tests (not integration tests) where ever you can for a quick feedback loop while developing. Also I could be wrong, but you can sort of take this as a general guideline on what requires a restart (for now, hopefully we'll fix this) # Requires Restart - Java Source Code - Entity Definition - Service Definition - Configurations and properties files # Does not Require Restart - Widgets - FreeMarker templates - Controllers - Non-Java service implementation - Non-Java events - Non-Java actions - Minilang On Tue, Feb 7, 2017 at 11:51 AM, Ahmad Rabab’ah <[hidden email]> wrote: > Hello dears , > > I need solve for my problem, When I change anything in my java class or > entity def I need to restart the OFBiz from cmd or my IDE , > there is any solution for this problem or every change you must to restart > Ofbiz ? > > Thank you. > > > > *Best Regards,* > > > > Ahmad Rbab’ah > > Java Developer > > > > [image: Description: Logo for Office-4] > > > > [image: Description: bi email-3-02] > > > > P.O.Box 3516 Amman, 11821 > > The Hashemite Kingdom of Jordan > > *Tel.* +962 (6) 556 2620 > > *Mob (Jordan).* +962 79 5077915 > > [image: Description: bi email-3-04] > > [image: Description: bi email-3-05] > > /biict > > @biict > > > > > |
In reply to this post by Ahmad Rabab’ah
No it need to restart, As other said java classes need to build and entity def, services,, secs,eeca etc are load on run. So need to restart every time if there is change in these files.
Thanks, Anchit Jindal |
Administrator
|
In reply to this post by taher
Le 07/02/2017 à 11:23, Taher Alkhateeb a écrit :
> Hi Ahmad, > > First of all, my recommendation is to use unit tests (not integration > tests) where ever you can for a quick feedback loop while developing. Also > I could be wrong, but you can sort of take this as a general guideline on > what requires a restart (for now, hopefully we'll fix this) > > # Requires Restart > - Java Source Code > - Entity Definition > - Service Definition > - Configurations and properties files Jacques |
In reply to this post by Ahmad Rabab’ah
Hi Ahmad,
There is no need to restart OFBiz after changing the java codes if you are using this: https://dcevm.github.io/ Regards, James
|
In reply to this post by taher
I complete just for :
-Widget -Freemarker templates -minilang -coontrollers -service They are load in cache so you need to control your configuration on cache.properties but if you clear the cache, you can be sure that Ofbiz reload all definition For the java source I know that Gil used on eclipse a plugin that reload on the fly the jar during your coding, but I never use it. Nicolas Le 07/02/2017 à 11:23, Taher Alkhateeb a écrit : > Hi Ahmad, > > First of all, my recommendation is to use unit tests (not integration > tests) where ever you can for a quick feedback loop while developing. Also > I could be wrong, but you can sort of take this as a general guideline on > what requires a restart (for now, hopefully we'll fix this) > > # Requires Restart > - Java Source Code > - Entity Definition > - Service Definition > - Configurations and properties files > > # Does not Require Restart > - Widgets > - FreeMarker templates > - Controllers > - Non-Java service implementation > - Non-Java events > - Non-Java actions > - Minilang > > On Tue, Feb 7, 2017 at 11:51 AM, Ahmad Rabab’ah <[hidden email]> wrote: > >> Hello dears , >> >> I need solve for my problem, When I change anything in my java class or >> entity def I need to restart the OFBiz from cmd or my IDE , >> there is any solution for this problem or every change you must to restart >> Ofbiz ? >> >> Thank you. >> >> >> >> *Best Regards,* >> >> >> >> Ahmad Rbab’ah >> >> Java Developer >> >> >> >> [image: Description: Logo for Office-4] >> >> >> >> [image: Description: bi email-3-02] >> >> >> >> P.O.Box 3516 Amman, 11821 >> >> The Hashemite Kingdom of Jordan >> >> *Tel.* +962 (6) 556 2620 >> >> *Mob (Jordan).* +962 79 5077915 >> >> [image: Description: bi email-3-04] >> >> [image: Description: bi email-3-05] >> >> /biict >> >> @biict >> >> >> >> >> |
Administrator
|
Yes, and by default OFBiz is in "Development Mode", check cache.properties for more about what it means...
Jacques Le 07/02/2017 à 18:46, Nicolas Malin a écrit : > I complete just for : > > -Widget > > -Freemarker templates > > -minilang > > -coontrollers > > -service > > They are load in cache so you need to control your configuration on cache.properties but if you clear the cache, you can be sure that Ofbiz reload > all definition > > For the java source I know that Gil used on eclipse a plugin that reload on the fly the jar during your coding, but I never use it. > > Nicolas > > Le 07/02/2017 à 11:23, Taher Alkhateeb a écrit : >> Hi Ahmad, >> >> First of all, my recommendation is to use unit tests (not integration >> tests) where ever you can for a quick feedback loop while developing. Also >> I could be wrong, but you can sort of take this as a general guideline on >> what requires a restart (for now, hopefully we'll fix this) >> >> # Requires Restart >> - Java Source Code >> - Entity Definition >> - Service Definition >> - Configurations and properties files >> >> # Does not Require Restart >> - Widgets >> - FreeMarker templates >> - Controllers >> - Non-Java service implementation >> - Non-Java events >> - Non-Java actions >> - Minilang >> >> On Tue, Feb 7, 2017 at 11:51 AM, Ahmad Rabab’ah <[hidden email]> wrote: >> >>> Hello dears , >>> >>> I need solve for my problem, When I change anything in my java class or >>> entity def I need to restart the OFBiz from cmd or my IDE , >>> there is any solution for this problem or every change you must to restart >>> Ofbiz ? >>> >>> Thank you. >>> >>> >>> >>> *Best Regards,* >>> >>> >>> >>> Ahmad Rbab’ah >>> >>> Java Developer >>> >>> >>> >>> [image: Description: Logo for Office-4] >>> >>> >>> >>> [image: Description: bi email-3-02] >>> >>> >>> >>> P.O.Box 3516 Amman, 11821 >>> >>> The Hashemite Kingdom of Jordan >>> >>> *Tel.* +962 (6) 556 2620 >>> >>> *Mob (Jordan).* +962 79 5077915 >>> >>> [image: Description: bi email-3-04] >>> >>> [image: Description: bi email-3-05] >>> >>> /biict >>> >>> @biict >>> >>> >>> >>> >>> > > |
In reply to this post by Nicolas Malin-2
Hello,
To be more precise, Eclipse allow, when OFBiz is launched in debug mode (no plugin that I remember), modifying java code on the fly, but only if : * Not modifying signatures or adding news methods * Not modifying code while debugging (i.e. on a breakpoint). I used it a lot in the past, but now I migrated to Intellij... Regards Gil Le 07/02/2017 à 18:46, Nicolas Malin a écrit : > > For the java source I know that Gil used on eclipse a plugin that > reload on the fly the jar during your coding, but I never use i |
Administrator
|
You may also use https://dcevm.github.io/
Jacques Le 13/02/2017 à 08:35, gil portenseigne a écrit : > Hello, > > To be more precise, Eclipse allow, when OFBiz is launched in debug mode (no plugin that I remember), modifying java code on the fly, but only if : > > * Not modifying signatures or adding news methods > > * Not modifying code while debugging (i.e. on a breakpoint). > > I used it a lot in the past, but now I migrated to Intellij... > > Regards > > Gil > > > Le 07/02/2017 à 18:46, Nicolas Malin a écrit : >> >> For the java source I know that Gil used on eclipse a plugin that reload on the fly the jar during your coding, but I never use i > > |
Free forum by Nabble | Edit this page |