Yeah, this is a bug (actually, it's an "alternate interpretation of a vague area of the EJB 1.0 spec" -- in other words a bug).
What you need to do is do a javax.rmi.PortableRemoteObject.narrow() on each of the objects returned like so:
Enumeration enum = myFooHome.findAllFoos(...);
while (enum.hasMoreElements()) {
Object ref = enum.nextElement();
FooEJB ejb = (FooEJB) javax.rmi.PortableRemoteObject.narrow(ref, FooEJB.class);
// you can now use the ejb object...
}
Kyle
------------------
Kyle Brown,
Author of
Enterprise Java (tm) Programming with IBM Websphere
See my homepage at
http://members.aol.com/kgb1001001 for other WebSphere information.