[cdi-dev] [JBoss JIRA] (CDI-289) Clarify what happens if a CDI-scoped stateful session bean is removed due to exception

Pete Muir (JIRA) jira-events at lists.jboss.org
Mon Nov 26 12:55:21 EST 2012


     [ https://issues.jboss.org/browse/CDI-289?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pete Muir resolved CDI-289.
---------------------------

        Labels: faq  (was: )
    Resolution: Rejected


This is a faq
                
> Clarify what happens if a CDI-scoped stateful session bean is removed due to exception
> --------------------------------------------------------------------------------------
>
>                 Key: CDI-289
>                 URL: https://issues.jboss.org/browse/CDI-289
>             Project: CDI Specification Issues
>          Issue Type: Clarification
>          Components: Java EE integration
>    Affects Versions: 1.1.PRD
>            Reporter: Jozef Hartinger
>            Assignee: Pete Muir
>              Labels: faq
>             Fix For: 1.1 (Proposed)
>
>
> {code:JAVA}
> @ApplicationScoped
> @Stateful
> public class Foo {
> ...
> }
> {code}
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the cdi-dev mailing list