Should beans implement the serializable interface?
I recall reading somewhere that beans should be serializable. Is this important only when dealing with a distributed environment where a bean might be moved from one box to another? The beans that I am concerned with are used in servlets, bound to the session, timeout after 15 minutes and are not very bulky. What is the general rule about making beans serializable? I am familiar with the idea of serialization, but haven't used it before. Any informed opinions on this?
-Bryan
[493 byte] By [
bjb1440a] at [2007-10-2 3:00:41]

Hi,
Bean or backing bean for JSF don't need to implement Serializable interface.
Object used by remote Object in such as RMI remote invocation need to implement this interface.
Note also that there is no problem if you implement Serializable interface and don't use RMI or any distributed method invocation.
An example of implementation of Serializable interface is for Transfert Object used between Presentation tier and Business tier.
They need to implement because the two tiers could be on different JVM's.
Sebastien Degardin.