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

    XMLWordPrintable

Details

    • Clarification
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Rejected
    • 1.1.PRD
    • None
    • Java EE integration
    • 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.

      Attachments

        Activity

          People

            pmuiratbleepbleep Pete Muir
            rhn-engineering-jharting Jozef Hartinger
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: