EJB1.1 specifies that the findmethords must return a Collection.(ACollection of ejb Objects)
Can we use an Enumeration as return type instead of a collection
IN EJB1.1 it's enumeration, the return type for find methods..
U mean EJB2.0.. there its Collection ..
with EJB 1.0 finders must return an enumeration.
In EJB1.1 with jdk 1.1 finders return an enumeration, with jdk 1.2 finders can return a collection.
You really can return either. In Sybase EAServer we added a feature where you can return in your bean say Collection, but when you generate stubs you can say you need to support a JDK 1.1 client and we generate a remote/home which returns Enumeration and we remap it all on the fly when we marshall it.
Internet Applications Division