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

InvocationContext.getMethod must return null for lifecycle callback interceptor methods

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • AS 5.0.0.CR1
    • None
    • interceptors
    • None

    Description

      EJB 3 12.5 paragraph 3:
      The getMethod method returns the method of the bean class for which the interceptor was invoked. For AroundInvoke methods, this is the business method on the bean class; for lifecycle callback interceptor methods, getMethod returns null.

      Not:
      java.lang.IllegalStateException: Get method is not allowed on lifecycle callbacks (EJB 3 12)
      at org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor$InvocationContext.getMethod(InvocationContextInterceptor.java:120

      Attachments

        Activity

          People

            rhn-engineering-cdewolf Carlo de Wolf
            rhn-engineering-cdewolf Carlo de Wolf
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: