| Author |
session attribute is not reflecting changes with option <session-config> in resin
|
vani venkat
Ranch Hand
Joined: Nov 21, 2006
Posts: 142
|
|
hi
I am using session attribute to pass some parameters from one controller to other controller. since i have to use it in multiple controllers,I am using session attribute to store that information.
Application configuration: resin server, SPRING MVC framework.
following are parameters in resin.conf
in controller 1,
in controller 2,
in Controller 3.
Now the problem is in controller 3, imageuploadProps does not reflect changes made in controller 2 but it has attribute values from controller 1 only.
If I take off those session config parameters from resin.conf, it works absolutely fine and i get upto date properties. why is this not able to save session in controller 2 by using always-load-session and always-save-session?
please explain me if i have anything else missing in this.
thanks
|
SCJP 1.4, SCWCD 1.5
|
 |
vani venkat
Ranch Hand
Joined: Nov 21, 2006
Posts: 142
|
|
Found the proble.
the Parent Class of Object that i am trying to put it in session is not serializble. However, child class is serialized. looks like even parent class needs to be serialized if it has to be stored in session. this solved my problem of getting latest up to date session attribute.
|
 |
 |
|
|
subject: session attribute is not reflecting changes with option <session-config> in resin
|
|
|