Your finder signature must be either Collection or Enumeration (which is 
only there for backward compatibility with ejb1.0).

You can return a vector, _but_ just because your finder returns a vector 
doesn't mean your client will get a vector. Remember that the container 
has some things to do after you return the keys, and it _won't_ return 
the same collection you give it.

-danch

Anoop wrote:

> Hi,
> 
> 
>     Can ejb finder methods return java.util.Vector????
> 
>     As for the ejb specification it has to return either the primary key
> class or a collection of primary keys.
>     Can Vector be its return type, as Vector implements java.util.List which
> in turn extends java.util.Collection, can finder method return any of the
> sub classes of
>     Collection or it has to be only the Collection interface?
> 
> 
> Thanks,
> Anoop.
> 
> 
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 



_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to