Uploaded image for project: 'OpenWebBeans'
  1. OpenWebBeans
  2. OWB-417

BaseEjbBean.destroyComponentInstance() should call direct container remove API, not call an @Remove annotated method

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.1.0
    • Java EE Integration
    • None

    Description

      BaseEjbBean.destroyComponentInstance() should call direct container remove API, not call an @Remove annotated method.

      "When the destroy() method is called, and if the underlying EJB was not already removed by direct invocation of a remove method by the application, the container removes the stateful session bean. The @PreDestroy callback must be invoked by the container."

      Calling business methods with a side effect of the container removing the EJB does not seem to be what is intended.

      Completing this ticket requires an API in OpenEJB to remove a SFSB given just the reference the container gave us earlier.

      Attachments

        Activity

          People

            gerdogdu Gurkan Erdogdu
            covener Eric Covener
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 16h
                16h
                Remaining:
                Remaining Estimate - 16h
                16h
                Logged:
                Time Spent - Not Specified
                Not Specified