Hot load/deploy of webapps, is it possible?

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

Hot load/deploy of webapps, is it possible?

David-DiSiD Technologies
Hi,

Is there any way to load/deploy a new webapp without restarting OFBiz?
(better from Java code)

Or, can the components (one of them or all) be reloaded without restarting?
I've used method "loadComponents" of class "ComponentContainer" to
reload all components, it seems that it deploys the new webapps (defined
in the "ofbiz-component.xml" file of one component), but they aren't
accessible via browser. Maybe it needs a Tomcat reload or something
similar... any idea?

Thanks in advance!

--
David
DiSiD Technologies, S.L. -http://www.disid.com

David
DiSiD Technologies, S.L. - http://www.disid.com
Reply | Threaded
Open this post in threaded view
|

Re: Hot load/deploy of webapps, is it possible?

Jacques Le Roux
Administrator
Simple answer: not OOTB. Yes you need to at least reload the application server. Since OOTB Tomcat is embedded in OFBiz, this means
to restart OFBiz

A way you could investigate is to use Geronimo: https://cwiki.apache.org/GMOxDOC21/deployment.html#Deployment-Hotdeployment
This does not mean it's easy...
Once upon a time, I got to run OFBiz in Geronimo
https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=7045153
Recently some cleaning in OFBiz removed a hacky way I used to deregister the RMI dispatcher
http://svn.apache.org/viewvc?view=revision&revision=1363656
So before this you should not find issues with Geronimo, after it should still work but if you use RMI you will maybe a non blocking
issue when closing OFBiz

HTH

Jacques

From: "David Cervera" <[hidden email]>

> Hi,
>
> Is there any way to load/deploy a new webapp without restarting OFBiz?
> (better from Java code)
>
> Or, can the components (one of them or all) be reloaded without restarting?
> I've used method "loadComponents" of class "ComponentContainer" to
> reload all components, it seems that it deploys the new webapps (defined
> in the "ofbiz-component.xml" file of one component), but they aren't
> accessible via browser. Maybe it needs a Tomcat reload or something
> similar... any idea?
>
> Thanks in advance!
>
> --
> David
> DiSiD Technologies, S.L. -http://www.disid.com
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Hot load/deploy of webapps, is it possible?

Jacques Le Roux
Administrator
In reply to this post by David-DiSiD Technologies
Ha forgot

Please use rather user ML for such questions, see why here :
http://cwiki.apache.org/confluence/display/OFBADMIN/Mailing+Lists#MailingLists-DesignanddevelopmentList:dev@...

Thanks

Jacques

From: "David Cervera" <[hidden email]>

> Hi,
>
> Is there any way to load/deploy a new webapp without restarting OFBiz?
> (better from Java code)
>
> Or, can the components (one of them or all) be reloaded without restarting?
> I've used method "loadComponents" of class "ComponentContainer" to
> reload all components, it seems that it deploys the new webapps (defined
> in the "ofbiz-component.xml" file of one component), but they aren't
> accessible via browser. Maybe it needs a Tomcat reload or something
> similar... any idea?
>
> Thanks in advance!
>
> --
> David
> DiSiD Technologies, S.L. -http://www.disid.com
>
>