Problem:
- Product Name: Borland Enterprise Server
- Product Version: 6.0.1 and 6.5
- Product Component: Web Container (Tomcat)
- Platform/OS Version: All
Apache Tomcat supports reloadable attribute for Context element. When this attribute set to true, Catalina would monitor classes in /WEB-INF/classes/ and /WEB-INF/lib for changes and automatically reload the webapp if a change is detected.
But in case of BES Web Container, when "reloadable" attribute is set to true via BES Management Console, it does not seem to be effective.
i.e. Webcontainer -> properties -> Service : HTTP -> Engine : HTTP -> Host:localhost -> Context: /examples -> reloadable
Resolution:
The "reloadable" feature is not supported in BES Web Container due to performance penalty reasons.
i.e. due to the complications of having to deal with EAR loaded wars.
The classloader that loads the ear, also loads the war, and, if reloadable was to be honored,
this would apply to ALL classes in the EAR hierarchy, not just servlets.
So, it was found that the penalty (in terms of performance) was too great to bear and
hence this "feature" was disabled in the BES Web Container.
However, in case of "Hosted Modules", you can still use BES Management Console to "reload" your module without restarting your Web Container
#VisiBroker
#Security