[cdi-dev] [JBoss JIRA] (CDI-275) clarify behavior of stateful beans (EJB) and cdi scopes

Mark Struberg (JIRA) jira-events at lists.jboss.org
Fri Oct 5 13:31:02 EDT 2012


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

Mark Struberg commented on CDI-275:
-----------------------------------

oki, in other words if I have a 

{code}
@RequestScoped
@Stateful
public class MyBean {
  ...
}
{code}

Then what happens with the lifecycle? Will it get destroyed at the end of the request or not?
                
> clarify behavior of stateful beans (EJB) and cdi scopes
> -------------------------------------------------------
>
>                 Key: CDI-275
>                 URL: https://issues.jboss.org/browse/CDI-275
>             Project: CDI Specification Issues
>          Issue Type: Clarification
>            Reporter: Romain Manni-Bucau
>
> EJB specification let think the Stateful beans should be user managed so what about the integration with CDI and in particular the @Remoe methods
> I think it is not so clear in the current specification and that @requestScoped (or session...) on a statful bean should be clarified

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