I'm facing problem in session synchronization when using iframe in cluster environment.
I've parent jsp which has 'iframe' included within it, I've set a bean in session on parent jsp but when trying to access the bean on frame ,am facing 'null' pointer exception...this happens typically when frame jsp and parent jsp gets loaded from different servers
..ie., session is not synchronized..
Following is piece of example of code creating problem...
///foll. line gives Null pointer Exception when frame.jsp and parent.jsp gets rendered from different tomcat.
XYZBean objBean =(XYZBean)session.getAttribute("DATA_BEAN");
objBean.getName();//the objBean is Null!!
Following is configuration and server.xml entries I'm using....
Tomcat 1: apache-tomcat-5.5.20 ...say lb0
Tomcat 2: apache-tomcat-5.5.20 ....say lb1
Apache Load Balancer -Version 2.0
<!-- <Deployer className="org.apache.catalina.cluster.deploy.FarmWarDeployer"
I've tried following but was unsuccessful in achieving the goal..
replicationMode="synchronous" as well as "pooled"
Have tried response filter where am putting and removing dummy attribute from session to ensure that session status is changed when invoking any request or action.
...Pls suggest the solution for the above problem..
Thanks a ton in advance..