1 2 Previous Next 15 Replies Latest reply on Feb 17, 2010 4:03 PM by Gavin King Go to original post
      • 15. Re: I thought SFSBs did not need to implement java.io.Serializable?
        Gavin King Master

        Nicklas Karlsson wrote on Feb 11, 2010 12:28:


        I though all stateful session beans were automagically serializable (and serializable deps if injected).


        The rules is that all SFSBs must be serializable (since the container is allowed to passivate them), and must obey the serialization rules (cannot contain non-transient references to un-Serializable objects). However, the EJB spec says that they do not need to include the boilerplate implements Serializable declaration.


        1 2 Previous Next