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

    • Icon: Clarification Clarification
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • 1.1.PRD
    • Java EE integration
    • Release Notes

      @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.

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

                Created:
                Updated:
                Resolved: