I am developing Spring-mvc application.
I am getting NotSerializableException
.
The exception is coming on the restart of the server. I search for the solution and got to know that session scoped beans should be serialized.
My session scoped bean implements serializable, but it gives exception for injected beans and services.
It asks me to serialize all injected beans and services.
I have serialized my beans but is it required to serialize services also.
Is it accepted behavior to serialize services also? If yes then will I have to serialize all the services in my applications?
Thanks.