she1
asked on
Entity bean's primary key class must implement Serializable?
why Entity bean's primary key class must implement Serializable?
what Serializable is used for?
what Serializable is used for?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
During pooling of bean instances, if the maximum pool size is exceeded, then the container saves some of the beans onto the disk to allow for new instances. Now when a bean which has been saved onto the disk is called for, the container reconstructs the bean from the secondary storage. To do this it might also need to persist an existing bean which is not being used.
The persistance of beans requires all bean and bean related objects to implement serializable.
The persistance of beans requires all bean and bean related objects to implement serializable.
ASKER
so the 2 reasons for serizable: remote deployment, & persist the bean to secondary storage.
http://mindprod.com/jgloss/serialization.html