[jboss-jira] [JBoss JIRA] Created: (EJBTHREE-1068) @Interceptors defined on @Service EJBs do not have @PostConstruct @PreDestroy interceptor methods invoked

Michael McKibben (JIRA) jira-events at lists.jboss.org
Fri Oct 12 17:51:03 EDT 2007


@Interceptors defined on @Service EJBs do not have @PostConstruct @PreDestroy interceptor methods invoked
---------------------------------------------------------------------------------------------------------

                 Key: EJBTHREE-1068
                 URL: http://jira.jboss.com/jira/browse/EJBTHREE-1068
             Project: EJB 3.0
          Issue Type: Bug
          Components: EJB3 Extensions
    Affects Versions: AS 4.2.1.GA
            Reporter: Michael McKibben


I've defined an injection-style interceptor class that needs to be called before a @Service EJBs start() method is invoked on service startup. Using @PostConstruct doesn't not work (the container never calls my @PostConstruct annotated method). @AroundInvoke only works for methods defined on the @Local or @Remote business interface, not the @Management interface.

Shouldn't @PostConstruct and @PreDestroy be invoked on @Service EJBs? I need my interceptor to behave like the standard injection interceptors do.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list