spring - JSF application crossing user session data -
i have difficult jsf issue trying solve. note, new jsf , java....i have simple application users login, select checkboxes, click submit, add more info on page, save db , logout.
in production env, seeing instances user session data getting crossed or cached , pickup subsequent user session. example, user enters data, user b enters data , upon reviewing data, sees stuff user entered. of course, cannot recreate in test.
i using jsf 1.2._12, richfaces 3.3.2, , spring 2.5.6. app server jboss 5.
all of jsf managed-beans session scoped. particular managed bean calls spring bean business object session scoped, calls dao singleton.
here relavant faces-config info
<managed-bean> <description>contactbean</description> <managed-bean-name>contactbean</managed-bean-name> <managed-bean-class>com.package.contactbean</managed-bean-class> <managed-bean-scope>session</managed-bean-scope> <managed-property> <property-name>dataelementbo</property-name> <value>#{dataelementbo}</value> </managed-property> <managed-property> <property-name>attributebo</property-name> <value>#{attributebo}</value> </managed-property> <managed-property> <property-name>dataelement2bo</property-name> <value>#{dataelement2bo}</value> </managed-property> <managed-property> <property-name>submissionbo</property-name> <value>#{submissionbo}</value> </managed-property> <managed-property> <property-name>selectedlist</property-name> <property-class>java.util.arraylist</property-class> <list-entries /> </managed-property> <managed-property> <property-name>enteredcontact</property-name> <property-class>java.util.arraylist</property-class> <list-entries /> </managed-property> </managed-bean>
and app-context spring bean getting called
<bean id="submissionbo" class="com.package.submissionboimpl" scope="session"> <property name="submissiondao"> <ref bean="submissiondao" /> </property> </bean>
in viewing webserver logs, issue occurred when user , b weren't logged in @ same time. user logged out , user b logged in 20 minutes later.
i don't understand how use of session scoped beans possibly cross in other users data... there don't understand how these scoped? can attach mocked code if needed. in advance!
are submit , review pages using same managed-bean? if not how passed data other page?
Comments
Post a Comment