most of the findXXX(finder) methods return a java.util.Collection by default!, but I saw that the java.util.Collection is a non-serializable interface(all classes in EJBshould be serializable because they travel through the pipe!)....hmm..confused..any explanations?
Peter den Haan
posted 12 years ago
Interfaces aren't serializable. There's nothing to serialize. Classes, i.e. implementations of those interfaces may be serializable. If you look at the collection implementations in java.util.*, for example, you'll see that they are all Serializable.