Uploaded image for project: 'EJB 3.0'
  1. EJB 3.0
  2. EJBTHREE-1905

Performance: Improve the creation of lifecycle callback interceptors

XMLWordPrintable

    • jboss-ejb3-core:1.1.16 jboss-ejb3-interceptors:1.0.4

      Recent performance analysis of EJB3 applications has shown that creation of lifecycle callback interceptors (which involves AOP, Annotation scanning through MDR, and java reflection) is expensive. Prior to EJBTHREE-1896 these interceptors were being created on every invocation of the lifecycle method. As part of the fix for EJBTHREE-1896, we had reduced this creation to per beancontext for each lifecycle type. Although, it improved the performance, we see that it's still one of the areas which can be improved. And given that lookups of bean is quite common (that's one of the flows which results in the interceptor creation), it would be better to create these interceptors only once per bean for each lifecycle type.

            jaikiran Jaikiran Pai (Inactive)
            jaikiran Jaikiran Pai (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: