Static files cannot be refreshed without redeploy in Weblogic's clustered environment
Posted on 2004-08-16
1) It works in a single server (i.e. a non-clustered environment). When updated, the static html file changes are reflected immediately on the JSP.
2) However when it's deployed in a clustered environment, the update would not be reflected unless the static web application is redeployed. This is unacceptable as there's this requirement to update the html changes on a regular basics by end-users and they do not know about weblogic deployment.
The following's the codes extracts of one of the jsps:
<body style="MARGIN: 0px;margin-left: 0px">
ServletContext sc= application.getContext("/xxx_static/");
RequestDispatcher rd = null;
rd = sc.getRequestDispatcher("/aaa/home.htm");
Is there any solution to ensure that this kind of static files can be refreshed without redeploying in Weblogic's clustered environment?