[cdi-dev] [JBoss JIRA] (CDI-243) SLSBs must currently @Dependent in CDI, however this is not really a good match

Pete Muir (JIRA) jira-events at lists.jboss.org
Wed Aug 22 08:06:15 EDT 2012


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

Pete Muir commented on CDI-243:
-------------------------------

I don't believe there is a bug in the definition, as 7.3.3 says 

{quote}
When the destroy() method is called, the container simply discards this internal reference.
{quote}

which means that CDI does not actively try to destroy SLSBs.

However this isn't the most obvious of behaviors and should be addressed.
                
> SLSBs must currently @Dependent in CDI, however this is not really a good match
> -------------------------------------------------------------------------------
>
>                 Key: CDI-243
>                 URL: https://issues.jboss.org/browse/CDI-243
>             Project: CDI Specification Issues
>          Issue Type: Clarification
>          Components: Java EE integration
>            Reporter: Martin Kouba
>             Fix For: 1.1 (Proposed)
>
>
> Right now it should be possible to inject InjectionPoint metadata to dependent SLSB (see 5.5.7. Injection point metadata). I think it may lead to inconsistencies - SLSB should not have any state as it is usually pooled and reused for every invocation.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the cdi-dev mailing list