It means that the collection or array should contain serializable elements. For example the collection of strings will be serializable because each element of the collection (string) is serializable by itself.
Check out page 67 in HFE.
SCBCD 1.3<br />SCJP 1.2<br /> <br />"Every time I learn something new, it pushes some old stuff out of my brain" H.Simpson
here the return Collection should be a Serializable Collection with serializable elements, so when you return the Collection object that object should be a serializable object i,e ArrayList or Vector or other.
Joined: Jun 15, 2004
I am not sure if I understood everything correctly.
Collection is an interface. To use collection you would choose a class that implements collection (like Vector or HashSet, which implement Serializable interface.)
Are you saying that you cannot deploy your bean because methods returns java.util.Collection? or you have some compile error?
Could you post the error that you are getting?
Joined: Apr 09, 2004
I make a huge mistake, I use WSAD for running my beans. when I put a method in my component interface websphere shows me a warning that says something like that "the specifications says that all objects must implements Serializable". I thought that I coudn't deploy my beans, but I just made the test and all works fine , I suposse that the warning appears because Collecion doesn't implements Serializable.