SevletContext not updating an existing attribute
843842May 20 2010 — edited May 24 2010ServletContext attribute is not getting updated once ServletContext is initialized with the attribute....
Application server is Weblogic 10.3.0.0
I have a class which implements javax.servlet.ServletContextListener.
I am initializing the context as given below
public void contextInitialized(ServletContextEvent servletContextEvent) {
context = servletContextEvent.getServletContext();
I have one more method which is as below
public void updateContext() {
try {
loadRefDataManager.retrieveAllRefData();
context.setAttribute("bankParams", loadRefDataManager.retrieveBankParams().get(0));
log.info("BankParams Context Parameter:::: " + context.getAttribute("bankParams"));
} catch (WMException e) {
log.warn("Exception occured in ContextListener ::::: " + e.getCause());
throw e;
}
}
On calling the abobve method the "bankParams" attribute is not getting updated in Weblogic 10.3.0.0
while it is taking place in tomcat 6.0