Is ofbiz restart is still needed?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Is ofbiz restart is still needed?

Mukhtar
Everytime I make a change to java code, I run "ant" and then restart the ofbiz service to pick up the changes.

Is this still necessary?  I am running 9.  What about 12.x
Reply | Threaded
Open this post in threaded view
|

Re: Is ofbiz restart is still needed?

Jad El Omeiri
Hi Mukhtar,

Yes every time you change java code, you have to run ant again.

What I have learnt to do is write my services & events in groovy instead of java. In that case no ant and no restart!

Mukhtar wrote
Everytime I make a change to java code, I run "ant" and then restart the ofbiz service to pick up the changes.

Is this still necessary?  I am running 9.  What about 12.x
Cheers,
Jad El Omeiri
Reply | Threaded
Open this post in threaded view
|

Re: Is ofbiz restart is still needed?

taher
Hi

In my experience restart is needed in the following cases:
- change in service definition (XML) and not necessarily implementation.
- change in java code
- change in entity model
- change in properties files especially things like caching and main
properties
- change in ofbiz component loading and definitions files (XML)

I think everything else is pretty much dynamic.

Cheers,
Taher Alkhateeb
Reply | Threaded
Open this post in threaded view
|

Re: Is ofbiz restart is still needed?

Jacques Le Roux
Administrator
You don't need to restart for a property change, just clear the property cache (or all caches if you don't care)

I even recently created a FAQ entry for it
See at bottom of https://cwiki.apache.org/confluence/display/OFBIZ/FAQ+-+Tips+-+Tricks+-+Cookbook+-+HowTo

Jacques

Le 27/05/2014 14:42, Taher Alkhateeb a écrit :

> Hi
>
> In my experience restart is needed in the following cases:
> - change in service definition (XML) and not necessarily implementation.
> - change in java code
> - change in entity model
> - change in properties files especially things like caching and main
> properties
> - change in ofbiz component loading and definitions files (XML)
>
> I think everything else is pretty much dynamic.
>
> Cheers,
> Taher Alkhateeb
>

--
Reply | Threaded
Open this post in threaded view
|

Re: Is ofbiz restart is still needed?

james_sg
In reply to this post by Mukhtar
look at this project http://ssw.jku.at/dcevm/

Mukhtar wrote
Everytime I make a change to java code, I run "ant" and then restart the ofbiz service to pick up the changes.

Is this still necessary?  I am running 9.  What about 12.x