I have a JSF and Spring integrated application. My Account Backing Bean class is with scope session and it is Serializable [as suggested here] . In my web.xml javax.faces.STATE_SAVING_METHOD value is ‘server’. Everything works good still here.
[I have Backing bean, Service class and DAO class in layers.]
When I change the value of javax.faces.STATE_SAVING_METHOD to ‘client’ the application throws exception ‘java.io.NotSerializableException’ pointing to my service class. If I make the service class Serializable then the ‘java.io.NotSerializableException’ points to my DAO class. If I make the DAO class Serializable the application will work without issues.
However I think making the service class and DAO class Serializable is a not a good approach.
Looking for expert opinion.
Thanks in advance.