• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

session attribute is not reflecting changes with option <session-config> in resin

 
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
vani venkat
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic