OpenWebBeans
  1. OpenWebBeans
  2. OWB-355

OpenEjbBean should look for @Remove methods

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.0-alpha-1
    • Component/s: Java EE Integration
    • Labels:
      None
    • Environment:
      OpenWebBeans in OpenEJB

      Description

      OpenEjbBean doesn't take care of @Remove methods so when deploying a stateful EJB we get a NullPointerException.

        Activity

        Hide
        Jean-Louis MONTEIRO added a comment -

        Here is the proposed patch.
        IMHO, we should deal with the retainIfException parameter of the @Remove annotation.
        For that, we have different solutions:

        • only add a method to the list when the retainIfException is false (or omitted)
        • change the org.apache.webbeans.ejb.common.proxy.EjbBeanProxyHandler.checkEjbRemoveMethod(Method) method and check the retainIfException attribute too.
        Show
        Jean-Louis MONTEIRO added a comment - Here is the proposed patch. IMHO, we should deal with the retainIfException parameter of the @Remove annotation. For that, we have different solutions: only add a method to the list when the retainIfException is false (or omitted) change the org.apache.webbeans.ejb.common.proxy.EjbBeanProxyHandler.checkEjbRemoveMethod(Method) method and check the retainIfException attribute too.

          People

          • Assignee:
            Gurkan Erdogdu
            Reporter:
            Jean-Louis MONTEIRO
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development