[
https://issues.apache.org/jira/browse/OFBIZ-4242?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Lon F. Binder updated OFBIZ-4242:
---------------------------------
Attachment: ofbiz-4242-patch.txt
This file adds a feature to FileUtil to support the primary logic change in the
CatalinaContainer.java to check for the {{<distributable/>}} node in
applications' {{web.xml}} file and to respect it appropriately.
This patch is overly simplistic and only searches for the node text. The
proper fix would be to parse the {{web.xml}} as XML and ensure the valid node
is there. Then (probably) to set this value in the WebappInfo object and track
it there.
> CatalinaContainer Doesn't Respect <distributable/> Node for web.xml files.
> --------------------------------------------------------------------------
>
> Key: OFBIZ-4242
> URL: https://issues.apache.org/jira/browse/OFBIZ-4242
> Project: OFBiz
> Issue Type: Bug
> Components: ALL APPLICATIONS
> Affects Versions: Release 09.04
> Reporter: Lon F. Binder
> Labels: cluster, clustering, tomcat
> Attachments: ofbiz-4242-patch.txt
>
>
> Per the servlet specification, the {{web.xml}} file should allow an optional
> {{<distributable/>}} node to indicate that the application is clusterable.
> Currently, OFBiz does not respect this setting and assumes all applications
> should be distributed if any cluster configuration is provided in the
> {{ofbiz-containers.xml}} file. As a result, if, for example, the
> {{DeltaManager}} is enable, all applications attempt to cluster and
> communicate via {{DeltaManager}}.
> The expected and proper functionality is to check the individual
> application's web.xml file for the {{<distributable/>}} node and only use the
> {{DeltaManager}} if found; otherwise the {{StandardManager}} should be used
> for sessions.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira