Link to home
Start Free TrialLog in
Avatar of she1
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?
ASKER CERTIFIED SOLUTION
Avatar of girionis
girionis
Flag of Greece image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Anything that goes across a network should be serialize-able:

http://mindprod.com/jgloss/serialization.html
Avatar of mrigank
mrigank

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.
Avatar of she1

ASKER

so the 2 reasons for serizable: remote deployment, & persist the  bean to secondary storage.