Right now, it's not explicitly defined whether {{EjbDescriptor}} instances passed to {{resolveEjb()}} and {{registerInterceptors()}} are of the same implementation as provided by {{BeanDeploymentArchive.getEjbs()}}. Some integrators expect to receive the same instances as provided. However, internally an {{EjbDescriptor}} wrapper is used. And it seems for {{resolveEjb()}} a delegate is always passed (see also {{SessionBean.createReference()}}) but for {{registerInterceptors()}} the internal wrapper is passed.
I believe we should pass the delegate for both of the methods to be more consistent . I'm not so sure about the clarification, i.e. whether an integrator
We should only work with also consider improving the {{ EjbDescriptor EjbServices }} contract or not so that it's easier to use .
|