IMO, once you configured callback/.. in the deployment descriptor, it should
not scan the related annotations in the ejb class and its super classes.
Also, the spec is also ambigurous on it.
Acutally, a similar issue is found in the ejb tck, and there is a thread
discussion for it in the geronimo TCK maii list, will try to challenge it
later.

2010/9/17 Gurkan Erdogdu <[email protected]>

> Hello,
>
> In AnnotationDeployer # processCallbacks method, there is a check for each
> callback/around....configuration,
>
> LifecycleCallback postConstruct = getFirst(bean.getPostConstruct());
> if(postConstruct == null){
>  for (Method method :
> classFinder.findAnnotatedMethods(PostConstruct.class)) {
>   ......
> }
> }
>
> Firstly, code checks that callback is defined on deployment descriptor, if
> it is
> defined, no more annotation check is done. I think that this is not correct
> behaviour because it eats interceptors that are defined on "superclasses".
>
> WDYT?
>
> I will create an issue and attach patch if my observations are correct.
>
> Regards;
>
> --Gurkan
>
>
>


-- 
Ivan

Reply via email to