i am working on social website, and i am using JSF 2.2 and i have some beans with view scopes in those beans services are injected.
i am getting the famous NotSerializableException sometimes in tomcat and i have some questions:
1- what are the disadvantages of disabling session persistence by using empty manager as follows:
<Context ... >
<Manager pathname="" />
</Context>
and when to use this approach ?
2- if i am going with implementing Serializable interface, should i make view scopes (what about request and session beans ?) only implements the Serializable interface and therefore mark the injected services as transient ?
3- is the beans the only layer that should implement Serializable and services and daos shouldn't ? and what are the disadvantages of implementing Serializable for services or daos ?
please advise.