[jboss-jira] [JBoss JIRA] Commented: (AS7-944) EJB lifecycle interceptors that are not included in the deployment are not applied

Marius Bogoevici (JIRA) jira-events at lists.jboss.org
Fri Jun 3 10:29:59 EDT 2011


    [ https://issues.jboss.org/browse/AS7-944?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12606369#comment-12606369 ] 

Marius Bogoevici commented on AS7-944:
--------------------------------------

Jaikiran:

The application is a simple JAR which contains an EJB like above and the A interceptor.

I will try to attach an application, but you also need a module, that must be visible to the deployment. We can do this through the Snowdrop example, but I am trying not to introduce too many variables in the process.

> EJB lifecycle interceptors that are not included in the deployment are not applied
> ----------------------------------------------------------------------------------
>
>                 Key: AS7-944
>                 URL: https://issues.jboss.org/browse/AS7-944
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: EJB
>    Affects Versions: 7.0.0.Beta3
>            Reporter: Marius Bogoevici
>
> Suppose that we have a class
> {code}
> @Startup @Singleton @Interceptors(A.class, B.class)
> public class MyEJB {
> }
> {code}
> Where A.class is included with the deployment and B.class is included in a module that is visible to the deployment.
> B will be identified correctly as an interceptor for MyEJB, but LifecycleAnnotationParsingProcessor will not process it (as it apparently handles only components found within the deployment). Therefore, B will be ignored when creating the interceptor set for MyEJB, since ComponentInstallProcessor will treat it as a class that has no lifecycle methods.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list