Hi
The interception is after the call, so that before the client gets its
collection the objects in it are remote references to the bean.
All finder methods (in the bean) returns either a primary key object
(finders that finds one object) or a collection of primary key objects
("multifinders").
I have a vague remembrance that the methods must ensure that the
keys delivered really maps to existing beans so the method given
might only work if you are sure that the keys exists.
Regards
/Mikael
At 16:21 2003-06-05 +0100, you wrote:
Hi folks,
This snippet is taken from the JBOSSCMP docs. I can't understand how it returns the remote entities.It is a BMP custom finder.
public abstract class GangsterBean implements EntityBean {
public Collection ejbFindByPrimaryKeys(Collection keys) {
return keys;
}
}
It just seems to take in the keys collection and then return it straight back out again.
I'm confused cos I can't see where the container would intercept the call and
return the entities if the method is not declared abstract.
Thanks,
Mark.