need 'synchronized' on readExternal/writeExternal/readObject/writeObject?

Hi,

I am implementing an object in Java which should be able to be kept in an application server session, and properly supports cluster failover.

I understand I have to make my object serializable, and I want to implement my own read/.../writeObject methods.

My question: do these read/.../writeObjects have to be 'synchronized', or in other words, does J2EE guarantee that whichever thread implements 'cluster serialization' will not conflict with threads performing requests on the object?

philipp

[534 byte] By [cyprix98a] at [2008-1-13]