Uploaded image for project: 'CDI Specification Issues'
  1. CDI Specification Issues
  2. CDI-289

Clarify what happens if a CDI-scoped stateful session bean is removed due to exception

    Details

    • Type: Clarification
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Rejected
    • Affects Version/s: 1.1.PRD
    • Fix Version/s: None
    • Component/s: Java EE integration
    • Labels:
    • Affects:
      Release Notes

      Description

      @ApplicationScoped
      @Stateful
      public class Foo {
       
      ...
       
      }
      

      According to the EJB spec (4.6.2) the instance of Foo will be removed if a method invocation on Foo throws a runtime exception that is not an application exception. CDI should clarify if in that case a new instance of Foo replaces the old instance or whether the clients will keep receiving NoSuchEJBException for the rest of the application lifetime.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                pmuir Pete Muir
                Reporter:
                jharting Jozef Hartinger
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: