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

João Bosco Monteiro (JIRA) jira-events at lists.jboss.org
Thu Jan 3 07:16:09 EST 2013


    [ https://issues.jboss.org/browse/CDI-289?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12743350#comment-12743350 ] 

João Bosco Monteiro commented on CDI-289:
-----------------------------------------

Where is the FAQ? I would like to know how to proceed in such cases
                
> 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