Avoiding restart when changing services.xml or simple method declarations

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

Avoiding restart when changing services.xml or simple method declarations

David Gay-2
Hi all!  I'm spending a lot of time restarting OFBiz every time I add
or change a service specification in one of the services.xml files, or
modify an implementation of a simple method (in .xml files).  Does
anyone have any suggestions on how to avoid having to restart the
server, while still using XML files to specify things?  I'm thinking
that checking timestamps on the various XML files shouldn't be _that_
expensive...

--
Dave Gay
Software Developer
Emforium Group Inc.
ALL-IN Software™
519-772-6824 ext 203
[hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: Avoiding restart when changing services.xml or simple method declarations

Bruno Busco
Hi David,
you can simply use the Cache cleaning command.

https://localhost:8443/webtools/control/FindUtilCacheClearAll

-Bruno

2009/1/30 David Gay <[hidden email]>

> Hi all!  I'm spending a lot of time restarting OFBiz every time I add
> or change a service specification in one of the services.xml files, or
> modify an implementation of a simple method (in .xml files).  Does
> anyone have any suggestions on how to avoid having to restart the
> server, while still using XML files to specify things?  I'm thinking
> that checking timestamps on the various XML files shouldn't be _that_
> expensive...
>
> --
> Dave Gay
> Software Developer
> Emforium Group Inc.
> ALL-IN Software™
> 519-772-6824 ext 203
> [hidden email]
>
Reply | Threaded
Open this post in threaded view
|

Re: Avoiding restart when changing services.xml or simple method declarations

Adrian Crum
In reply to this post by David Gay-2
Have you tried clearing the caches?

-Adrian

David Gay wrote:
> Hi all!  I'm spending a lot of time restarting OFBiz every time I add
> or change a service specification in one of the services.xml files, or
> modify an implementation of a simple method (in .xml files).  Does
> anyone have any suggestions on how to avoid having to restart the
> server, while still using XML files to specify things?  I'm thinking
> that checking timestamps on the various XML files shouldn't be _that_
> expensive...
>
Reply | Threaded
Open this post in threaded view
|

Re: Avoiding restart when changing services.xml or simple method declarations

David E Jones-3
In reply to this post by David Gay-2

With the default settings in cache.properties the simple-method files  
should reload 10 seconds (ie cache clears automatically every 10  
seconds).

It is not setup to do this with service definitions because currently  
the way they are setup it would have to reload ALL service definitions  
each time the cache is cleared and that takes a little bit of time.  
So, for that one (like others have said) you have to clear it manually  
in webtools.

-David


On Jan 30, 2009, at 9:13 AM, David Gay wrote:

> Hi all!  I'm spending a lot of time restarting OFBiz every time I add
> or change a service specification in one of the services.xml files, or
> modify an implementation of a simple method (in .xml files).  Does
> anyone have any suggestions on how to avoid having to restart the
> server, while still using XML files to specify things?  I'm thinking
> that checking timestamps on the various XML files shouldn't be _that_
> expensive...
>
> --
> Dave Gay
> Software Developer
> Emforium Group Inc.
> ALL-IN Software™
> 519-772-6824 ext 203
> [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Avoiding restart when changing services.xml or simple method declarations

madppiper-2
I am receiving the following error when I try to do this (it doesn't seem to clear the cache properly either):

Error calling event: org.ofbiz.webapp.event.EventHandlerException: Problems processing event: java.util.ConcurrentModificationException (null)