[jboss-jira] [JBoss JIRA] Resolved: (EJBTHREE-1896) Lifecycle callback interceptor generation happens multiple times for each bean context

jaikiran pai (JIRA) jira-events at lists.jboss.org
Thu Aug 20 14:30:23 EDT 2009


     [ https://jira.jboss.org/jira/browse/EJBTHREE-1896?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

jaikiran pai resolved EJBTHREE-1896.
------------------------------------

    Resolution: Done


The changes have been made to create the lifecycle interceptors only once per bean context, per lifecycle annotation.  

> Lifecycle callback interceptor generation happens multiple times for each bean context
> --------------------------------------------------------------------------------------
>
>                 Key: EJBTHREE-1896
>                 URL: https://jira.jboss.org/jira/browse/EJBTHREE-1896
>             Project: EJB 3.0
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.1.14
>            Reporter: jaikiran pai
>            Assignee: jaikiran pai
>            Priority: Blocker
>             Fix For: 1.1.15
>
>
> Looking at the performance of a SFSB method invocation, the LifecycleCallbacks.createLifecycleCallbackInterceptors method shows up as being called during prePassivate, postActivate, postConstruct and other similar lifecycle callbacks of each bean context.
> The lifecycle callback interceptors are per bean context and can be created once during bean context created and maintained for future use. This will avoid repeated calls to LifecycleCallbacks.createLifecycleCallbackInterceptors method, which is expensive because of the AOP binding, annotation scanning and java reflection logic it has.

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

        



More information about the jboss-jira mailing list